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
Audience
Who the content is for — a market, region or site that you define. Germany and Austria are two audiences.
Language
What the text is written in. Those two audiences share one language: German.
Set up markets
Say your site is English atexample.com, German at example.com/de and Swedish at example.com/sv.
1
Create one audience per market
Go to Settings → Audiences and create one audience per market — a code, a label, and the language that market reads:
Don’t create one for English. English is the shared default that everyone gets.
2
Tag your knowledge
Under Knowledge → Web pages, add one entry per market pointing at that market’s address:Files, articles and Q&As carry the same two fields on the form where you create them.
Crawling never leaves the address you give it, so the German entry can’t wander into
/sv. The last entry starts at the root, so list the market paths in its Exclude paths, one per line, to keep it English-only:3
Detect the visitor
On your chatbot’s Localization tab, under Detect language or audience from URL, add a rule per market:
Rules are checked top to bottom, and the first match wins.
4
Decide what everyone else sees
Unmatched visitors covers anyone no rule matched — here, everyone reading English.
- Answer from all knowledge — the default.
- Answer only from untagged knowledge — choose this when showing the wrong market’s content is worse than a shorter answer. English visitors then never get pointed at a German page.
What each visitor gets
With Answer only from untagged knowledge selected:Which language the widget speaks
Your greeting, teaser and suggested questions come from the first of these that applies:- A language your detection rule targeted directly
- The default language of the audience the rule matched
- The visitor’s browser language, if you’ve enabled that language
- Your default widget language
Common questions
Should a rule target an audience or a language?
Should a rule target an audience or a language?
An audience, unless the only difference is what the text is written in.An audience rule adds that market’s content to your shared content. A language rule filters on the written language instead, which leaves out anything written in another language — including your shared English pages.
Why is Delete greyed out on an audience?
Why is Delete greyed out on an audience?
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 audiences, then delete.
My market's language isn't in the widget language list
My market's language isn't in the widget language list
Two different lists. Knowledge can be tagged in any language we support, but the widget’s own greeting and teaser text covers a shorter list.A visitor in a market without widget text still gets answers from that market’s knowledge, in their language — only the greeting falls back to your default.