All articles
EngineeringUpdated 4 min read

Where translation belongs in a multilingual support bot

You do not need translated documentation to answer in a customer’s language. You need to decide which stage of the pipeline does the translating, and know where that quietly goes wrong.

A glossy blue and white globe orbited by small white speech bubbles

A support bot that answers in the customer's language has to translate somewhere. Where it does so decides most of the cost, the accuracy and the maintenance: in the documents, in the question, or only in the answer.

This post follows a question through the pipeline — ingest, query, retrieval, generation, display — and says what should happen to language at each stage. For the product side, with no per-language setup, see the multilingual chatbot page.

Three places translation can happen

ApproachWhere it translatesThe catch
Translate the docsAt ingest: a full copy of the corpus per languageLinear cost, and every translation drifts out of date separately
Translate the questionTwice: the question into English before retrieval, the answer back afterwardsTwo lossy hops; product terms get mangled on the way in
Multilingual embeddingsOnce, at generation: the question is matched across languages as writtenNeeds a genuinely multilingual embedding model

The third is what you want. A multilingual embedding model places "how do I cancel my subscription" and "wie kündige ich mein Abonnement" close together in the same vector space, so a German question retrieves your English documentation directly. The only translation is the final answer, written in German from English sources, in one step instead of three.

What happens to language at each stage

Ingest: index one language

Keep one source language and index it once. Do not add machine-translated copies of the same pages to the index: they compete with the originals for the same retrieval slots, and the day one copy drifts, the bot can find both versions of a fact.

Query: embed the question as written

Embed the customer's question in its own language rather than translating it first. Translating before retrieval is the hop where "Paramètres" becomes "Parameters" and misses the page about Settings. One exception to plan for: if you run hybrid search, the keyword half matches literal words and cannot cross languages, so non-English questions lean almost entirely on the vector half.

Retrieval: check that it crosses languages

A German question should retrieve the same passages as its English equivalent. If it does not, the embedding model is the problem, and no amount of prompt work at the generation stage will fix it.

Generation: translate once, and not everything

This is where the translation actually happens: the model reads English passages and writes the answer in the customer's language. It needs two explicit instructions.

First, product nouns stay as they are. If your dashboard is in English, telling a French customer to click "Paramètres" when the button says "Settings" is worse than not answering. Keep UI strings, plan names and menu paths verbatim:

text
Reply in the language of the question.

Keep these EXACTLY as written in the source, untranslated:
  - UI labels and menu paths (Settings › Chat widget)
  - Plan names (Free, Hobbyist, Pro)
  - Error messages and error codes
  - Product and feature names

Translate the surrounding explanation only.

Second, register is a policy, not a default. Some languages carry a formality decision in every sentence — du/Sie, tu/vous, informal and honorific Japanese. Pick a policy per language and state it in the prompt. Defaulting to whatever the model prefers means your brand voice is set by a coin flip.

Detection: per message, not per session

People code-switch, especially technical users who write half a sentence in English. Detecting once at the start and locking it in produces the frustrating experience of a bot that will not switch back. Detect on every turn, with a light bias toward continuity so a single English product name does not flip the whole conversation.

Display: right-to-left is a UI problem

Arabic and Hebrew answers will be correct and will still render badly if your widget does not set text direction per message. Check it with real text before you claim support.

How to test it before launch

This matters most where customers arrive from many countries at once — a hotel, tour operator or travel agency, say, where guests write in their own language at hours when nobody is at the desk to catch a bad answer.

  1. 1Take your ten most common questions and have native speakers write them naturally in each target language — not machine-translated from English, which produces unnaturally clean queries.
  2. 2Confirm the retrieved passages are the same ones the English question retrieves. If they differ, the embedding model is the problem, not the generation.
  3. 3Have a speaker read the answers for register and terminology, not just correctness.
  4. 4Check the widget rendering for RTL and for scripts with tall glyphs.

Then add languages to a live bot the way you would add any other change: one at a time, on a slice of traffic, as part of a staged rollout.

The customer does not care that your documentation is in English. They care that they asked in Portuguese and got a correct, natural answer that matched the buttons on their screen.

Done properly, the cost of the eleventh language is close to zero. That is the real change: not the language count on the pricing page, but the fact that adding one stopped being a decision you have to budget for.

  • Localisation
  • Retrieval
  • Architecture

Keep reading

Ask CustomerBotAnswers from our product docs