(Note · · 6 min read)
Your AI chatbot gave a customer a wrong answer. Now what?
A chatbot that answers from your documents will still get things wrong, and the first wrong answer in front of a customer is the moment most teams either switch it off or start guessing at prompts. Neither helps. From two of these running in production, here is where wrong answers actually come from and what to change.
By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka
The model is usually not the problem
When a chatbot answers from your own documents, it does two separate jobs: find the right passages, then write an answer from them. A confident wrong answer almost always means the first job failed and the second did exactly what it was told. The text it was handed did not contain the answer, so it filled the gap.
This is why moving to a larger model so rarely fixes it. The generation step was never the weak link. Before touching the prompt, look at what was actually retrieved for the question that went wrong: most of the time the answer was not in there, and sometimes it was not in the knowledge base at all.
Let it say it does not know
A bot with no way to decline will always produce something. Give it one. Put a floor on retrieval relevance, and when nothing clears the floor, return a fixed message instead of generating an answer. An honest refusal costs you one deflected conversation; an invented refund policy costs you the argument about honouring it.
The same applies to anything that changes minute to minute. Order status, stock, balances and prices should be fetched from the system that owns them at the moment of asking, not retrieved from documents that were correct when they were written. If a question needs live data and no live source is wired up, that question belongs to a person.
Hand over before it guesses
The Telegram support bot I built hands a chat to a person when the question needs one, and alerts an admin. The hard part is not the handover; it is deciding when. Escalate too rarely and customers get guesses. Escalate too eagerly and you have rebuilt a ticket queue with extra steps, and the team stops trusting it.
What works is routing on the kind of question rather than on the model's confidence alone: detected intent and keywords for the categories that must always reach a human, plus the relevance floor as a backstop for everything else. Decide the never-answer list with the business, not with the engineer: refunds, medical or legal claims, anything contractual.
Write the rules down, in the prompt
Some answers are not wrong on the facts but wrong to say at all. Terra, the assistant on TrueTerra Oils' site, recommends essential oils from a knowledge base of 2,446 articles and the product catalogue, and every answer has to stay inside FDA-compliant wording. That is not a retrieval problem and no amount of better search fixes it. It lives in the system prompt as explicit rules about what may and may not be claimed.
Keep those rules as a reviewable list rather than prose buried in a paragraph. Someone from the business should be able to read them and say whether they are right.
The correction has to go back in
This is the part most teams skip, and it is the one that compounds. A wrong answer that a person fixes in a chat window improves that conversation and nothing else. The same question arrives next week and gets the same wrong answer.
In the support bot, admins review answers in a panel, correct them, and the correction is re-embedded into the knowledge base. The loop is review, correct, re-embed, so the fix lands where retrieval will find it next time. Build that loop early, even a rough version: it is what turns every complaint into a permanent improvement instead of a recurring one.
It also tells you what to write. The corrections pile up around the questions your documentation never answered, which is a more honest content backlog than anything a planning meeting produces.
Check the documents before blaming the bot
Retrieval cannot resolve a contradiction. If two pages state different refund windows, the bot will cite whichever one it found, and it will look like a hallucination when it is an accurate reading of a document that should have been deleted. Before any prompt work, search your own knowledge base for the question that failed and read what comes back.
How documents are split matters as much as what is in them. Terra's ingestion chunks articles before embedding them; a chunk that cuts a procedure in half retrieves as a fragment, and an answer built from fragments reads like a confident guess. If answers are vague rather than wrong, suspect the chunking before the model.
What to do with the next wrong answer
- Keep the exact question. Not a summary of it — the wording matters to retrieval.
- Run it against the knowledge base and read what comes back before reading the answer.
- If the right passage was not retrieved, the problem is ingestion, chunking or the relevance floor.
- If it was retrieved and the answer still went wrong, the problem is the prompt or the rules.
- If the content was not there at all, it is a documentation gap — write it, do not prompt around it.
- Correct it, feed the correction back into the knowledge base, and re-ask the same question to confirm.
Common questions
Why does my AI chatbot give confident wrong answers?
Usually because retrieval failed, not because the model is weak. It answers from the passages it is given, so if the right passage was not found, it fills the gap. Check what was actually retrieved for the failing question before changing the prompt or the model.
Will a bigger model stop the hallucinations?
Rarely. If the retrieved context did not contain the answer, a stronger model writes a more convincing wrong answer. Fix ingestion, chunking and the relevance floor first.
How do I make a chatbot say it does not know?
Set a relevance floor on retrieval and return a fixed message when nothing clears it, instead of generating an answer. Pair it with handover to a person for categories that must never be answered automatically, such as refunds or medical and legal claims.
How should a chatbot handle questions about order status or prices?
Fetch them live from the system that owns them at the moment of asking. Documents go stale, so retrieving that kind of answer from text is how a bot quotes a price that no longer exists. If no live source is wired up, route the question to a person.
How does a support chatbot get better over time?
Through a correction loop. In the Telegram support bot I built, admins review and correct answers in a panel and the correction is re-embedded into the knowledge base, so the next person asking that question gets the fixed answer. Without that loop, the same wrong answer repeats forever.
My chatbot's answers are vague rather than wrong. What causes that?
Usually chunking. If documents are split so that a procedure is cut in half, retrieval returns fragments and the answer is built from pieces. Review how documents are divided before embedding them.