How to evaluate an AI chatbot

A practical method for evaluating an AI chatbot as a conversation rather than a list of answers, with the LLM judge metrics, persona datasets and simulated users that make the pass rate mean something.

A support chatbot that answers "What is your refund policy?" correctly in a test setup can still lose the customer two messages later. The user gives an order number and the chatbot asks for it again. The user changes their mind from a refund to an exchange and the chatbot keeps processing the refund. The user writes in broken English, the chatbot classifies the intent wrong and never recovers. None of these failures show up when you score one question and one answer, which is how most teams evaluate an AI chatbot today. The problem this post addresses is that gap, the difference between an AI system that gives good answers and one that holds good conversations, and how to measure the second one without guessing.

We evaluate conversational AI systems for a living, and the method below is the one we use. It has five parts. Decide what a successful conversation means for your product and pick the metrics that score it. Build a dataset where each row is a whole conversation, not a message. Choose how the user side of that conversation is played. Run it, read the results by persona rather than as one number, and then keep scoring the same metrics on live traffic. Each part uses EvaliQA as the worked example, but the reasoning holds whatever tooling you run it on.

Why single answers are not enough

The default way to evaluate an AI chatbot is single-turn evaluation. One dataset row holds one user input and an expected answer, the chatbot gets one call, and a metric compares what came back with what should have come back. It is fast, cheap and repeatable, and every project should start there, because a chatbot that cannot answer isolated questions correctly will not do better inside a conversation. For a stateless product such as a search assistant or a summariser, single-turn evaluation is also the whole job. The single-turn mode in EvaliQA runs in seconds to minutes, which is why it is the mode that ends up in CI.

What single-turn evaluation cannot see is state. A chatbot carries context from turn to turn, and most of the ways it breaks are ways of mishandling that context. It forgets the order number the user typed three turns ago. It answers a follow-up as if it were a fresh question. It asks a clarifying question, gets the clarification, and asks the same question again. It stays polite for four turns and mirrors the user's rudeness on the fifth. Each of these is invisible when the test sends one message and reads one reply, because the failure only exists in the relationship between messages.

Multi-turn evaluation fixes the unit of measurement. A row is one conversation, several user turns and several chatbot turns, and the score at the end judges the exchange as a whole rather than any single reply. In EvaliQA this is the Evaluation, multi-turn mode, and the docs are blunt about when it applies. Use it for chatbots and support assistants, for voice agents, for any flow that gathers information before acting, and for anything where success is a completed goal such as a refund processed or an appointment booked. Skip it for stateless products, where the docs call it expensive theatre.

The two modes answer different questions, so a chatbot team needs both. Single-turn tells you whether the knowledge and the phrasing are right, and it is the cheap gate you run on every merge. Multi-turn tells you whether the AI system works when a real person uses it, and it is heavier, so you run it on fewer rows and at release time. The rest of this post is mostly about the second mode, because that is where chatbot teams are usually under-equipped, but every number from a multi-turn run should be read next to the single-turn pass rate, not instead of it.

What to score in a conversation

Conversation metrics read the whole transcript, which EvaliQA stores in a turns column, instead of the input and actual_output pair that single-turn metrics use. Every one of them is scored by an LLM judge, a separate model that reads the transcript and produces a score from 0 to 1 with a short reasoning trace. The score becomes a pass or a fail against a threshold, and the pass rate across the dataset is the number you report. The AI agent metrics in EvaliQA include six that matter for a chatbot even when it calls no tools.

Metric

Question it answers

Failure it catches

Default threshold

Task Success Rate

Did the chatbot accomplish the user's task end to end?

A flow that never closes

0.7

Goal Achievement

Did the user get what they came for?

A completed flow that still leaves the user confused

0.7

Conversational Flow

Was the dialogue natural and coherent?

Needless clarifying questions, repetition

0.7

Role Adherence

Did the chatbot stay in its assigned persona?

Character breaks, mirroring the user's tone

0.7

