The first thing most clients ask about an AI agent is how long it will take. That depends on the job and on the systems the agent has to work with. The order of the work changes much less, and when a build runs late, it is usually because steps were done out of order.
In short
Before anything is built, we agree in writing what the agent will and will not do, and we collect real examples of the messages it will get. We test it against those examples all through the build. Then we put it in front of customers in stages. First it only watches, then a person checks its replies, and only after that does it answer on its own. If the results drop at any stage, it goes back a step.
The four steps
An agent build follows our usual four steps. Finding the gaps and proposing the fix decide what the agent should do. Build and test makes it do that reliably. The rollout is where we prove it on real conversations and measure the before and after.
As a rough guide, about a sixth of the time goes on deciding what the agent does, more than half on building and testing, and the rest on the rollout. Projects get into trouble when the rollout is squeezed into a day or two at the end, or when a week disappears into arguments about which AI model to use.
Deciding what the agent does
This stage only needs to be complete enough that we can start building without going back to redo it. We write down four things with the client:
- The job. One sentence, for example: "When a customer messages us on WhatsApp about a booking, the agent should X."
- The hard cases. The 5 to 10 messages most likely to trip up a simple setup. We work through them by hand with the client.
- The connections. Every system the agent reads from or writes to, and how it will log in to each one.
- The test cases. A starting set of graded examples, which grows as the build goes on. A short subset runs on every change and the full set runs every night.
Teams often skip the hard cases and the test cases because they slow down the start. The problems then show up in production, where they are harder and more public to fix. If we cannot describe what the agent does in a few sentences, this stage is not finished.
What comes out is a short scope document that the client signs. It holds the test cases, the list of connected systems and a fixed list of what version one will do. Anything not on that list waits for version two.
Building and testing
If the first stage was done properly, the build is mostly routine work through the test cases.
We work in short cycles of a couple of days. Each cycle takes the next few test cases, builds what the agent needs to pass them, scores it and releases it to a test environment. After every cycle the client can see the new scores on a dashboard.
We pick an AI model early and keep it until we have run out of improvements to the instructions and tools around it. Switching models halfway through throws away much of what the test scores have taught us.
Rolling out to real customers
We treat the rollout as the riskiest stage, because this is where the agent meets real customers. It goes live in four steps, shadow → 10% → 50% → 100%, and each step goes ahead only if the live scores hold up:
- Shadow mode. The agent runs alongside the person doing the job but does not reply to anyone. We compare each of its answers with what the person actually said.
- 10% of messages. The agent handles a random 10% of incoming messages, and a person reviews every reply before it is sent.
- 50% of messages. Replies the agent is confident about go out on their own. Anything it is unsure about goes to a person.
- 100% of messages. The agent is fully live, and we watch the results closely for the first two days.
This is also where we measure the before and after: how quickly customers get a reply, how many conversations the agent finishes on its own and how many it hands to your team.
The go-live checklist
The agent does not go fully live until every item on this list is done.
- Test scores above every agreed threshold on the full test set
- A dashboard of the agent's results, live and shared with the client
- A switch that turns the agent off in under a minute, wired up and tested
- Handover to a person tested from start to finish, with a real person on the other end
- A daily report scheduled to arrive in the client's inbox
- Written steps for the most likely failures, kept where the client's team will look for them
When we don't build an agent
Plenty of processes follow clear rules. For those, a plain automated workflow does the job better than an AI agent. It costs less to run and it is easier to check.
When a process looks like that, we say so before anything gets built, and we build the simpler workflow instead.
For your IT team
These are the thresholds we usually start from. The final numbers are agreed with the client.
# Test thresholds (starting point)
1. Resolution rate ≥ 0.80
2. Refusal precision ≥ 0.95
3. Tool-call accuracy ≥ 0.90
4. Hallucination ≤ 0.02
5. p95 latency ≤ 4.0 sThe stack usually looks close to this. Familiar tools are quicker to build with and easier for your team to maintain.
- Orchestration: LangGraph for agents that need to keep state, plain function calling for simpler ones
- Models: a current frontier model for reasoning, and smaller, cheaper models for classification and parsing
- Retrieval: pgvector when there are only a few documents, a hosted vector database when there are many
- Observability: LangSmith or Langfuse for traces, plus Sentry for code errors
- Hosting: your own cloud account and keys, set up with infrastructure as code
Have a process like this in your business?
Tell us how it works today and where it slows down. We'll say plainly whether automation is worth it, and what we would build first.
Book a meeting