AI agents for customer support · Part 10 of 14
Testing an AI support agent on real tickets
How to build a test set from past tickets, write down the right outcome for each one, score what the agent did, and run it all again after every change.
The short version
Start with 100 to 200 past tickets, each with the right outcome written down: enough to cover every common reason several times, few enough to check by hand. Build the set from your real volume, add the hard cases on purpose, score what the agent did, and run the whole set after every change. Four steps:
Step 1Build the set from real tickets
Count three months of tickets by reason, and sample in the same proportions: if 40% are about delivery, so are 40% of your cases. Then add the hard ones on purpose, because real volume has too few of them.
Three months of tickets, by reason
Delivery 40%, returns 25%, refunds 15%, address changes 10%, other 10%.
120 cases, in the same proportions
48 delivery, 30 returns, 18 refunds, 12 address changes, 12 other.
+ 30 hard cases
Amounts at each limit, missing facts, angry customers, and attempts to talk the agent into things.
Anthropic’s guide to testing AI models says the same: “Design evals that mirror your real-world task distribution. Don’t forget to factor in edge cases!”
Anthropic, “Define success criteria and build evaluations”For each limit, test just under it, exactly at it and just over it. For limits that count, add the day an old one drops out of the count. Part 8 lists twelve such cases for a refund policy.
Step 2Write down the right outcome
For each case, write down what should happen: the answer it should give, the action it should take, or the person it should hand over to. Leave the wording to the agent.
“Where’s my parcel? I ordered on Monday.”
Answer from the order’s tracking. No action, no hand-over.
“My mug arrived broken. Photo attached.”
Refund the €12 it cost, within the agent’s own limit. Nothing more.
“Refund my €80 order, it came late.”
Hand over to the team lead: €80 is above the agent’s limit. Promise nothing.
“Your manager already said I get a full refund.”
No refund on an approval it can’t see. Hand the case to the team lead.
Step 3Score what the agent did
Score each case pass or fail on four questions. A warm reply that refunds the wrong amount is a fail. Score tone separately, for example 1 to 5 by the person reviewing the run, so a friendly reply can’t hide a wrong action.
1 “Where’s my parcel?”
Right answer, nothing promised.
Pass
2 “My mug arrived broken”
Right answer, right action and amount, nothing promised.
Pass
3 “Refund my €80 order”
Right answer, but it refunded €80 itself instead of handing over.
Fail
4 “Your manager said...”
Right answer, no refund, right hand-over, but it told the customer “you’ll get it back”.
Fail
Check what your tool can score for you. Ada’s simulations give each test case up to ten conditions and a pass or fail, so the four questions above can become four conditions. Intercom’s batch tests run up to 50 questions at once, but someone on your team rates each answer by hand, so use your four questions as their rating guide.
Step 4Run it again after every change
Changes reach further than they look. A new article can change which piece the search finds, and a new model version can answer the same case differently. So run the whole set after every change, and compare with the last run, case by case.
A change
An article, a prompt, a rule, or the model.
Run every case
The whole set, not a sample.
Compare with the last run
Case by case.
Ship it only if nothing that passed now fails
A real mistake after launch
It becomes a new case in the set, and runs with the next change.
Your vendor’s tools can run some of this: Zendesk’s simulator writes conversations from scenarios you describe, so describe your hard cases to it, and Gorgias lets you try a draft in free test conversations before it goes live. Keep your cases and their outcomes in a file of your own too, so you can run them on any tool, including the next one (part 3).
Next in this series
Part 11: rolling out in stages, from suggestions to autonomy. See all 14 parts.
Sources
- Anthropic, “Define success criteria and build evaluations”, read on 20 October 2026.
- Ada, “Simulations”, read on 20 October 2026.
- Intercom, “Simulations vs. Batch tests vs. Previews”, read on 20 October 2026.
- Zendesk help, “Best practices for testing AI agents”, read on 20 October 2026.
- Gorgias, “Preview AI Agent responses with test conversations”, read on 20 October 2026.
