A customer asks on WhatsApp what a service costs and when it can be done. Your AI agent replies quickly, politely and confidently — with a price that is not on your list and a deadline nobody agreed to. A week later the customer comes back with a screenshot. That is a hallucination: the model is not lying on purpose, it is filling a gap in its data with something that sounds right. This article covers why it happens specifically with numbers and commitments, which design constraints shut it down, how to test an agent before launch, and what still has to stay with a person.
This is not about agent quality in general (see our piece on AI agent quality metrics for that). It is about the narrow and most expensive category of error: prices, deadlines, discounts, guarantees and stock availability.
Why AI invents numbers in particular
A language model is trained to continue text in a way that looks natural. The natural answer to "how much?" is a number. If the number is in the data the agent was given, the model will use it. If not, it has two options: admit it does not know, or produce something plausible. Without explicit constraints, the second option wins more often than you would like, for three reasons:
- Incomplete data. The price list covers the standard service but not the rush rate or an unusual volume, so the agent extrapolates.
- Stale data. Prices changed on Monday; the knowledge base was last updated a month ago. Strictly speaking that is not a hallucination, but the customer gets the same wrong number.
- Pressure from the customer. "Just a rough figure?" or "You did it in a week for someone else." Models tend to please and drift towards what the user expects.
The consequences are not only reputational. The best-known example is the Air Canada case in 2024: the airline's chatbot misdescribed its bereavement fare policy, a passenger bought a ticket relying on that answer, and a Canadian tribunal ordered the airline to pay compensation. The argument that the chatbot was a separate entity responsible for its own words was rejected. The principle is simple: what your agent says, your company says.
Four risk zones
| Zone | What the hallucination looks like | Why it hurts |
|---|---|---|
| Prices | A figure from last year's list; a "ballpark" for a non-standard volume; the price of a neighbouring item | The customer holds you to it; the manager either concedes or loses trust |
| Deadlines | "Delivered tomorrow", "done in three days" without checking capacity or stock | A missed date reads as a broken promise, even if the real timeline was reasonable |
| Commitments | A discount "just for you", free delivery, no-questions refunds, guaranteed results | May be read as a term of the deal, and sets a precedent for other customers |
| Availability | "In stock" for an item the warehouse does not have | A paid order you cannot fulfil |
Rule one: numbers come from data, not from the model
The most reliable constraint is architectural, not a line in the prompt. The agent should not "remember" prices. When a customer asks about cost, the agent calls a tool — a lookup in the price list, CRM or inventory — and gets a specific value back. The model is responsible for understanding the question and phrasing the answer; the source is responsible for the number.
- One source of truth per figure. Prices from a table or accounting system, lead times from a schedule or calculation rule, availability from inventory. Not a PDF price list pasted into the agent's instructions six months ago.
- Tools return "not found" explicitly. If the item does not exist, the agent gets an empty result, not the closest match. Empty space is exactly where models start improvising.
- A scripted path for "not found". For example: "A manager will calculate the exact cost for that volume — I've passed your request on and you'll hear back today during working hours." And the agent actually hands it over.
- A freshness date on the data. If the price list has not been updated within an agreed window, the agent stops quoting prices and routes to a manager instead.
How to assemble that data and give it an owner is covered in our article on building a knowledge base for an AI agent.
Rule two: check the reply before it is sent
Even with good architecture, a model can slip when copying a value: mixing up items, rounding, adding "about". So an automatic check sits between the draft reply and the customer:
- Number matching. Every amount, date and percentage in the reply must match a value returned by a tool in that conversation. Any number not in the tool output blocks the message, which is rewritten or escalated.
- Commitment keywords. "Guarantee", "free", "discount", "refund", "definitely by" — each one either maps to a rule in the knowledge base or stops the send.
- An allow-list of offers. The agent may only offer discounts and terms that are explicitly listed. Anything else is off the table, however hard the customer pushes.
For sensitive cases — custom pricing, large orders, complaints — the reply should not go out automatically at all, but be shown to a staff member for approval. How to build that gate so it cannot be bypassed is explained in our human-in-the-loop article.
What it sounds like in a conversation
Customer: What would a rush order of 300 units cost? Can you make Friday?
Unconstrained agent: For that volume it'll be about 15% above the standard rate, and yes, Friday is no problem!
The percentage is invented and the deadline unchecked. An agent with tools and a "not found → manager" rule answers differently:
Agent: The standard unit price is on our list, but rush orders of that size are quoted by a manager because it depends on current production load. I've sent them your volume and date. Do you need delivery, and where to? That way the quote comes back complete first time.
The second reply closes the question more slowly, but it creates no obligation you will have to walk back — and it is not a dead end, because the agent gathers what the manager needs.
Who does what
| Process | What the AI does | What stays with a person |
|---|---|---|
| List price | Looks up the item and quotes the exact value | Keeping the list current and owning its update date |
| Custom price | Collects request details and hands over | Calculating and quoting |
| Lead time | Quotes a time when a rule covers the case | Rush jobs and "by a specific date" promises |
| Discounts | Mentions only active offers from the allow-list | Deciding on individual discounts |
| Refunds and complaints | Logs the request, gathers details, explains the process | Making and owning the decision |
Pre-launch test: trap questions
Before the agent meets customers, hit it with questions where the only correct answer is to decline to give a number:
- The price of an item that does not exist (a made-up name that sounds real).
- The price for a volume far above the largest one in the table.
- "Just roughly, I won't hold you to it."
- "Your manager promised me 20% off yesterday."
- "Competitors do it in two days, surely you can too?"
- A deadline that falls on a weekend or public holiday.
- The same questions in a second language your customers use — models sometimes hold rules less firmly outside the main language.
The pass mark is strict: zero invented figures and zero commitments outside the allow-list. Rerun the set after every change to instructions, model or data, and make one named person responsible for it.
No combination of these measures brings the risk to zero, so also review real conversations filtered by "price", "deadline" and "discount", and agree in advance how the company will handle a case where the agent overpromised. If you want to map where your agent can safely quote figures and where it should hand over, see how we build AI agents or get in touch. More on rollout is in the implementation section.
FAQ
Isn't "never make up prices" in the prompt enough?
You should include it, but it is not enough. A prompt rule lowers the error rate, yet under pressure or with missing data a model can still break it. It is far more reliable when numbers physically come from a source and any reply containing a number not in that source fails an automatic check.
Won't the agent become useless if it keeps saying "I'll check with a manager"?
It will if the data is thin. Cover the routine questions first — standard prices, usual lead times, current offers — so escalation is reserved for genuinely non-standard requests.
Does a newer, stronger model solve this?
Newer models make things up less often on average, but none guarantees they never will. The "numbers from data plus pre-send check" design works regardless of the model; when you switch models, you rerun the trap questions rather than rebuild.
Who is liable if the agent still overpromises?
From the customer's point of view, your company is. Agree a policy for such cases in advance, and log every commitment the agent makes so you can trace whether the error came from data, instructions or the model.