Insights

The hard part of a business agent is the exception path

The main path is the easy part. What decides whether a business agent can launch is how it handles missing fields, conflicting records and out-of-scope requests — and whether a person can take over with the context intact.

The main path only proves you wired it up

Complete fields, healthy systems, a user who said everything once — that path is for integration tests. Real tickets look more like this: the customer id and the phone number disagree, an attachment is missing, the policy is mid-rollout, the downstream API succeeded halfway.

If exceptions were never designed, the agent has two bad options: freeze, or invent a plausible next step. The second is hard to see in a demo, because demos are not stocked with conflicting data.

List the exceptions before you write the main flow

Sit with the business and classify recent failed tickets. You usually get a truer list than the requirements document:

  • Information is incomplete, but the desk already has a default
  • Two records conflict and a person has to choose
  • The request is legitimate but outside current policy
  • A downstream call failed, and work already done may need reversing
  • The user changes their mind halfway

Each class needs an explicit policy: ask, degrade, hand over, or stop. “Let the model handle it” is not a class. It cannot be reproduced on an evaluation set, and it cannot be attributed when you review an incident.

Those classes should be the spine of the evaluation set. You can keep the main-path samples light. You cannot improvise the exception samples. The workarounds you only see while shadowing — “this is how they actually skip that step” — are usually the class you missed.

Handover has to carry context

If “takeover” is a line that says “please contact support”, the desk starts from zero and the user feels the agent broke the job. A usable handover includes what has already been collected, which tools ran and what they returned, which rule it stopped on, and a suggested next step.

What the person then decides should go back into the evaluation set, so the same exception is not reinvented every week. Takeover is a designed channel, not a pillar of shame. Money, permissions and external promises should go through it by default. That is cheaper than a post-mortem.

The handover shape has to be stable, or you cannot train it and you cannot measure how many times the person still has to re-ask. When context is dropped, “human in the loop” is just a bad experience, twice.

No trail, no iteration

Every tool call, refusal and takeover should be replayable as a session. File failures by type; do not leave them in a chat export for someone to skim.

New exceptions will appear after launch. The difference is whether they become the next line in the evaluation set, or whether whoever is on duty invents a handling each time. Replay also decides whether you can change models safely. Without a trail to compare, a model swap is an unexplained bet.

Watch business outcomes, not just call volume

Latency and token counts help. The business cares whether work closed without a person, how often it was handed over, whether a bad write happened, and whether the same exception class is falling. Those numbers should use the same labels as the evaluation set. Otherwise engineering tunes the model while operations live with the same incident in a new wrapper.

An agent is not mature because the main path is smooth. It is mature when exceptions are expected, reviewable, and something a person can continue.

Related services

3 min read

A knowledge base is not a vector dump

Dumping every document into a vector index looks fast and retrieves the wrong thing. A usable knowledge base chunks by document type, filters on metadata, and treats citations as a contract.

Read article

Tell us about the workflow you want to change

We will help you work out where AI is worth applying first, and what the first step should be.