Knowledge Retention

Did it remember facts stated earlier?

Context loss, contradictions across turns

0.7

Failure Rate

How did it handle not knowing?

A confident made-up answer instead of an honest fallback

0.7

Two of these look alike and are deliberately different. Task Success Rate scores the chatbot's checklist, and Goal Achievement scores the user's outcome. The docs give the case where they disagree, an AI agent that technically completes the flow while the user leaves confused, and that disagreement is the useful result rather than a flaw in either metric. Both will infer the task or the goal from the transcript if you let them, but that inference is an extra judge call and a source of drift between runs. Set the task description, the success criteria and the user goal explicitly in the metric parameters so that every row is scored against the same definition of done.

Pick a small set. The EvaliQA docs recommend Task Success Rate, Goal Achievement and Conversational Flow for a support or help-desk chatbot, which covers whether the job got done, whether the user was satisfied and whether the experience was acceptable. Add Role Adherence when the chatbot has a brand voice to protect, and raise its threshold from the default 0.7 toward 0.95, because a character break in a customer-facing product is a serious bug rather than a style note. Add Knowledge Retention when conversations run long and the user supplies facts over several turns. Every LLM-judged metric is one more judge call per conversation on top of the chatbot's own turn costs, so three metrics is a healthy start and eight is mostly a bill.

Safety metrics on every run

A quality plan should also carry a safety floor. The Security and Safety metrics attach to the same test plan as the quality metrics and act as a smoke alarm between full red teaming passes. For any customer-facing chatbot the docs suggest two that stay on always, PII Leakage and Harmful Content, with Toxicity as a cheap third. These score each response rather than the conversation, which is fine, because a leaked phone number in turn 3 is a failure regardless of how the conversation ended. Read their pass rates differently from quality metrics. A 90 percent Task Success Rate is a release candidate; a 90 percent PII Leakage pass rate is ten incidents.

Build the conversation dataset

A multi-turn dataset row describes a conversation that has not happened yet. In EvaliQA it has a scenario column for the user's underlying intent, a persona for who the user is, an initial_state for anything the chatbot needs at turn 1 such as an order id, an expected_outcome that describes success, and a max_turns cap. The wording of expected_outcome matters. You are not writing the ideal dialogue, because there are many acceptable dialogues; you are writing the state the world should be in when the conversation ends, which is what Task Success Rate and Goal Achievement are judged against.

Scenarios come from the product. List every business flow your chatbot exists to handle, refund a damaged order, change a delivery address, explain a charge, and write the seed for each as a persona, an intent and success criteria. The docs' example is "impatient user, wants to refund a damaged item that arrived yesterday, order number is 12345". The Generate step of the test plan wizard produces conversations from the counts you set under Scenario count, Max turns and Persona types, or you can import your own rows. Keep the first run small. The docs size a smoke test at 10 to 20 conversations with 3 to 5 max turns, a release qualification at 40 to 80 conversations across your top scenarios and 3 to 5 personas, and an exploration sweep at 200 or more, reserved for periodic runs rather than every pull request.

Personas are the second lever and the one teams under-use. The generator offers 15 persona types, from Default and Expert through Impatient, Verbose, Confused and Non-native speaker to Aggressive, Child, Elderly and Sarcastic, and it produces one conversation per scenario and persona pair. A refund scenario played by an Impatient user is a different row from the same scenario played by a Polite / formal user, and the chatbot will often pass one and fail the other. For a support chatbot the personas guide suggests starting with Default for a baseline, adding Novice and Non-native speaker because they are the demographics most teams under-test, and adding Impatient to check that terse, incomplete inputs do not derail the flow. Personas steer how the user asks, not what they ask about, so they are not a place for invented drama.

Because rows multiply, do the arithmetic before you generate. Five scenarios times four personas is 20 conversations, and at 6 max turns with one chatbot call and one simulator call per turn that is 240 chatbot calls before any judge runs. The docs put a 40-conversation, 5-turn run at roughly 400 model calls plus judges, a real fraction of a dollar on GPT-4o class models. Set max_turns deliberately. Too low and conversations time out before they resolve, too high and cost balloons; 5 to 7 is a reasonable start for support scenarios.

