Skip to content

Preventing AI Hallucinations in Customer Support

Reduce chatbot hallucinations by improving approved sources, testing grounding, and routing uncertain or unsupported answers to staff.

Asad AliFounder & CEO
Updated
Reading time
17 min read

AI hallucinations, when a model confidently generates false information, are one of the biggest risks in customer support automation. In plain terms, a hallucination is any response where the AI states something as fact that isn't grounded in your actual data: an invented return policy, a made-up product feature, a pricing tier that doesn't exist.

TL;DR:

  • Hallucinations cannot be eliminated, but they can be made rare and easy to catch. The main levers are retrieval from approved content (RAG), instructions that make "I'm not sure" the default for gaps, a fast path to a person, and a test set you re-run after every content change.
  • Extra layers such as confidence scoring, source citations and claim-by-claim verification help on high-stakes topics. This article explains each one and says which of them Chatsy does and does not do.
  • Measure your own hallucination rate from a labeled sample of real conversations. We do not publish a target rate, because the right threshold depends on what a wrong answer costs you.

A chatbot that invents policies, fabricates product features, or provides wrong instructions doesn't just give a bad answer. Customers treat a support bot's reply as your company's official word, so one confidently wrong response can create a refund dispute, a complaint or a lost customer.

Below is a set of techniques you can apply in any stack, with notes on where Chatsy fits.

How we sourced this

This guide is written by the Chatsy team. The techniques are standard retrieval and evaluation practice; the "In Chatsy" notes describe Chatsy's product as of November 12, 2026, including what it does not do. We do not report hallucination rates for Chatsy or any other product, and numbers in the worked examples are hypothetical. An earlier version of this article included a before-and-after results table and a third-party statistic that we could not trace to a source; both are removed.

Why AI Hallucinations Happen

Language models are trained to generate plausible-sounding text, not factually accurate text. They'll fill in gaps with reasonable-sounding fabrications because:

  1. Training data had errors: The model learned from imperfect internet data
  2. Pattern completion: Models predict "likely" next tokens, not "true" ones
  3. No fact verification: Base models don't check claims against sources
  4. Confidence calibration: Models sound equally confident about facts and fiction

This is especially dangerous in support contexts where customers treat chatbot answers as official company statements. Unlike a creative writing assistant where some improvisation is welcome, a support bot must stay within the bounds of verified information.

The Cost of Hallucinations

In customer support, hallucinations can:

  • Promise features that don't exist → Customer disappointment and churn
  • Quote wrong prices → Revenue loss or legal issues
  • Provide dangerous advice → Safety and liability risks
  • Make up policies → Disputes when your team has to contradict the bot
  • Invent support processes → Confusion, frustration, and repeat contacts

There is a second cost that is easy to miss: once customers learn that the bot can be wrong, they tend to ask for a person straight away, which removes the time savings the bot was meant to bring. Track handoff requests after any visible mistake to see whether that is happening in your queue.

A Seven-Layer Anti-Hallucination Stack

The seven layers below are general techniques. After each one, an "In Chatsy" note says whether Chatsy does it today.

1. Retrieval-Augmented Generation (RAG)

Don't let the AI answer product questions from memory. With RAG rather than fine-tuning, each response is grounded in documents retrieved for that question.

Question → Retrieve Relevant Docs → Generate Answer FROM Docs Only

The model sees your actual content and answers from it. RAG also makes knowledge easy to update: change the source document, re-index it, and the next answers use the new text without retraining.

Implementation tip: Use vector search with semantic embeddings so the retriever finds relevant content even when the customer's phrasing doesn't match your documentation word for word. Pair it with keyword search for exact terms like product names or error codes.

In Chatsy: agents answer from the knowledge sources you add (pages, a crawled site on Hobby and above, files, written answers and help articles). When retrieval finds nothing relevant, the agent is told to say it is not sure and offer a way to get help. Sources are re-read when you trigger it from the knowledge page; there is no scheduled recrawl.

2. Strict System Prompts

Tell the model explicitly what it must and must not do:

You are a customer support agent for [Company].
ONLY answer questions using the provided context.
If the answer is not in the context, say "I don't have information about that."
NEVER make up information, policies, prices, or features.
When uncertain, offer to connect the customer with a human agent.

Without explicit constraints, models default to being "helpful", which often means guessing. Telling the model it is better to say "I don't know" than to guess changes what it optimizes for.

