AI hallucination

Also known as:
  • Confabulation

An AI hallucination is an answer from a language model that sounds confident but is false, made up or not supported by the sources it was given.

How AI hallucinations happen

A language model writes its reply one piece at a time, picking words that are likely to come next. Nothing in that process checks whether a statement is true. When the facts it needs are in front of it, the model usually repeats them faithfully. When they're missing, it can fill the gap with something that reads just as smoothly.

In customer service, most hallucinations start with one of four gaps:

  • Missing knowledge. The help center doesn't cover the question, so the model answers from general patterns.
  • Conflicting sources. Two articles give different refund windows, and the model blends them or picks the old one.
  • Failed lookups. A call to the order system errors out, and the model writes a plausible status anyway.
  • Instructions that only reward helpfulness. Nothing tells the agent it's fine to say it doesn't know.

Examples in customer service

  • A shopper asks about returns and hears about a 60-day window the policy never offered.
  • A caller is told a package arrives Thursday, although the tracking lookup returned nothing.
  • An agent says "I've refunded your order" when no refund action ran.
  • A reply cites a help article, complete with a title and a link, that doesn't exist.

Why hallucinations matter

A wrong answer from an AI agent arrives in the same confident tone as a right one, so customers have no reason to doubt it. They act on it, and the cost lands later: an exception the company has to honor, a complaint, a second contact.

Companies can be held to those answers. In Moffatt v. Air Canada (2024), a British Columbia tribunal found the airline responsible for wrong bereavement fare information its website chatbot gave a customer. The airline argued it couldn't be held liable for what the chatbot said, and the tribunal rejected that, holding it responsible for all the information on its website, chatbot included.

AI hallucination vs grounding and guardrails

Hallucination is the failure. AI grounding and AI guardrails are two of the main defenses against it. Grounding hands the model the facts at the moment it answers, so it has less reason to invent them. Guardrails set the rules it works within, such as never confirming an action that didn't run.

Testing before launch, and reviewing real conversations after it, shows whether both are holding up. For step-by-step fixes, see this guide on how to prevent LLM hallucinations.

AI hallucination in Voiceflow

In Voiceflow, the global prompt has a Guardrails section where teams write the rules that apply on every turn, such as admitting an answer isn't available instead of guessing. A custom evaluation can also score past conversations for answers the sources don't back up.

Frequently asked questions

Can AI hallucinations be eliminated?
Not completely. Some questions have no answer in the sources an AI agent can reach, and a model can still misread material it was given. OpenAI makes the same point: accuracy can't reach 100 percent, because some real questions can't be answered. The practical goal is a low, measured rate, plus an agent that says when it doesn't know.
Do newer models still hallucinate?
Yes, though less often. OpenAI researchers argued in 2025 that standard training and scoring reward a confident guess over an honest 'I don't know', so models keep guessing when they're unsure. That's why teams test their own agent on their own questions instead of relying on a model's reputation.
How do you measure hallucinations in an AI agent?
Sample real conversations and check each factual claim against the source it should come from: the help article, the policy or the system record. Count the share of conversations with at least one unsupported claim. Automated graders can screen at volume, but spot-check their verdicts by hand before you report the number.
What should an AI agent do when it doesn't know the answer?
Say so plainly, then offer a next step: a link to the right page, a follow-up by email or a transfer to a person with the conversation attached. 'I can't confirm that' costs far less than a confident wrong answer the customer acts on.

Build your first agent today.