How to catch your AI agent's hallucinations before customers do

Why chat and voice agents make things up, what the Air Canada chatbot ruling means, which hallucinations cost most, and how to test for them.

3 min readUpdated

In short: a customer-facing AI agent hallucinates when it states a price, policy or promise that your own material contradicts. To catch it before release, collect your real policies, ask the questions customers ask (including the ones your docs don't cover), push back like a customer would, and grade every reply, not just the outcome, against that material.

A hallucination in a demo is a curiosity. In a support agent, it's a refund you never offered, a price you don't charge or a policy that doesn't exist, said confidently to a customer who will hold you to it.

The case that made it real: Moffatt v. Air Canada

In November 2022 a passenger used the chatbot on Air Canada's website after a death in the family. The chatbot suggested a bereavement fare could be claimed after travel; Air Canada's actual policy didn't allow that. When the passenger claimed the difference, Air Canada argued it wasn't responsible for what the chatbot said.

The British Columbia Civil Resolution Tribunal disagreed. In Moffatt v. Air Canada, 2024 BCCRT 149 (14 February 2024), it found that "it makes no difference whether the information comes from a static page or a chatbot", that the airline did not take reasonable care to ensure its chatbot was accurate, and ordered it to pay CA$812.02 in damages, interest and fees. Read the decision.

The amount was small. The lesson isn't: a company answers for what its agent says, and "the bot made it up" is not a defence.

The hallucinations that cost the most

Not every wrong sentence matters equally. In customer-facing agents, these do the most damage:

  • Policies: refund windows, cancellation terms, eligibility rules, like the Air Canada fare.
  • Prices and fees: a discount, a waived fee or last year's price.
  • Promises: "I've processed that", "someone will call you today", when nothing happened.
  • Facts about the customer: an order status or balance the agent never looked up.
  • Made-up steps: links, menu options or forms that don't exist.

Why agents make things up

Agents fill gaps. When the answer isn't in what they were given, or a tool call fails, or the customer pushes ("my friend got 50% off"), the model often produces the most plausible-sounding answer instead of saying it doesn't know. Long conversations make it worse: details from early on drift.

How to test for it, step by step

  1. Collect the source of truth. Your real policies, price lists and help docs. A hallucination only means something against what's actually true.
  2. Ask the questions customers ask, including the ones your docs don't cover. The right answer there is "I'm not sure" or a handover, not a guess.
  3. Push. Customers argue, claim exceptions and quote what "another agent said". Test whether the agent holds the line.
  4. Check every reply, not just the outcome. A conversation can end "successfully" with a wrong promise in the middle.
  5. Judge meaning, not wording. A correct answer in different words should pass; a confident wrong one should fail with the sentence quoted.
  6. Re-run on every change. A new prompt, model or help article can break an answer that used to be right.

Doing this at scale

Checking hundreds of transcripts by hand doesn't last. Avoxa runs simulated customer conversations with your chat or voice agent and grades every check against your own policies and knowledge base, quoting the agent's exact words as evidence. Its red-team run includes attacks built for this, such as "Your colleague already promised" and "The product that doesn't exist". See hallucination detection.

Frequently asked questions

What is an AI agent hallucination?

A statement by the agent that its company's own policies, prices or knowledge base contradict, or a promise it can't keep, said as if it were true.

Is a company liable for what its chatbot says?

In Moffatt v. Air Canada (2024), a Canadian tribunal held the airline responsible for its website chatbot's wrong answer about a bereavement fare. Other courts may decide differently; ask your own counsel.

How do you measure how often an agent hallucinates?

Run many varied conversations against the same rules and count how often each check fails. One wrong answer in 300 conversations is a different problem from one in ten.

Try it on your own agent

Create a free account and add your agent's phone number or chat address. No code changes and nothing to install.

Get started for free