All articles
Guide
Implementation, cost and ROI8 min

How to evaluate AI agent quality: the metrics worth watching, and why containment rate alone misleads

Your AI agent is live, customers are getting replies, and the vendor report says "1,200 conversations handled". Is the agent good or bad? That number cannot tell you. A thousand conversations might be a thousand questions resolved, or a thousand customers who got the wrong price and quietly left. This article gives you a set of metrics that show whether the agent answers correctly, hands over to a human at the right moment and stays away from things it must not do. You also get a template for a test set, a simple labelling scheme for real conversations and a review rhythm a small team can actually keep.

This is not about money. Payback is covered in our piece on measuring AI ROI. Quality comes first: if the agent gets things wrong, the hours it saves are eaten by the customers it loses.

Why "containment rate" on its own misleads

The most popular metric is containment: the share of conversations that ended without a human. It is convenient, it is calculated automatically and it climbs nicely on a chart. The catch is that a conversation also counts as "contained" when the customer simply stopped writing. Someone asks about delivery times, gets a confident but wrong answer and goes to a competitor. In the report, that is a success.

Read containment only next to two other numbers: how many contained answers were actually correct (from a labelled sample) and how many customers came back with the same question within a couple of days. If containment rises while correctness falls, the agent has not improved. It has become bolder.

Four layers of metrics

It helps to split metrics into four layers. Each answers a different question, and strength in one does not make up for failure in another.

LayerMetricHow to measureWarning sign
CorrectnessShare of correct answersLabel a random weekly sample of conversations"Nearly right" answers: correct idea, outdated figure or condition
CorrectnessGrounded answersFor each fact in a reply, is there a source in the knowledge base?The agent states terms that appear in no document
BoundariesHandover accuracyFrom labels: handed over when needed / failed to / handed over needlesslyThe agent settles refunds, discounts or complaints on its own
BoundariesOff-topic refusalsTrap questions in the test setMedical or legal advice, opinions on other companies' products
ActionsCRM record accuracyCompare records the agent created with the chatDuplicates, wrong stage, empty required fields
ActionsActions without approvalAction log versus approval logAnything above zero
Customer experienceRepeat contact on the same issueSame customer, same topic within 48 hoursRising while containment stays flat
Customer experienceTime to reply and time to humanFrom logs: first message to agent reply; handover to a manager's replyFast handover, but the manager picks it up three hours later

The last row is easy to miss. An agent can route difficult cases perfectly, but if nobody is on duty on the other side, the customer still waits.

A test set: the exam before every change

Live conversations show what has already happened. To catch mistakes before a customer does, keep a fixed list of questions with pass criteria and run the agent through it after any change: an edited instruction, a new price list, a model switch.

  1. Take 30–40 frequent questions from real chats. Use the customers' own wording, typos and shorthand included.
  2. Add 10–15 traps. A product you do not sell. A discount request. An off-topic question. An attempt to get another customer's details. A message that mixes two languages, which is common in Dubai or Tashkent alike.
  3. Add 5–10 cases where the agent must hand over. A complaint, a refund, an unusual bulk order, a threat to leave a bad review.
  4. Write a criterion, not a script. Not "the reply should read like this" but "must say 2–3 days and must not promise next-day delivery". The model will phrase things differently; you are grading substance.
  5. Grow the set from real failures. Every mistake found in live chats becomes a test question so it cannot quietly return.

A set of 50–70 questions runs quickly, and a person can check the answers against criteria in about an hour. One rule worth adopting: if any "must hand over" case fails after a change, the change does not ship.

Labelling live conversations

Once a week, pull a random sample (30–50 conversations is enough to start) and put each into one of five buckets: correct; incomplete (right in substance, but the customer had to ask again); wrong (an error in a fact, price or condition); should have handed over; handed over needlessly (the answer was in the knowledge base).

An illustrative example:

Customer: hi, the sofa from my last order arrived scratched, can I swap it?

Agent: Hello! Of course, exchanges are possible within 14 days. Please bring the sofa to our showroom with your receipt.

