How-to guides

How to evaluate an AI chatbot before and after launch

Evaluate an AI chatbot by building a test set from real customer questions, scoring each answer for accuracy, grounding and tone, trying to break it with adversarial prompts, and tracking a few live metrics after launch.

Define "good" first

A chatbot is good when it helps the user reach a correct outcome safely and quickly. Write the standard down: which topics it should answer, which it must refuse or hand over, the tone, the maximum length, and the cost of different errors. A wrong delivery date is annoying; a wrong refund promise or medical suggestion is serious. Weight your scoring accordingly.

Build a test set from real questions

Collect questions from emails, chat logs, call notes and search queries. Include variety:

  • The common questions that make up most traffic.
  • Rare but important ones, like cancellations and complaints.
  • Questions with no answer in your content.
  • Ambiguous questions that need a clarifying follow-up.
  • Misspelled, slangy or very short messages.
  • Multi-part questions.
  • Questions in other languages if you serve them.
  • Requests that ask for something you do not allow, such as discounts or personal data.

For each, record the ideal answer or ideal behaviour (answer, ask clarifying question, hand over, refuse).

Create a scoring rubric

Score each answer on separate points rather than a single impression.

  1. Correctness: facts match your source of truth.
  2. Grounding: the answer uses your content and does not add unsupported claims.
  3. Completeness: it contains what the user needs to act.
  4. Tone and clarity: matches your voice, readable on a phone.
  5. Safe behaviour: hands over or refuses when it should.
  6. Format: length, links and buttons work.

Use pass, partial, fail with notes. Have two people score a sample and compare disagreements, which exposes unclear standards.

Test retrieval separately

If the bot uses your documents, check whether the right passages were found before judging the wording. Many wrong answers come from retrieval, not from the language model. Log the passages retrieved for each test question and mark "correct passage present" yes or no. Fix chunking, metadata and search before tweaking prompts.

Red-team the bot

Try to break it deliberately.

  • Ask it to ignore its instructions.
  • Ask for its hidden prompt.
  • Request discounts, refunds or exceptions.
  • Ask about competitors or controversial topics.
  • Paste confusing text or long messages.
  • Insert instructions in an uploaded document or a web page it reads.
  • Ask for another customer's information.

Record each failure, fix it with stricter rules or technical limits, and retest. Do not rely on a prompt alone for security; restrict what tools and data the bot can reach.

Test the whole journey

Chat is only part of the experience. Check handover to a human: does the agent receive the history? Does the bot behave on mobile? What happens in an outage or a slow response? Does it show opening hours and offline messages?

Run a pilot

Release to a small share of traffic or to staff first. Let a human review every conversation in the first week, then a sample. Pilot users uncover phrasing you did not predict.

Choose live metrics

Keep the dashboard small.

  • Resolution rate: conversations that ended without a handover and without the user returning with the same issue.
  • Handover rate and reasons.
  • User ratings such as thumbs up or down, with comments.
  • Unanswered questions list.
  • Time to first response and completion.
  • Escalation outcomes: did the person need to correct the bot?

Be careful with vanity numbers like total chats. A high number of conversations can mean confusion.

Review on a cycle

Weekly in the first month, then monthly: read a random 30 conversations, read all low-rated ones, update content, add failures to the test set. Keep a change log so you can link quality changes to causes.

Regression testing

Automate your test set where possible so that each change runs the set and compares scores. Keep a baseline. If a model update breaks previously correct answers, you will see it before customers do.

Common mistakes

  • Judging by a handful of impressive demo chats.
  • Testing only questions the bot was written for.
  • Ignoring the hand-over experience.
  • No owner for reviewing logs.
  • Changing several things at once, so causes are unknown.

What we offer

We prepare test sets from your real conversations, run structured evaluations and red-team sessions, and set up dashboards and review routines so quality stays visible after launch.

Questions, answered

Fifty to a hundred well-chosen questions will reveal most problems in a first version. Add new ones every time a real failure appears.

Someone who knows the business, ideally two people who score independently. Automated scoring with another model can help at scale, but sample its judgments by hand.

It depends on the risk. For policy or medical topics you need near-perfect answers or a refusal; for casual product questions, a few minor slips may be tolerable. Decide the bar before testing.

Yes. Any change to the model, prompt, documents or retrieval settings can alter behavior, so rerun the whole test set.