Your single-turn dataset deserves the same care, because it is the gate that runs most often. The five dataset types in EvaliQA each answer a different question. Happy path rows prove the chatbot does what it was built for, edge cases stretch legitimate inputs along one axis such as typos or mixed languages, metamorphic pairs check that a rephrased question gets the same answer, forbidden topics check that out-of-scope requests are declined, and inappropriate usage checks that off-topic requests are redirected. The docs recommend one dataset per type rather than a mix, because "78 percent pass on happy path" and "100 percent refusal on forbidden topics" tell you more than "83 percent pass" on a blend.

Simulate the user

Someone has to play the user, and the choice of who changes what the run measures. EvaliQA offers three strategies inside the multi-turn mode, chosen under the mode picker in the wizard. Scripted writes the whole user side up front, every turn fixed, and the engine replays it verbatim. Simulation, the default, has an AI user play the persona live, reading the chatbot's replies and answering a clarifying question the way that persona would, at temperature 0 so the same seed against the same chatbot gives very nearly the same conversation each run. Adaptive runs the user side on the Platform AI agent, which also reads the plan's goals, notes what worked after each turn and picks the next tactic.

Strategy

Who writes the user's turns

Reacts to the chatbot

Repeatability

User-side cost

Best for

Scripted

You or the generator, before the run

No

Fully deterministic

None

Reproducing a real incident, fixed flows, tight regression

Simulation

An AI user, live, from the persona and intent

Yes

Very nearly the same conversation each run

One call per user turn on the plan's judge model

Regression in CI, comparing two candidates, broad coverage

Adaptive

The Platform AI agent, live, from the persona, intent and plan goals

Yes, and changes tactics

Aggregate pass rates stable, transcripts vary

One call per user turn with longer prompts

Exploring failure modes you have not seen yet

Each strategy has a failure it cannot see. A scripted user cannot react, so if the chatbot asks "which order?" on turn 1, the script still sends turn 2 as written, and you learn nothing about how the chatbot handles real dialogue. A simulated user pursues the intent but not your test plan's goals, so it will not probe a specific weakness or change approach when the chatbot stalls. An adaptive user is the most realistic and the most expensive, its transcripts vary more between runs, and it needs the Platform AI agent configured in your workspace settings before the option is available. The docs' pattern for a mature product is Simulation for the golden regression set that runs on every merge and Adaptive for a quarterly exploration sweep.

The choice also determines what a difference between two runs means. If you compare two candidate prompts under Simulation, the user side is fixed except for how it reacts to each candidate, so the gap is attributable to the prompt. Under Adaptive, the user may have taken a different path for reasons of its own, and a 5 point gap could be the user rather than the chatbot. One telling pattern from the docs is a chatbot whose success rate is fine in Simulation and poor in Adaptive. That chatbot passes when the user stays close to a script and fails when the user reacts, which is a sign it cannot handle deviations, and it is exactly the kind of result a single-turn plan can never produce.

Run the plan and read the results

Attaching metrics and running the plan is the short part. Pick the mode and strategy, pick a strong judge model on your own key and keep it fixed across runs because the judge is part of the measuring instrument, attach the metrics, generate or attach the dataset, and save. The run page gives you per-metric pass rates, a score distribution per metric with the threshold marked, latency and cost as always-on tiles, and a row list where each row expands to the full transcript and the judge's reasoning per metric. The docs give targets for a release-ready chatbot. Task Success Rate and Goal Achievement at or above 80 percent on the golden set, Conversational Flow at or above 70 percent, Role Adherence at or above 95 percent, Knowledge Retention staying high as conversations lengthen, and average turns per conversation close to what the scenario should need.

