Journal

AI in practice

Agents need a library first

A bot talks; an agent acts across systems. Between the two stands the step everyone wants to skip: writing down how the business actually works.

3 min read

Bot TALKS Agent WORKS THROUGH SYSTEMS Knowledge base PROCEDURES · RULES · EXCEPTIONS THE ORDER IS NOT SKIPPED AN UPPER LEVEL WITHOUT THE ONE BELOW IT IS THEATRE THE PROCEDURE GROWS BY EXCEPTION EACH ONE A PERSON RESOLVED ONCE
An agent rests on a written base of knowledge, and every exception a person resolves makes that base one case more complete.

The vocabulary is doing a lot of damage. “Bot” and “agent” get used interchangeably in sales decks, and the distance between them is roughly the distance between a receptionist and an employee with keys. A bot converses: it answers questions, it fills the chat widget, it is graded on sounding right. An agent acts: it moves a document between systems, books the return, updates the record, and is graded on what is true afterwards. The moment software is allowed to do things rather than say things, the tolerance for improvisation drops to zero.

Which is why the projects that begin with “let’s deploy agents” and skip to orchestration have a short life expectancy. An agent without a codified base of knowledge is an intern with admin rights: enthusiastic, fast, and dangerous in direct proportion to both.

The order cannot be skipped - knowledge base first, then autonomy.

The reason is practical: the knowledge base is literally the material the agent is made of. Its judgment is whatever you wrote down. If nothing is written down, its judgment is whatever it guessed.

What knowledge means here

The uncomfortable part is what “knowledge” means here. Not the process diagrams from the quality binder - the real rules. What happens when a return arrives without an invoice number? When the customer overpaid and wants goods instead of money? When the duplicate order reaches the ERP and posting rules make simple deletion impossible? Every business runs on hundreds of these branches, and in most companies they live in the heads of three veterans and a folder of email precedents. That, not model choice, is the actual bottleneck of automation - and writing it down is the unglamorous work that separates companies that will run agents from companies that will run pilots.

A procedure that grows with each exception

The most practical pattern we have adopted makes this bearable: the procedure grows at the moment of exception. An agent handling returns meets a case its procedure does not cover - a duplicated order in the ERP, resolvable only through a specific tax-rule path. A person resolves it once, the resolution is captured into the procedure immediately, and the next occurrence is routine. Documentation stops being a project with an end date and becomes a metabolism: every exception makes the library one page thicker and the agent one case wiser. The library is never finished. It is merely never wrong twice.

The person as author of precedent

Notice what the human is doing in that loop, because this is where the fear of replacement misses the mechanics. The person is no longer performing the routine case - the agent does that. The person is the author of precedent: the one who decides, on the edge cases, what the right answer is, and whose decision is then multiplied by every future repetition. That is more leverage than the old job had, not less. The operators who thrive alongside agents are the ones who realize their corrections are now compound interest.

And a hard-won observation about adoption: management buys this vision as strategy - documented knowledge as an asset, sensible. Operations people buy it at exactly one moment, and it is not the demo. It is the moment the system remembers their correction - the exception they fixed last Tuesday coming back handled, their way. Concepts do not convince the people who do the work. Memory does.

It is the same order of work behind how we build our own AI modules. So the sequence we hold to, against every pressure to look futuristic faster: write the library, wire the agent to it, let exceptions feed it, widen autonomy only as the library earns it. Companies that skip ahead get demos. Companies that respect the order get employees made of everything they ever learned - which was, all along, the point.

Patterns from real automation work, anonymized.

Breaking it on purpose

The failure paths customers actually hit cannot be reached with test data - validation stops the call before it fires. Testing them means cutting the wire.