Pro tip: Include 2 or 3 examples of correct refusals directly in your system prompt. Examples usually shape behavior more reliably than instructions alone.

In Chatsy: every new agent starts with default instructions to "use the supplied knowledge-base evidence for product claims", "never invent features, prices, setup steps, or account details", and, if the evidence does not answer the question, "say you are not sure and offer an available way to get help". You can add your own rules in the agent's Response instructions.

3. Confidence Scoring

Some systems score how well an answer is supported before showing it:

  • High confidence: Clear answer from source material → serve automatically
  • Medium confidence: Inferred from context → flag for review or soften the wording ("Based on our documentation, it appears that...")
  • Low confidence: No strong source match → say "I'm not sure" and offer a person

A common method compares the generated answer with the retrieved passages, using semantic similarity or a second model as a judge, and blocks answers that drift too far from the source.

In Chatsy: there is no numeric confidence score. Chatsy detects two simpler signals, no retrieved evidence and uncertain wording in the answer ("I'm not sure", "I can't confirm"), and then offers a handoff or an email follow-up.

4. Source Citation

Some products attach the source to each answer:

"Your subscription can be cancelled anytime from Settings → Billing → Cancel Plan. (Source: Help Center - Managing Your Subscription)"

Citations create accountability, let customers check the answer, and give your team a quick audit: if a citation doesn't support the claim, you've caught a hallucination.

In Chatsy: the widget does not attach source citations to replies today. Review conversations against your sources instead, starting with answers rated not helpful.

5. Fact Verification Layer

For critical topics (pricing, policies, legal), some teams run a second verification pass:

  1. Extract specific claims from the response (prices, dates, feature names)
  2. Search the knowledge base for each claim independently
  3. Check that each claim matches the source document
  4. Flag or remove unverified claims before delivery

This costs extra model calls, so reserve it for high-stakes topics. A list of trigger words (for example "refund", "price", "guarantee", "compliance") can decide when the pass runs.

In Chatsy: there is no second verification pass. For pricing, refund and policy questions, write explicit answers into your sources and consider instructing the agent to hand those topics to a person.

6. Constrained Domains

Keep the AI to topics your knowledge base covers. Questions outside that scope should get a clear boundary response:

"I can help with questions about [product/service]. For [other topic], please contact our team at..."

Implementation step: Write the allowed topics into your instructions, and tag the knowledge base articles for each topic. When a question doesn't match any topic, the bot redirects rather than guesses.

This stops the model from using its general training data to answer questions your documentation doesn't cover, a common source of plausible but wrong answers. If you sell project management software, your bot shouldn't answer CRM questions just because the underlying model knows about CRMs.

In Chatsy: scope comes from your sources and instructions. If you enable the optional web search tool, the agent can also search the web, so restrict it to allowed domains or leave it off for strict scoping.

7. Regular Testing