The aggregate pass rate tells you something is wrong; the slices tell you where. The most useful slice for a chatbot is persona. Filter the row list by persona and compare pass rates, and the bottleneck guide lists the patterns that recur. Default passes and Impatient fails means the chatbot needs too many turns to satisfy a request and impatient users abandon. Non-native speaker fails far more than Default means intent handling is brittle to phrasing. Confused fails on Knowledge Retention means the chatbot loses context when the user contradicts themselves. Aggressive fails on Role Adherence means the chatbot mirrors the user's tone. A 30 point gap between two personas is a specific class of bug that no aggregate would show you.

Metric pairs are the second slice. Role Adherence low with Task Success Rate fine means the chatbot completes tasks while breaking character, which is a prompt tone problem rather than a capability problem. A first-turn score high and a final-turn score low means context loss, and the transcript will show the moment the chatbot forgot. Average turns well above what the scenario needs, a 3-turn scenario taking 7, means the chatbot is not closing, and cost, latency and Conversational Flow all suffer together. Read the judge's reasoning on 5 to 10 failing rows per metric before you decide what the pattern is, because half the time the metric is asking a different question from the one you meant.

Before you fix anything, run the plan again unchanged. If the numbers hold, the bottleneck is real and you can start iterating on the chatbot. If they moved noticeably between identical runs, you are looking at judge variance rather than a product bug, and the fix is a lower judge temperature, consensus scoring on a Custom Eval, or a stronger judge model. A 2 point drop between two runs on the same plan is often noise. Two runs are cheap; a week spent chasing a bottleneck that does not exist is not.

Keep scoring in production

An offline run tests the scenarios you thought to write. Real users will write the ones you did not, so the same metrics should score live conversations as well. With tracing in place, online evaluation in EvaliQA scores every session that arrives against the metrics you bind, on EvaliQA's side and without code running inside your app. Conversation metrics such as Role Adherence, Conversational Flow, Knowledge Retention and Goal Achievement run 60 seconds after the last trace of a session, so a long dialogue is analysed once, after it ends, rather than once per turn. Deterministic detectors for explicit errors, retry loops, redundant tool calls and cost outliers run on every session and cost nothing.

Production scoring has a different job from the offline run. Nothing is controlled, traffic shifts, so a moving pass rate can reflect your chatbot or your users, and its role is detection rather than experiment. Bind the metrics you would act on rather than the whole catalogue, since each binding is one judge call per trace it matches, and use the rule scope to skip greetings and health checks. Then wire an alert rule to the threshold you care about; a rule can only watch a metric the project actually scores, so bind it first. Prefer conversation metrics for a chatbot, one call per session rather than one per turn.

The loop closes when a failing live session becomes a test row. A conversation where Goal Achievement fell below threshold is the most realistic scenario you will ever get, and promoting it to the offline dataset, with the real user turns as a Scripted row to reproduce the incident or as a new scenario seed for Simulation, is how coverage grows past what you could imagine at the start. The docs recommend growing the edge-case share of a dataset exactly this way, from traces where the AI system was uncertain or wrong. Over time the golden set stops being a guess about users and becomes a record of them.

What this method does not catch

Simulated users are not users. An AI user playing an Impatient persona is a consistent approximation, and consistency is what makes regression testing possible, but it will not reproduce the full range of ways a real person is terse, and a chatbot that passes every persona can still meet a user nobody modelled. Treat persona coverage as a floor and the production loop as the correction. The two together are the method; either alone is half of it.

LLM judges are themselves models. The same judge scoring the same transcript twice can give slightly different numbers, which is why the rerun rule exists and why pinning the judge model matters. A judge can also be persuaded by a chatbot that sounds confident and complete, which is part of why Goal Achievement should sit next to Task Success Rate. And a judge scores what the rubric asks, so a lax inferred task description lets a partial completion pass; set the criteria explicitly and read the reasoning column at least once for every new metric.

