Most sites don’t need this. If one set of answers serves everyone, skip this page. The chatbot already replies in whatever language the visitor writes in.
Two separate things
Market
Where the content applies: a country or region that you define. Germany and Austria are two markets.
Language
What a page is written in. It’s read from the page itself, so you don’t set it on knowledge.
/ch-de, /ch-fr and /ch-it, and each page keeps its own language.
Set up markets
Say your site is English atexample.com, German at example.com/de and Swedish at example.com/sv.
1
Create a market for each country
Go to Settings → Markets and create one market per country:
Don’t create one for English. Content without a market is shared: everyone gets it.
2
Crawl your whole site once
Under Knowledge → Web pages, add one entry for
example.com with All markets. No exclude paths are needed.Each page gets its language from the page itself (<html lang="de">) and its market from the rules in the next step. Files, articles and Q&As get their market on the form where you create them.3
Add a rule per market
On your chatbot’s Localization tab, under Detect market and language from URL, add a rule per market:
Rules are checked top to bottom, and the first match wins. A rule sets a market, a language, or both. The same rules tag your crawled pages, and saving them retags pages you’ve already crawled.
What each visitor gets
A visitor never gets another market’s content. If Germany and Austria both have German content, a German-writing visitor on
/pricing gets shared pages only.
Language doesn’t decide which facts are used, only which pages are linked. The chatbot links a page only when it’s written in the visitor’s language or in the language of the page they’re on. Other pages can still inform the answer. Help center articles link to their public page.
Which language the widget speaks
Each conversation has one language. Before the visitor types, it’s the first of these that gives one:- The language of the URL rule that matched
- The language your page declares (
<html lang="sv">) - A language at the start of the page’s path (
/sv/…or/sv-SE/…) - The visitor’s browser language
- Your default widget language
Common questions
Should a rule set a market, a language, or both?
Should a rule set a market, a language, or both?
A market when that part of your site is a different market: it decides which knowledge is used.A language only when those pages don’t declare one in
<html lang>. It sets where the conversation starts and which pages can be linked, and never leaves content out of answers.Why is Delete greyed out on a market?
Why is Delete greyed out on a market?
Because knowledge is still tagged with it. The Usage column on that row is the count.Open those items and set them back to All markets, then delete.
My market's language isn't one of my widget languages
My market's language isn't one of my widget languages
The chatbot still answers from that market’s knowledge, in the visitor’s language. Only your greeting, teaser and suggested questions fall back to your default widget language.