Your AI Support Bot Will Refund Money It Should Never Refund: A Routing Layer for 19 Locales
Every multilingual support bot demo looks the same: you type "where is my order", it answers in your language, everyone claps. Then it goes live, and within a week three things happen that no demo ever shows.
It refunds money. A customer writes "I want my money back or I call my lawyer" in Turkish. The model, being helpful, apologises and promises a refund. Your finance team finds out from the chargeback.
It invents policy. Your refund rules were reviewed in English, Traditional Chinese, Japanese and Korean. The bot happily paraphrases them in Polish, where nobody has ever read the actual terms. The translation is fluent. It is also wrong.
It burns a budget. One customer in a loop, 40 messages, a reasoning-tier model on every turn. A single conversation costs more than the order.
None of these are model-quality problems. They are routing problems: what reaches the model, in which locale, under what budget. Fix the routing and a mid-tier model becomes shippable. Skip it and the best model on the market still refunds money it should never refund.
The decision layer, not the prompt
The instinct is to write a longer system prompt: "never promise refunds, never discuss legal matters, always stay in policy". This fails for a structural reason — a prompt is a suggestion evaluated by the same model that is trying to be helpful. A routing layer is code, and code can be tested, logged and audited.
So the architecture is:
inbound message │ ▼ [ guard table ] ── money / legal / security / finance ──▶ human queue (priority 80-100) │ ▼ [ value + sentiment + loop checks ] ─────────────────────▶ human queue (priority 50-70) │ ▼ [ locale policy gate ] ── locale has no reviewed strings ─▶ human queue (priority 50) │ ▼ [ token budget ] ── exhausted ────────────────────────────▶ stop │ ▼ model tier chosen by locale + intent Three properties matter more than the exact rules:
- Deterministic. Same message, same decision. No sampling, no clock, no randomness. This is what makes the layer unit-testable.
- Fail closed. Any uncertainty — unknown locale, high order value, unreviewed policy — escalates to a human instead of guessing.
- Cheap to run. The guard table is regex and arithmetic. It costs microseconds and runs before you spend a token.
Guard table: the four things a bot must never handle
These four intents are not "hard questions". They are intents where a wrong answer creates a liability that outlives the conversation:
| Intent | Signal | Why escalation |
|---|---|---|
| Money movement | refund, chargeback, dispute (in any of the 19 locales) | a promised refund is a financial commitment |
| Legal exposure | lawyer, solicitor, sue, consumer protection | anything said becomes evidence |
| Account security | hacked, unauthorised login, 2FA loss | an unauthenticated bot must not touch credentials |
| Tax documents | invoice, VAT, tax id, receipt | finance generates documents, not a language model |
Order matters. A message containing both "refund" and "where is my order" is a refund message. Highest-priority rule wins, and the winning rule is written to the conversation record so a human can see why it escalated.
The multilingual part is the tedious part: each intent needs its trigger set in every supported locale. A refund keyword list that only covers English and Spanish will quietly pass German refund demands straight to the model. In the routing module I published, every rule carries its triggers across 19 locales — including Japanese, Korean, Thai, Vietnamese, Turkish and Arabic.
The locale gate nobody builds
Here is the failure I see most often in cross-border deployments. The site supports 19 locales for marketing. Someone assumes the same 19 locales are ready for policy conversation. They are not: marketing copy is reviewed by a marketer, refund policy is reviewed by whoever owns the money.
So the routing layer needs an explicit allowlist of locales whose customer-facing policy strings have been human-reviewed. A message in a locale outside that list does not get a translated guess. It goes to a human queue with the locale attached, so the team can see exactly which market is generating unreviewed traffic — which is also your queue for hiring the next reviewer.
This single check converts "we support 19 languages" from a liability into a roadmap.
Cost: budget per conversation, not per month
Monthly token budgets are useless for support, because cost is concentrated: a handful of looping conversations dominate the bill. The unit that matters is the conversation.
Give each conversation a hard token budget. When it is spent, the layer stops the bot and hands over — it does not "try once more with a cheaper model". A stop is honest; a downgraded answer to an already frustrated customer is not.
Then attribute spend: per conversation, per tenant, per locale. Without attribution you cannot answer the only commercial question that matters — is this locale's automation actually cheaper than staffing it?
Model tiers by locale, not by prestige
Not every locale deserves the most expensive model on the first turn. In practice three tiers cover the traffic:
- standard tier — your highest-volume, best-reviewed locales (English, Traditional Chinese, Japanese)
- multilingual tier — locales where the smaller model's fluency is already adequate for FAQ and logistics traffic
- reasoning tier — technical intents (error reports, integration questions) and long messages, regardless of locale
Technical intent and message length are better predictors of "needs the expensive model" than language is. A 1,200-character error report in Vietnamese needs reasoning. A one-line "where is my parcel" in English does not.
What you get to test
Because the layer is pure, the test suite is boring and fast: 15 cases, no network, no model. Refund in English escalates. Refund in Traditional Chinese escalates. Legal threat escalates. Account takeover escalates. FAQ goes to the AI tier. Unreviewed locale escalates instead of inventing policy. High-value order escalates. Two negative turns escalate. Three unresolved turns escalate. Budget exhausted stops. Same input, same output, twice.
That suite is the actual deliverable. It is what lets you change a prompt, swap a model or add a locale without re-auditing the whole desk — the safety properties live in code, not in the prompt you just edited.
The full runnable module and its test suite are published here: multilingual AI support routing on GitHub Gist.
Where this fits commercially
A support bot is not a chatbot project; it is an escalation design. The work is deciding what never reaches the model, which locales are allowed to answer, and how a conversation ends. Build that first and the model choice becomes a line item you can tune. Build the model first and you will spend the next quarter firefighting refunds.
If you are shipping a multilingual support desk and want the routing layer, the locale policy audit and the human hand-off built as one system — the architecture write-up is here, and the AI customer service automation service page covers scope and delivery. Fixed-scope pricing, milestone settlement, full source handover: keston.dev/pricing.
I'm Leon, an independent full-stack engineer running KESTON — unrelated to Keston Boilers, the UK heating brand. I build cross-border storefronts, Telegram Mini Apps, multi-level agent back offices and multilingual AI support desks, with an AI-assisted pipeline that ships in weeks rather than quarters.