Quick revision
The short answer
I would treat everything the chatbot says as a statement by the company, so it is limited to approved content and actions with clear disclosures. Answers are grounded in authoritative policy sources with citations, and the bot refuses when no source supports an answer; questions about money, legal matters and account changes are handed to people. Behind that sit review processes for policy content, evaluation sets that include risky topics, conversation logs kept for audit under privacy controls, and clear ownership shared between product, legal and engineering.
What to remember
In this answer, we changed a chatbot programme after a wrong refund answer led to legal action. We treated the bot's statements as company statements limited to approved content and actions with disclosures, grounded answers in authoritative policy sources with citations and refusals, handed money, legal and account matters to humans, reviewed policy content and tested risky topics, and kept audit logs under privacy controls with clear ownership across product, legal and engineering.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would treat everything the chatbot says as a statement by the company, so it is limited to approved content and actions with clear disclosures. Answers are grounded in authoritative policy sources with citations, and the bot refuses when no source supports an answer; questions about money, legal matters and account changes are handed to people. Behind that sit review processes for policy content, evaluation sets that include risky topics, conversation logs kept for audit under privacy controls, and clear ownership shared between product, legal and engineering.
Why this question is asked
When a chatbot tells a customer something wrong about refunds, the customer does not care that a language model generated the sentence; they acted on what the company told them. Tribunals and courts have already been willing to hold companies to what their chatbots said. An incident like this is a turning point for a chatbot programme, and the senior leader must change how it is run, not just patch one prompt. Interviewers ask this to see whether we connect technical design to accountability. In this answer, we will look at why the incident happened, then go through the changes: scope and disclosure, grounding and refusal, human hand-off, content review and evaluation, and audit and ownership.
1A Quick Recap: How a Bot Invents a Refund Policy
A language model produces the most plausible continuation of its input. If a customer asks 'can I get a refund after 60 days?' and the prompt contains no clear policy text, the model will often produce a plausible-sounding answer anyway, drawn from what refund policies usually say, which may not be ours. It may also mix an outdated policy page with a current one, or be talked into a 'yes' by a persistent user. None of these looks like an error to the system; the answer is fluent and confident.
So the root causes are usually organisational and architectural: the bot was allowed to answer anything, it was not forced to use authoritative sources, and nobody owned the accuracy of what it said about policy.
2Treat the Chatbot's Words as Company Statements
The first change is a principle written down and agreed with legal: the chatbot speaks for the company. From that follows its scope. It may answer from approved content, such as published policies, help articles and the product catalogue, and perform only approved actions, such as looking up an order status. Topics outside that scope get a polite redirect.
Disclosures make the nature of the service clear: the customer is told they are talking to an automated assistant, how to reach a person, and where the official policy lives. Disclosures do not remove responsibility for wrong answers, but they set expectations and make the path to a human obvious.
3Ground Answers in Policy Sources, or Refuse
Policy answers must come from authoritative sources. We retrieve the current policy documents, maintained by their owners and versioned, give the relevant passages to the model with ids, and require it to answer only from them and cite them. The customer sees a link to the exact policy section. If no passage supports an answer, the bot says it cannot confirm and offers a person, rather than guessing.
Code enforces part of this. An output check verifies that cited ids exist in the retrieved set and that answers on refund topics contain at least one citation; otherwise the answer is replaced with the hand-off message. The bot may explain the policy, but it never grants exceptions.
- Customer asks about a refund
- Does it ask for money, a legal matter or an account change?YesExplain the policy, then hand off to a personNoAnswer from sources
- Retrieve current policy passagesversioned, owner-approved
- Do the passages support an answer?YesAnswer with citations and a policy linkNoSay it cannot confirm, offer a person
- Output checkcitations exist, no promises or exceptions
5 steps in order. Play them, or step through them one at a time.
4Hand Off to Humans for Money, Legal and Account Changes
Some topics carry too much risk for automation. Requests involving money, such as refunds, compensation or price disputes, legal questions such as complaints or threats of action, and account changes such as closing an account or changing ownership go to a person. The bot can still help by collecting the details, explaining the general policy with a citation, and passing a summary to the agent so the customer does not repeat themselves.
A classifier step at the start of each turn detects these topics, and the platform routes them. This is reviewed regularly, because customers phrase risky requests in many ways.
5Review Policy Content and Test Risky Topics
The chatbot is only as accurate as the content it uses, so policy content gets a review process: each document has an owner, changes go through legal review for customer-facing policies, and the retrieval index is updated when a policy is published and old versions are removed. A stale page in the index is a common cause of wrong answers.
We also build evaluation sets that focus on risky topics: refunds, cancellations, fees, warranties, legal threats and attempts to talk the bot into exceptions. Each case has the correct answer or the required hand-off. The set runs before every change to prompts, models or content, and a failure on a risky topic blocks the release.
6Audit Logs and Clear Ownership
Conversations are logged so that in a dispute we can show exactly what the bot said, which sources it used and which version of the policy was current. Because the logs contain personal data, they have privacy controls: limited access, redaction where possible, and a defined retention period.
Finally, ownership. The incident probably happened partly because nobody owned the bot's statements. Product owns the scope and customer experience, legal owns the policy content and what the bot may say about it, and engineering owns the grounding, checks, evaluation and logging. A short incident process defines who acts when a wrong answer is reported, including correcting it with the customer.
| Area | Owner | Example responsibility |
|---|---|---|
| Scope and experience | Product | which topics the bot handles, hand-off design |
| Policy content and claims | Legal and policy owners | approve refund wording, review changes |
| Grounding, checks, evaluation | Engineering | citations required, risky-topic tests |
| Logs and privacy | Engineering with privacy office | retention, access, redaction |
7Follow-up questions
Should the company stop the chatbot after this incident?
Pausing policy answers, or the whole bot, until grounding and hand-offs are in place is reasonable if the risk is high. Many companies keep the low-risk parts, such as order status, running while they fix policy answers.
Do disclosures such as 'answers may be inaccurate' protect the company?
Not reliably. Customers are entitled to rely on information the company provides, and a disclaimer does not make a wrong answer acceptable. The real protection is answering only from approved sources and handing off risky topics.
How do you know the changes worked?
Track the risky-topic evaluation scores, the rate of answers without citations, hand-off rates, complaints about wrong information, and samples reviewed by the policy owners each month.
8Conclusion
In this answer, we changed a chatbot programme after a wrong refund answer led to legal action. We treated the bot's statements as company statements limited to approved content and actions with disclosures, grounded answers in authoritative policy sources with citations and refusals, handed money, legal and account matters to humans, reviewed policy content and tested risky topics, and kept audit logs under privacy controls with clear ownership across product, legal and engineering.
Open with
My starting point would be that whatever the chatbot says is the company speaking, and courts have been willing to treat it that way. So first I would narrow its scope to approved content and approved actions, with a clear disclosure that it is an automated assistant and an easy route to a person.
Then, if they want more
Second, policy answers must be grounded: retrieve the current, owner-approved policy text, have the model answer only from it with citations and a link, and refuse with a hand-off when no source supports the answer. A check in code makes sure refund answers carry real citations and never promise exceptions.
Third, anything involving money, legal matters or account changes goes to a human; the bot can collect details and explain the general policy, but it does not decide.
Fourth, process: policy documents have owners and legal review, the index is refreshed when policies change so stale pages disappear, and an evaluation set focused on risky topics like refunds and fees must pass before every release.
Finally, we log conversations, with the sources and policy version used, under privacy controls so we can audit disputes, and we define ownership clearly: product owns scope, legal owns policy content, engineering owns grounding, testing and logging.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring AI reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company's public chatbot gave a customer wrong refund information, and the customer...": https://scrivio-interview-library.netlify.app/spring-boot/ai-agents-and-mcp/692cc59db0/