Why does the AI agent provide articles in a different language from the generative reply?

<h2 id="h_01HYBAYSYE6D5MS9R76RP14V1N">Question</h2><p>Why does the AI agent provide articles in a different language from the generative reply?</p><h2 id="h_01HYBAYSYEBM197897FQ8P2KW9">Answer</h2><p>By default, the Web Widget detects the language that the customer's browser sets. You can also <a href="https://developer.zendesk.com/api-reference/widget-messaging/web/core/#set-locale" target="_blank" rel="noopener noreferrer">set a locale</a> to override the browser language. The AI agent replies based on the language of the customer's message. If the message language differs from the detected locale, the AI agent replies in that language, but the articles beneath appear in the locale that the Web Widget detected.</p><p>The AI agent matches the message language, and the related articles follow the Web Widget or browser locale. This keeps content consistent with the interface settings.</p><p>For more information, see these articles:</p><ul>
<li data-list-item-id="eec4ee42b3044d5a5436e87ecb9cf1eca"><a href="https://support.zendesk.com/hc/en-us/articles/4408893879322-How-does-Zendesk-set-a-language-for-a-user-in-Support" target="_blank" rel="noopener noreferrer">How does Zendesk set a language for a user in Support?</a></li>
<li data-list-item-id="e790347ee9d66dc0fefa9ff818716d421"><a href="https://support.zendesk.com/hc/en-us/articles/4408824263578-Creating-an-AI-agent-to-automatically-resolve-customer-issues" target="_blank" rel="noopener noreferrer">Creating an AI agent to automatically resolve customer issues</a></li>
</ul><!-- AI knowledge DO NOT DELETE -->
<style>
.ai-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
</style>
<div class="ai-only" aria-hidden="true">
<details>
<summary>THIS SECTION IS AI CONTENT. DON'T EDIT OR DELETE.</summary>

<h2 id="h_01KXKJ30HQVF9R3QRCG7PVMAVY">Why does the AI agent or chatbot provide help articles in a different language from the generative reply? Why does the answer bot suggest knowledge base articles in another language? Why do suggested articles mismatch the chatbot reply language?</h2>
<p>The AI agent or chatbot replies based on the language of the message from the customer or end user. The related help articles follow the <strong>Web Widget</strong> or browser locale to keep content consistent with the interface settings. If the message language differs from the detected locale, the generative reply uses the message language while the articles beneath use the detected locale.</p>

<h2 id="h_01KXKJ30HQ3ZDEND3NFSDE5ZXA">Can you override the browser language in the Web Widget? Does the chatbot always use the browser locale for help articles?</h2>
<p>By default, the <strong>Web Widget</strong> detects the language from the browser of the end user or visitor. You can set a specific locale to override the browser language. The AI agent matches the message language for generative replies, but the recommended knowledge base articles follow the detected <strong>Web Widget</strong> or browser locale.</p>

</details>
</div>