Test for hallucinations with a structured adversarial suite:

  • Adversarial questions: "What's your CEO's phone number?" (information that shouldn't be shared)
  • Made-up features: "Does the Pro plan include X?" (where X doesn't exist)
  • Contradiction tests: Ask questions that contradict the docs to see if the bot holds firm
  • Edge cases: Ambiguous questions that might prompt guessing
  • Out-of-scope traps: Questions about competitors, unrelated products, or general knowledge

Run the suite after every knowledge base update and at least weekly, and track pass and fail counts over time.

A useful suite starts with 50 to 100 questions and grows. Every real hallucination you catch in production should become a new test case, so the suite turns into a regression test for your content.

Practical Implementation

For Your Knowledge Base

  1. Be comprehensive: Gaps invite hallucinations. Cover edge cases in your documentation, our guide on training your chatbot on your docs explains how.
  2. Be explicit: Don't assume the model will infer correctly. Spell out policies in full, including exceptions.
  3. Include negatives: "We do NOT offer..." is as important as features. Explicitly stating what you don't do prevents the model from assuming you do.
  4. Update regularly: Stale info leads to wrong answers. Set a recurring calendar reminder to review and refresh docs at least monthly.

For Your Prompts

Rules:
1. Only use information from the provided context
2. If context doesn't contain the answer, say "I don't have that information"
3. Never guess or make assumptions about policies, prices, or features
4. For questions about [sensitive topics], always escalate to human
5. Cite your sources when providing specific information

For Monitoring

Watch these signals:

SignalWhy it mattersWhere to look
Answers rated not helpfulThe fastest pointer to wrong or incomplete answersFeedback on each reply
"I'm not sure" answersToo few can mean the bot guesses; too many means content gapsConversation review
Handoff requestsSpikes after a content change often mean new wrong answersHandoff or escalation reports
Corrections by your teamEach one is a confirmed failure to add to the test suiteAgent notes or a tag

In Chatsy, the agent's analytics show helpful ratings, handoff rate and a knowledge-gap list labeled "Rated not helpful", "No answer found" and "Handed off". Chatsy does not calculate a hallucination rate for you; use the sampling method below.

How to Measure Hallucination Rate

You can't reduce hallucinations if you can't measure them. Here's a practical framework.

Manual Sampling

Review a random sample of 50 to 100 AI replies per week. For each one, check whether every factual claim maps to a source document. Calculate:

Hallucination Rate = (Responses with ≥1 false claim) / (Total responses sampled) × 100

Worked example (hypothetical): you sample 80 replies and find 3 with at least one unsupported claim. The rate is 3 ÷ 80 × 100 = 3.75%. Two of the three came from an outdated refund page, so the first fix is the page, not the model.

Automated Detection

Automated checks can compare each reply with its retrieved passages using semantic similarity and flag replies below a threshold. Choose the threshold from your own labeled sample: score 50 replies by hand, then pick the similarity cut-off that separates the supported ones from the unsupported ones.

A lightweight LLM-as-judge also works: pass the reply and the source context to a second model and ask, "Does this response contain any claims not supported by the context?" It catches subtler cases, such as correct facts combined in a misleading way.

Setting thresholds

Example policy (set your own)Action
Any unsupported claim on pricing, refunds, legal or safetyFix the source the same day; consider routing the topic to people
Rising rate two weeks in a rowReview the latest content changes and re-run the test suite
Stable low rateKeep weekly sampling and add every new failure to the suite

Track the rate weekly and set alerts for sudden spikes. A spike usually means a recent knowledge base change introduced gaps or conflicts.

What to Do When Hallucinations Occur

Despite best efforts, some will slip through. Have a response protocol ready:

  1. Detect fast: Set up alerts for low-confidence responses and monitor customer feedback channels for phrases like "that's wrong" or "that's not what your website says"
  2. Correct immediately: Reach out to affected customers with the correct information. A quick correction builds more trust than the hallucination destroyed.
  3. Log the failure: Record the exact question, the hallucinated response, the retrieved context, and what the correct answer should have been
  4. Root-cause it: Determine why the hallucination happened, missing KB content? Ambiguous phrasing? Retrieval failure? Prompt gap?
  5. Fix the source: Update the knowledge base, adjust the prompt, or add the scenario to your adversarial test suite
  6. Verify the fix: Re-run the original question to confirm the correct answer now generates consistently
  7. Review adjacent topics: If pricing was wrong for one plan, check all plans. Hallucinations often cluster around related content gaps.

The goal isn't zero hallucinations, that's unrealistic with current AI. The goal is fast detection, fast correction, and systematic prevention of recurrence. Teams that follow this protocol consistently see their hallucination rate drop month over month as the knowledge base and test coverage improve.

The Human Safety Net

The best anti-hallucination measure is an easy way to reach a person.

In Chatsy, live chat handoff (Hobby and above) works like this:

  • The agent offers a handoff when a visitor asks for a person, or when it has no answer, is uncertain, gets negative feedback or sees a repeated question
  • The conversation goes to your team's queue with the full transcript, and a teammate claims it
  • Chatsy has no staff online status, so when nobody is available the visitor can leave an email for a follow-up instead
  • Teammates can hand the conversation back to the agent when they are done

See human handoff for setup.

Results

We do not publish before-and-after hallucination rates. An earlier version of this page showed a results table we could not support with test records, so we removed it. What you can measure for your own bot:

  • Hallucination rate from the weekly sample, per topic
  • Share of "I'm not sure" answers, which should fall as content gaps close
  • Corrections per week by your team, which should fall as the test suite grows
  • Handoff requests after a visible mistake, a sign of how much trust you lost

Record the date, the content version and the test-suite version next to each measurement, so a change in the numbers can be traced to a change you made.

Getting Started

Retrofitting guardrails onto a poorly designed system is harder than building them in. If you are evaluating a platform, ask which of the seven layers it covers and which you would have to add yourself.

What Chatsy covers today:

  • Answers from the sources you add, with default instructions not to invent features, prices, setup steps or account details
  • A "not sure" answer and a handoff offer when nothing relevant is retrieved or the answer is uncertain
  • Live chat handoff with the transcript (Hobby and above) and email follow-up when nobody is available
  • Helpful ratings, handoff rate and a knowledge-gap list to find weak answers

What it does not do: source citations in replies, numeric confidence scoring, a second fact-verification pass, scheduled recrawling or a built-in hallucination-rate report. See train your AI agent to load your sources.

Try Chatsy on your own content →


Related reading: RAG vs Fine-Tuning | Vector Search Explained | Train Your Chatbot on Docs


When this approach is wrong

These tactics work for most support deployments, but the framing breaks in a few cases:

  • Your bot is creative or open-ended (brainstorming, content generation), where some "hallucination" is the feature, not the bug
  • You only have a handful of FAQ entries, in which case a deterministic if-this-then-that bot beats any LLM-based system
  • Your tolerance for any error is zero (legal advice, medical dosing), where you should not be running an unattended LLM at all
  • You cannot afford the latency of grounding (retrieval, citation, refusal) within a 500 ms response budget
  • You are still iterating on the knowledge base itself, where fixing source content gives a bigger lift than tuning the model
  • You lack a labeled eval set, since "fewer hallucinations" is meaningless without measurement
  • Your team treats "I do not know" as a bug rather than a feature: refusal is a critical part of safe AI, not a failure mode

If you cannot show a test set with the hallucination rate before and after each change, you do not have a hallucination-prevention program yet.


Frequently Asked Questions

What causes AI hallucinations in customer support?

Hallucinations happen because language models are trained to generate plausible text, not factually accurate text. They fill gaps with reasonable-sounding fabrications due to imperfect training data, pattern completion (predicting "likely" next tokens), lack of fact verification, and poor confidence calibration. In support, customers treat bot answers as official, so wrong information is especially damaging.

Can AI hallucinations be eliminated completely?

No. Zero hallucinations is unrealistic with current models. The goal is fast detection, fast correction and prevention of repeats: ground answers in your sources, make "I'm not sure" the default for gaps, give customers an easy path to a person, and turn every caught hallucination into a test case. Set your acceptable rate per topic from what a wrong answer costs you.

How do you detect AI hallucinations?

Combine manual sampling (review 50 to 100 replies a week and check that each claim maps to a source document) with automated checks (semantic similarity between the reply and its retrieved passages, with a threshold you calibrate on a hand-labeled sample). An LLM-as-judge can ask, "Does this response contain claims not supported by the context?" to catch subtler cases. Watch for spikes after content changes.

Is RAG or fine-tuning better for reducing hallucinations?

RAG, for most support teams. Each response is grounded in documents retrieved for that question, so you can see what the answer was based on and fix the source when it is wrong. A fine-tuned model answers from what it absorbed in training, with no retrieved text to check against. RAG also updates as soon as you re-index a changed document, with no retraining.

What are the best practices for preventing AI hallucinations?

Never let the AI answer from memory, use RAG so every response is grounded in retrieved docs. Use strict system prompts that make "I don't know" the default for gaps. Add source citations to every answer. Run confidence scoring and escalate low-confidence responses. Define constrained domains so the bot only discusses topics in its knowledge base. Run adversarial testing weekly and include 2–3 few-shot examples of correct refusal behavior in your prompts.

All articles
  • Technical

    RAG vs Fine-Tuning for AI Chatbots: How to Choose

    Retrieval keeps chatbot answers tied to documents you can edit; fine-tuning changes model behavior. Compare cost drivers, upkeep and fit for support.

    Jan 14, 2026 · 16 min read

  • Technical

    Prompt Engineering for Customer Support Bots

    Write support chatbot instructions for scope, tone, source use, and escalation. Test how the prompt handles common and ambiguous questions.

    Jan 11, 2026 · 13 min read

  • AI Chatbots

    How to Train Your AI Chatbot on Documentation

    Audit, clean and structure your docs, import them, then test with real questions and keep them current so the AI answers from accurate sources.

    Jan 13, 2026 · 17 min read

Build an agent from your support content

Add approved help content, test its answers, and decide when a person takes over.

No credit card required