Some metrics need the right conditions to say anything. Knowledge Retention has nothing to detect on a two-turn, single-fact conversation and scores trivially high. Repetitive Pattern Detection is noisy when max_turns is 3 or less. Role Adherence at 100 percent across everything usually means the chatbot role description was too loose to fail against. A metric that always passes is dead weight, and the right response is to tighten the threshold or drop it rather than to report the 100 percent.

This method also does not cover deliberate attack. Edge cases are what a user does by accident; prompt injection, jailbreaks and crescendo attacks that build across many turns are deliberate, and they belong in a multi-turn red teaming plan with its own datasets and its own scoring. The safety metrics in a quality plan are a smoke alarm, not the fire inspection. Run red teaming at its own cadence, monthly or before a release, and keep the two signals separate when you read them.

Summary

Evaluating an AI chatbot means changing the unit of measurement from the answer to the conversation. Keep single-turn evaluation as the cheap gate for knowledge and phrasing, and add a multi-turn test plan where each row is a scenario played by a persona, scored by an LLM judge over the whole transcript with a small set of metrics, Task Success Rate, Goal Achievement and Conversational Flow at minimum, plus PII Leakage and Harmful Content as a safety floor. Choose the simulated user to match the question, Scripted to reproduce, Simulation to regress and compare, Adaptive to explore, and never regenerate the dataset between runs you intend to compare.

Read the results as slices rather than a score. The persona gaps and the metric pairs are where the bugs live, and a rerun before any fix separates real regressions from judge variance. Then bind the same conversation metrics to live sessions, alert on the threshold you care about, and promote failing sessions back into the dataset. What this method will not tell you is how the chatbot behaves under deliberate attack or how it fares with a user no persona resembles, and those limits are the reason to keep red teaming and production scoring running beside it rather than treating one release-time pass rate as the verdict.

Frequently asked questions

What is the difference between single-turn and multi-turn evaluation of an AI chatbot?

Single-turn evaluation scores one user input and one reply against an expected answer. It is fast and cheap and catches wrong or off-topic answers, which is why it belongs in CI. Multi-turn evaluation treats a whole conversation as one row and scores the exchange as a whole, so it catches context loss, flows that never close, character breaks and repeated clarifying questions. A chatbot needs both, because the failures that matter most to users only exist between messages.

Which metrics should I start with for a support chatbot?

Task Success Rate, Goal Achievement and Conversational Flow cover whether the job got done, whether the user got what they came for and whether the experience was acceptable. Add Role Adherence if the chatbot has a brand voice to protect, and Knowledge Retention if conversations run long. Keep PII Leakage and Harmful Content on every run as a safety floor. Three quality metrics is a healthy start, since every LLM-judged metric is one more judge call per conversation.

How many conversations does a multi-turn test need?

The EvaliQA docs size a smoke test at 10 to 20 conversations with 3 to 5 max turns, a release qualification at 40 to 80 conversations across your top scenarios and 3 to 5 personas, and an exploration sweep at 200 or more for periodic runs. Rows multiply by scenario and persona, so 5 scenarios and 4 personas is already 20 conversations. Do the cost arithmetic before you generate.

Should the simulated user be Scripted, Simulation or Adaptive?

Scripted replays fixed user turns and is best for reproducing a real incident or a fixed flow. Simulation has an AI user play the persona live and react to the chatbot, with very nearly the same conversation each run, which makes it the right choice for regression testing and for comparing two candidates. Adaptive pursues the plan's goals and changes tactics, which is the most realistic and the most expensive, so it suits periodic exploration rather than every pull request.

What does this method not catch?

Simulated users are consistent approximations, not real users, so a chatbot can pass every persona and still fail someone nobody modelled, which is why the same metrics should also score live sessions. LLM judges add some variance, so rerun a plan before acting on a drop. Deliberate attacks such as prompt injection and multi-turn jailbreaks need a separate red teaming plan; the safety metrics on a quality plan are only a smoke alarm.

Get new posts by email

One email when something new is published. No spam, unsubscribe any time.