Our ERP has hundreds of database tables and until recently none of us really had a complete picture of how they all fit together. Everyone knew pieces. Our VAR knows the system inside and out, so if we needed to figure out where a field came from or trace some data back to a table, we'd usually open a ticket and ask. They're great, but it's still another step and usually means waiting.

So, we used Kevin and Kevin is AI.

I've had "document the database" sitting on my backlog. It isn't difficult work but is repetitive. Open a table, figure out what it's used for, write it down, then do it again a few hundred times. It's important, but every time we planned work there was always something else that had a bigger impact on the business.

So I gave the job to an LLM.

Small batches, every line reviewed

We worked through it in small batches. It generated documentation, we reviewed it, fixed mistakes and then moved on to the next batch. So far we've documented 381 tables, most of the ones that actually drive our day to day operations. It's already turned into tens of thousands of lines of docs covering schemas, relationships and what the tables are actually for.

It isn't perfect. At times Mr. Kev doesn't just miss the mark but explains why the mark is wrong. So every line gets reviewed before it ends up in documentation. We also offset this by updating the agent's instruction file when we catch a pattern. It's a living document, always evolving, always improving.

The part I didn't expect

The unexpected benefit has been using all of that information afterward. Now we can take a report from our ERP, drop it into chat and ask for the SQL behind it. Most of the time it gets surprisingly close on the first try. Something that used to involve opening a ticket has become a five minute conversation.

Still a team effort

Nobody lost their job because of this. We're just not spending time chasing down little questions that used to interrupt everyone's day. Our VAR is still the right place to go for the complicated architectural work. That's exactly what we hire them for.

AI handled the repetitive work much faster. We decided the process, reviewed the output, caught the hallucinations and connected all the pieces together. The team was still responsible for the documentation.

More than anything, it's helped us finally knock out one of those projects that's been sitting on the backlog because nobody could justify spending weeks on it.

Turns out every team could use a Kevin.

This first ran as a LinkedIn post about AI documentation.