Polite and fluent, and still in the "should have handed over" bucket. A damaged item is a manager's call: photos, an inspection, maybe a visit. "Bring the sofa yourself" may not even be company policy. The chat is technically closed and practically a dispute in the making.

Record a cause for every error: missing from the knowledge base, outdated information, instruction ignored, question misread. The cause tells you what to fix: the knowledge base, the instructions or the handover rules.

Zero-tolerance events

Some errors should never be averaged. If the agent invents a discount once in a thousand chats, that is not "99.9% quality". It is a promise you now have to honour or explain. The target for these is zero, and each one gets its own review:

  • the agent quoted a price, discount or deadline that is not in the knowledge base;
  • the agent took an outward action (sent a message, changed an order, booked a slot) without the required human approval;
  • the agent revealed one customer's data to another;
  • the agent discussed a topic it is explicitly barred from.

We know the second one first-hand. In our own outreach automation, the sender read the wrong folder and skipped the approval gate: 42 messages went out unapproved, and it took three days to notice. The full write-up is in the case study "42 messages went out unapproved". The lesson for metrics: an "actions without approval" counter should be computed automatically and alert immediately, not surface in a weekly review.

Who looks, and how often

FrequencyWhat to checkWho
Instantly, automatedZero-tolerance eventsAlert to the agent operator
Daily, 10 minutesHandovers, complaints, repeat contactsAgent operator
Weekly, about an hourSample labelling, correctness, error causesOperator plus team lead
After every changeFull test set runWhoever made the change
MonthlyTrends per layer, test set updateBusiness owner or manager

Who should play the operator role is covered in this article. If you want metrics and a test set built into the agent from day one rather than bolted on later, that is part of how we build AI agents. More on rollout lives in the implementation section.

FAQ

What share of correct answers is "good enough"?

There is no universal bar: a wrong opening time and a wrong customs calculation carry very different costs. Agree thresholds before launch, separately for routine questions and for zero-tolerance categories, then compare the agent with itself week on week. A useful benchmark is your own staff: label their conversations with the same scheme.

Can another AI do the labelling?

As a first pass, yes. A reviewer model quickly clears obviously fine chats and flags suspicious ones. The final grade on the sample should come from a person who knows the product, because a reviewer model tends to miss the same kinds of errors the agent makes.

What if there are lots of errors in week one?

Look at causes. If most are "not in the knowledge base", that is a content gap, and it is the fastest thing to close. If the agent ignores instructions, narrow its scope and hand over more often until quality settles.

Do I need dedicated software?

Not to start. Conversation logs, a labelling spreadsheet and a test set in a document cover everything above. Worth automating early: zero-tolerance counters and the test set run.

Subscribe to AI Insights

Case studies, tips and AI automation trends — weekly

Want similar results?

Get a free consultation and ROI calculation for your company

Free Consultation

Related Articles

Guide

Customer Consent to Data Processing When an AI Agent Is the One Replying

The customer is messaging a bot, not a person — but the requirement to get consent for data processing does not disappear. Here is when to ask for it, how to set it up across channels, and what to log.

Guide

AI on your own server: when you genuinely need it, and when it only feels that way

"It's safer" isn't an answer. We separate the checkable reasons for self-hosting AI from the outdated fear driving most of these decisions.

Guide

Open-weight models or a commercial API: which one your business should run on, and when self-hosting pays off

"Host the model ourselves and it's free and private" sounds right until you price the GPU, the engineer and the quality gap. Three options and the criteria that decide between them.

Guide

The system prompt behind your AI agent: what it is and who should write it

A system prompt isn't a knowledge base or a spec — it's the agent's behaviour rules: tone, decision limits, escalation triggers. Here's what goes into one and who should own it.

Guide

Support after launch: what happens to your AI agent a month in

Launch isn't the finish line — it's the start of a different job. Here's what usually happens to an agent in its first month: where it starts drifting, who should notice, and what a weekly review should look like.

Guide

After the pilot: how to scale your AI agent to other departments without repeating the same mistakes

A successful pilot in one department doesn't mean the rest of the company is ready for the same agent. How to choose the next department and what to re-check each time.

AI agent quality metrics: what to actually measure | UNIKA