AI Agent Evals Explained: How to Know If Your Bot Actually Works
AI agent evals explained: how to design test cases, when to use LLM-as-judge or human grading, which metrics matter and the traps that fake a good score.
Most AI support agents go live after a demo. Someone types ten questions, the answers look good, and the project is approved. Three weeks later a customer screenshots the bot inventing a refund policy, and nobody can say whether that was a one-off or the agent’s normal behaviour.
An eval suite exists to answer that question before the customer does. This is a plain explanation of what an eval suite is, how to design one, how to grade it, which metrics to track, and the traps that make a weak agent look good. For our own two-day method, see how we build a fifty-ticket eval suite. For real scored runs, including failed ones, see our evals page.
What an eval suite is
An eval suite is a fixed set of test cases, each with an expected outcome, that you run against your agent and score the same way every time.
It has three parts:
- Cases. Realistic inputs: a customer message, sometimes with account context or a conversation history.
- Expected outcomes. What a good agent does with each case. Not the exact words, but the result: answer with a citation, ask a clarifying question, escalate to billing, refuse.
- Graders. The rules or people that decide whether each run passed.
The point is repeatability. A demo tells you the agent can work. An eval tells you how often it does, and whether this week’s version is better or worse than last week’s.
Designing test cases
Start from real conversations
Written test questions are cleaner than real ones. Real customers paste error logs, ask two things in one message and use product names you retired a year ago. Sample from your actual tickets, stripped of personal data.
Anthropic’s engineering guide, Demystifying evals for AI agents, makes the same point: 20 to 50 simple tasks drawn from real failures is a good start. You don’t need hundreds of cases to learn something useful.
Cover the cases that hurt
A random sample over-weights the easy, common questions. Deliberately add:
- Edge cases: requests just outside policy, mixed billing and technical questions, second languages.
- Must-escalate cases: legal threats, security reports, data deletion requests, vulnerable customers.
- Unanswerable cases: questions your documents don’t cover, where the right outcome is “I don’t know, let me get someone.”
Test both directions
If you only test that the agent escalates security reports, you’ll get an agent that escalates everything. Anthropic’s guide warns that one-sided evals produce one-sided optimisation. For every “should escalate” case, include similar cases that should be answered.
Make outcomes unambiguous
A good test case is one where two people who know the domain agree on pass or fail. If your support lead and your product lead disagree on the expected outcome, that disagreement is a policy question. Settle it in writing before you grade anything.
Grading: code, models and people
There are three kinds of grader, and most good suites use all three.
| Grader | Good for | Weakness |
|---|---|---|
| Code | Outcome type, escalation queue, whether a tool was called, whether a citation link resolves | Brittle with free text; can’t judge tone or truth |
| LLM-as-judge | Faithfulness to sources, tone, completeness, policy compliance in free text | Non-deterministic, has biases, needs checking against people |
| Human | The final word on truth and policy; calibrating the other two | Slow and costly |
LLM-as-judge
Using one model to grade another is now standard. The best-known study, Judging LLM-as-a-Judge by Zheng and colleagues, found that a strong model judge agreed with human preferences more than 80% of the time, about the same rate at which humans agree with each other. The same paper documented the biases: favouring the first answer shown (position bias), favouring longer answers (verbosity bias) and favouring output from itself (self-enhancement bias).
For support evals, that means:
- Give the judge a narrow question, such as “Does every factual claim in this answer appear in the cited document? Yes, no or unknown.” Avoid “Rate this answer 1 to 10.”
- Give it an “unknown” option, so it doesn’t invent a verdict. Anthropic’s guide recommends this.
- Check the judge against human grades on a sample every time you change the judge prompt or model.
Human review
Someone who knows the policies should read the failures, and a sample of the passes, on every run that drives a decision. The most common finding is not a bad agent. It is a bad grader: a test that rejected a correct answer, or a label that was out of date. In our retrieval drift case, seven of the failing cases were stale labels, not agent errors.
Regression runs
An eval suite earns its keep after launch. Agents get worse without anyone touching the code: the model provider ships an update, the help centre is reorganised, a policy changes.
Run the same suite:
- before every change to prompts, models, tools or retrieval settings
- on a schedule, at least monthly
- after big content changes, such as a wiki restructure or a pricing update
Anthropic’s guide makes a useful split. Capability evals are hard tests you expect to fail at first, to measure progress. Regression evals are tests you expect to pass every time, to catch backsliding. When a capability test is passing reliably, move it into the regression set.
Keep the suite stable. Add cases when you add products or intents, but don’t quietly swap old cases out, or month-to-month scores stop being comparable.
Metrics that matter for support agents
A single score hides too much. Track a small set:
- Resolution rate. Share of conversations the agent fully resolved, with no human and no repeat contact. Define “resolved” carefully. Vendors define it differently, and Intercom, for example, has changed how its Fin resolution rate is counted. Compare numbers only when the definitions match.
- Accuracy. Share of answers with no false statements, checked against sources. This is the hallucination metric; more in why AI support agents make things up.
- Policy adherence. Share of cases where the agent followed the rules: escalated what it must, refused what it must, stayed inside refund limits.
- Handoff rate and handoff quality. How often the agent passes to a person, and whether it passes the right cases with a usable summary. A low handoff rate is not automatically good.
- Consistency. Whether the agent gets the same case right every time, not just once.
Consistency is the one most teams skip. Sierra’s τ-bench simulates customers talking to agents in retail and airline settings and introduced a metric called pass^k: the chance the agent succeeds on all of k attempts at the same task. In the original paper, a GPT-4o agent succeeded on about 61% of retail tasks on a single try. Asked to succeed on the same task eight times in a row, that fell to about 25%. A customer-facing agent runs each type of conversation thousands of times, so consistency is what customers actually experience.
Common traps
- Testing on the questions you tuned on. If the same cases were used to write the prompt, the score is flattering. Keep a held-out set.
- Grading the words, not the outcome. Matching exact phrases fails good answers and passes bad ones. Grade the result: right outcome, right queue, true claims, valid citation.
- Rewarding confident guesses. OpenAI’s paper Why Language Models Hallucinate argues that accuracy-only scoring pushes models to guess instead of saying they don’t know. If your suite scores “I’m not sure, here’s a colleague” as a fail on unanswerable cases, you are training the same habit.
- Trusting the number without reading the cases. Fifty cases give a wide margin of error. A few points of movement is often noise. Read the cases that changed.
- Letting the judge drift. Changing the judge model or prompt changes scores. Re-calibrate against people when you do.
- Saturation. A suite at 100% tells you nothing new. Add harder cases.
- Evaluating once. An eval run at launch and never again is a certificate, not a test.
Where to start
If you have nothing today, start small: pull 50 real tickets, label the expected outcome for each with your support lead, and score whatever you run now, bot or human macros. That baseline is worth more than any vendor’s benchmark, because it is your customers and your policies.
Public benchmarks such as τ-bench are useful for comparing models. They can’t tell you whether your agent handles your refund policy. Only your own cases can. Every build we ship comes with that suite, and our services page explains how it fits into a Nerve Audit or a retainer.