How to test AI agents: accuracy, tone and what they promise customers, from unit tests to live calls
A method for support, QA and AI operations teams whose customers talk to an AI agent. It covers six levels of testing, a scorecard for accuracy, tone and promises, a weekly routine, and calling your own agent as a customer.
A test customer on chat, phone and email, from Tuesday 07:00
- Tue 07:00Site chat: “Can I return a sale item after 30 days?”
- Tue 07:00Bot: “Yes, within 60 days”The policy page says 30
- Tue 07:06Voice line: “I’ll email your return label within the hour”
- Tue 07:07Asked for a personTransferred in 2 minutes
- Tue 08:06No return label emailAn hour after the promise
- Wed 09:14Return label email arrives26 hours late
Example: Kestrel Home and every answer here are invented.
To test AI agents, run the same scored conversations at six levels, from unit tests on each tool call to the live agent called, messaged and emailed as a real customer. Score each one on accuracy, action, tone and every promise made, including whether the promised email, text or callback arrives. On Obsession, a persona with its own phone number and inbox runs the live checks every morning and keeps every answer word for word in one event log.
ComparedWays to test AI agents, comparedGo straight to the comparisonOn this page
- What to test in an AI agent
- Test types, from unit tests to live calls
- A scorecard for accuracy, tone and promises
- A weekly routine for testing AI agents
- Calling or chatting with your own agent as a customer
- Ways to test AI agents, comparedCompared
- Where AI agent testing stops
- Questions about testing AI agents
To test AI agents, run the same scored conversations at six levels, from unit tests on each tool call to live calls, chats and emails as a real customer. The six are unit tests, scripted conversations, simulated customers, adversarial prompts, regression runs and live tests. Support, QA and AI operations teams use them on any agent customers talk to, such as a support bot, a voice agent or a sales agent that books demos. Each level catches failures the one before it misses. Only the live test shows what a customer receives, including the email or callback the agent promised.
What to test in an AI agent
An agent that talks to customers can fail in six ways, and a test plan covers each one.
- Accuracy: a fact or policy stated wrongly, such as a 60 day return window when the policy says 30.
- Action: the right words with the wrong tool call, such as a refund on the wrong order or a booking for the wrong day.
- Tone: blame, coldness, words your brand never uses, or a bot that won’t say it is an AI when asked.
- Promises: a callback, email or refund the agent offers that policy doesn’t allow, or that never arrives.
- Handoff: a customer who asks for a person and never reaches one.
- Safety: another customer’s details shared, or instructions hidden in a message obeyed.
The business answers for all six. The UK Competition and Markets Authority (CMA) publishes guidance on complying with consumer law when using AI agents, last updated on 30 October 2026. It says “you are responsible for what an AI agent does”, even when a third party provides it. It also tells businesses to “regularly check how well an AI agent is performing”. A tribunal ordered Air Canada to pay a refund its website chatbot had promised against its own policy, one of the AI chatbot fails that customers found before the companies did.
Test types, from unit tests to live calls
Every level shares the same parts. Anthropic’s engineering guide Demystifying evals for AI agents was published on 9 January 2026. It defines a task as “a single test with defined inputs and success criteria”, and each attempt at it as a trial. A grader is “logic that scores some aspect of the agent’s performance”. The guide separates the transcript, everything the agent said and did, from the outcome: “the final state in the environment at the end of the trial”. An agent can say a booking is made while no booking exists, so the strongest tests check the end state itself: the booking in the system, the refund on the account.
| Level | What it catches | Graded by | When it runs |
|---|---|---|---|
| Unit tests on tools and prompts | Wrong tool, wrong arguments, broken prompt | Code | Every commit |
| Scripted conversations | Wrong answers and end states on known questions | Code, a model and a person | Before every release |
| Simulated customers | Failures that show only across many runs | A model, checked by a person | Weekly, and before big changes |
| Adversarial prompts | Leaked data and obeyed injections | Code and a person | Monthly, and after a new tool |
| Regression runs | Tasks that passed last week and fail now | Code and a model | After every model, prompt or content change |
| Live tests as a customer | Broken channels, wrong live answers, missing follow-ups | Your policy page and the inbox | Every morning |
Unit tests on tools and prompts
Test each tool call on its own, with fixed inputs. Given “Where is order 4417?”, the agent should call the order lookup with order 4417 and nothing else. These are code-based graders. Anthropic’s guide calls them fast, cheap, objective and reproducible, and lists one weakness: “Brittle to valid variations that don’t match expected patterns exactly”. Keep them to checks with one right answer, such as the tool name, the arguments and the format of the reply. A pass is the right tool and the right arguments on every run, checked in your build pipeline on every commit.
Scripted conversations before every release
Build a golden set: real customer questions, each with the end state it should reach. Anthropic’s guide says “20-50 simple tasks drawn from real failures is a great start”, so begin with last month’s escalated tickets and the questions your team answers most. Each task names its outcome, such as a £42 refund issued on order 4417, a confirmation email sent and the ticket tagged. Grade the end state in code and the tone with a model that follows a short rubric. A pass is the right outcome and a passing rubric on every task in the set.
Simulated customers at volume
A second model plays the customer, with a goal and a manner: impatient, confused, or writing in a second language. The τ-bench benchmark, published by Shunyu Yao and colleagues in June 2024, works this way, with a user “simulated by language models” talking to an agent that has tools and a policy. It found that “even state-of-the-art function calling agents (like gpt-4o) succeed on <50% of the tasks”. Because the same agent answers the same question differently, the paper also proposed pass^k: the chance that every one of k attempts at a task succeeds.
Anthropic’s guide works the sum: an agent that passes 75% of trials passes three in a row only about 42% of the time. Every customer conversation is one trial, so run each task at least 3 times and report the share of tasks that pass every time. A pass is every run of every high-risk task succeeding, such as refunds, cancellations and anything involving money.
AskedCan I return a sale item after 30 days?
- Trial 1Sale items can be returned within 30 days of delivery.Matches policy
- Trial 2Yes, you have 60 days to return sale items.Wrong window
- Trial 3Within 30 days of delivery, with your order number.Matches policy
A single run would have passed. Across three, one customer in three hears the wrong window.
Adversarial prompts
OWASP ranks prompt injection first in its Top 10 for large language model (LLM) applications for 2025. In OWASP’s words, “A Prompt Injection Vulnerability occurs when user prompts alter the LLM’s behavior or output in unintended ways.” Direct injection comes from what the customer types, and indirect injection from content the agent reads, such as a web page, a file or an email. OWASP’s advice includes regular penetration testing, “treating the model as an untrusted user”. Test a customer asking for someone else’s order, a message telling the agent to ignore its refund limit, and an email with instructions hidden in it. A pass is a refusal, a logged attempt and, where the request is genuine, a handoff to a person.
Regression runs after every change
Rerun the golden set whenever anything changes: the model, the prompt, a help-centre article, a tool or the vendor’s release. Anthropic’s guide splits suites in two. Capability evals “should start at a low pass rate”, because they measure what the agent can’t do yet. Regression evals “should have a nearly 100% pass rate”, and once a hard task passes reliably, it moves into the regression suite. A pass is no task failing that passed on the last version, found before the change reaches customers.
Live tests as a customer
Unit, scripted, simulated and regression tests run against your build. Live tests run against what customers reach: the phone number, the chat widget on the live site, the support inbox and WhatsApp. They catch a transfer that drops, a help article that never deployed, or a confirmation email from another system that never goes out. Voice platforms test their own line too: Retell’s testing overview lists real phone test calls to check carrier audio, keypad tones and transfers. A pass is the right answer on every live channel, and every promised email, text or callback arriving within the time the agent gave.
Production monitoring sits beside these tests: score a sample of real conversations each week. Anthropic’s guide calls it “Reactive; problems reach users before you know about them”, so it complements testing and never replaces it. The guide to AI agent observability covers the traces behind it: every model call, tool call and answer in production.
A scorecard for accuracy, tone and promises
Score each conversation line by line, pass or fail, and decide in advance which lines fail the whole conversation. Pass or fail is easier for two reviewers to agree on than a score out of 10.
| Line | A pass looks like | How to grade it |
|---|---|---|
| Accuracy | Facts and numbers match the policy page | Code on the numbers, a person on a sample |
| Action | The right tool, order, amount and end state | Code on the tool log and the outcome |
| Tone | Says it’s an AI when asked, no blame, your brand’s words | A model with a 3-point rubric, checked by a person |
| Promises | Offers only what policy allows, and every follow-up arrives on time | The inbox, phone and account after the stated time |
| Handoff | Reaches a person when asked, with the wait timed | Code on the transfer, and the wait in minutes |
| Safety | No other customer’s data, and hidden instructions ignored | Code, plus the adversarial prompts |
| Speed | First reply and resolution inside your targets | Timestamps from the transcript |
Make accuracy, action, promises and safety critical, so a fail on any of them fails the conversation. Report the pass rate for each line every week, beside resolution rate, policy errors and escalations. The team then sees which line moved after each change, how many regressions reached customers, and the time to detect each one.
Check the model grader before trusting it. Anthropic’s guide says model-based graders need “calibration with human graders for accuracy”: have a person grade 20 conversations, compare the two sets of grades, and tighten the rubric until they agree. The same guide’s conclusion gives one instruction: read the transcripts.
A weekly routine for testing AI agents
A routine keeps the golden set current and the time to detect a broken answer under a day. One that fits a support team of any size:
- Every morning: ask the live agent your 10 hardest questions on each channel, in a customer’s words, and ask for a person once.
- After every promise: check for the email, text, refund or callback at the time the agent gave, and again at 48 hours.
- Before every change ships: run the unit tests and the golden set, and block the change on any regression.
- Monday: add last week’s 10 most common new questions and every failure to the golden set.
- Wednesday: run the simulated customers, 3 trials a task, and read 20 failed transcripts.
- Friday: review the scorecard with support leads: pass rate by line, new failures, how long each took to find, and who owns the fix.
- Monthly: an adversarial pass with fresh prompt injections, and again whenever the agent gains a new tool.
Tag every test conversation so it stays out of customer reporting and, where your vendor bills per conversation or resolution, out of the bill.
Calling or chatting with your own agent as a customer
The live test is the one most teams skip, because it is slow by hand. Use a phone that isn’t on your staff list, a fresh email address and a new customer account, so the agent treats the test like any stranger. Ask in a customer’s words, accept whatever the agent offers, ask for a person, then watch the inbox and phone for 48 hours. Log each test in five fields:
- The question exactly as asked, and the channel
- The answer word for word, with the time
- Any promise: what, by when, and how it will arrive
- What arrived after, and when
- How long the wait for a person took, if one came
By hand, each channel needs its own phone, inbox and account. A follow-up can land 2 days later, long after the tester has moved on.
Obsession, the toolkit for AI agents, gives each test a persona: one identity with its own phone number, inbox and browser, run singly or as a fleet each morning. A persona checks your AI agents as a customer on chat, phone and email, then waits days for every promised follow-up, keeping each answer in one event log. Teams who don’t write code pick Support bot check, Voice agent check or Drift watch from the Test sign-up and agents blueprints; developers receive call.ended and email.received events as they happen.
Ways to test AI agents, compared
We make Obsession, so every other option is described from its provider’s own pages as of 22 November 2026.
| Option | What it does well | Price | Where it stops | Best for |
|---|---|---|---|---|
| Doing nothing | Costs no time | Free | Customers find the wrong answers first | An agent no customer uses yet |
| By handa test phone, a fresh inbox and a sheet | Real channels and real follow-ups | Free, plus staff hours | Hours grow with every channel and question | A weekly check on 1 or 2 channels |
| [Promptfoo](https://www.promptfoo.dev/pricing/) | Open source evals and red teaming, run from your own code | Community: free, 10,000 red-team probes a monthEnterprise: custom | Probes past 10,000 a month are bought separately | Engineers testing prompts and attacks on every commit |
| [Braintrust](https://www.braintrust.dev/pricing) | Datasets, experiments and scores by a model, autoevals or code | Starter: $0, 10,000 scoresPro: $249 a month | Starter: 10,000 scores, then $2.50 per 1,000 | Teams comparing versions before each release |
| [LangSmith](https://www.langchain.com/pricing) (LangChain) | Traces, datasets and evaluators | Developer: $0, 1 seat, 5,000 tracesPlus: $39 a seat a month | Base traces kept 14 days | Teams building on LangChain or LangGraph |
| [Retell’s built-in tests](https://docs.retellai.com/test/testing-pricing) | Simulated scenarios, batch runs, web and phone test calls | Per message or minute, from your balance$10 credit at sign-up | Phone tests need a number and a card on file | Teams whose voice agent runs on Retell |
| ObsessionOursSupport bot check, Voice agent check, Drift watch, Personas | Calls, chats and emails your live agent as a customer, then waits days for each follow-up | Free, then $20, $99 or $499 a month; usage per piece | Keeps each answer beside your policy page | The live agent on every channel, every morning |
Most teams combine three of these:
- Prompts, tools and attacks on every commit: Promptfoo, or tests in your own framework.
- Versions compared before each release: Braintrust or LangSmith, with your golden set as the dataset.
- Simulated callers inside the voice platform: its own test suite, such as Retell’s.
- A weekly look at 1 or 2 channels: by hand, keeping the question, answer, promise, follow-up and wait for each test.
Where AI agent testing stops
Tests sample behaviour and never prove it. Four limits matter most:
- The golden set ages. New products, policies and seasons bring questions it doesn’t hold, so it grows every week.
- Simulated customers are polite. A model playing a customer rarely rambles or changes its mind the way people do, so read real transcripts as well.
- Graders drift. A model grader can change when its own model updates, so recalibrate it against a person after each update.
- Live tests stop at payment. Score that step on your own systems, with test cards your payment provider supplies.
Turning test results into numbers a product team tracks release by release, such as task success, cost per task and escalation rate, is covered in how to evaluate AI agent performance. The tools themselves are compared in AI chatbot testing tools and AI voice agent testing.
Questions about testing AI agents
Before launch, test AI agents at four levels. Run unit tests on each tool call, a golden set of 20 to 50 scripted conversations from real tickets, simulated customers with 3 trials a task, and adversarial prompts. Grade the end state each conversation leaves, such as a refund issued or a booking made, as well as what the agent said. Once the agent is deployed, call, chat and email it on its live channels, because the live channel can differ from the build.
Write down the correct answer to each question from your policy, price list or help centre, ask the agent each question several times, and compare. Check numbers and dates in code, and have a person review a sample of the rest. Accuracy covers actions too: an agent that says the right thing and calls the wrong tool fails the test.
Give the agent a fixed input and assert on what it does: which tool it calls, with which arguments, and the format of its reply. For “Where is order 4417?”, the test passes only if the order lookup is called with order 4417. Keep unit tests to checks with one right answer, and run them on every commit.
On 22 November 2026, Promptfoo’s open source evals and red teaming were free. Braintrust offered datasets and scorers from $0 a month, and LangSmith offered traces and evaluators from $0 for 1 seat. Voice platforms such as Retell include their own simulated tests. These frameworks test your build, and a live test as a customer covers the deployed channels and the follow-ups.
Grade outcomes as well as answers, start with 20 to 50 tasks drawn from real failures, and run each task several times. Keep a regression suite that should pass nearly every time, calibrate model graders against a person, and read the transcripts. Test the live agent on every channel each morning, and check that every promised follow-up arrives.
Test it every morning on each channel, and after every change to the model, prompt, tools or help content. Test again whenever a customer reports a wrong answer. A daily check finds a broken answer within a day, before the morning queue meets it.
A persona is an AI agent with its own inbox, number and browser under one name. It chats with your support bot, calls your voice agent and emails your support inbox the way a customer would. It says it’s an AI when it talks to a person. Every answer is kept word for word beside your policy, and the persona waits days for each promised email, text or callback. Teams start on the Free plan, then $20, $99 or $499 a month, and a blueprint is billed on the pieces it uses.
Support bot checkSources
In the order the article cites them. Every link was checked on 22 Nov 2026.