Virtual Agent can detect the language a visitor types in, then either ask whether to switch or switch automatically, depending on the chat type. Administrators choose between professional localization, dynamic machine translation, fallback languages for locales, or a mix. Localization roles decide who requests, fulfils and edits each translation.
How Virtual Agent chooses a conversation language
A conversation opens in the language set in the user’s profile, and the greeting uses that preferred language. If the user then types in a different language, the platform can detect the change. Detection runs on the first utterance of a conversation. The language does not switch mid-conversation; a switch attempt at that point receives an “I didn’t understand” response.
The chat type decides how the switch happens. In standard chat, the user is asked whether to switch to the detected language, and the answer applies for that conversation. In enhanced chat, the conversation moves to the detected language automatically. Guest conversations need resumable guest sessions enabled before detection works for them.
Choosing a localization method
Professional localization uses linguists to configure topics, intents, entities, keywords and strings. Expert translations match the conversation content directly, so accuracy is high. The drawbacks are higher cost, longer completion time, and limited scalability when many languages are involved.
Dynamic machine translation trades some accuracy for speed and coverage. A third-party service translates user utterances into the instance’s primary language and translates responses back into the user’s language for the session. Accuracy depends on that service, and short utterances with little context can translate poorly. Set exclusion rules for specific terms and content patterns in the Exclusion Framework, since excluded terms are honored during dynamic translation.
In the Australia release, five languages have NLU intent and entity support, and eleven more have intent matching only (sixteen languages in total). ServiceNow provides 22 language plugins with basic translations in the Australia release. For better results, install the plugin for each language that uses dynamic translation. A language the platform does not support can still be added for dynamic translation, though the experience may vary.
A mixed approach is also possible. You might professionally localize priority languages and dynamically translate the rest. Localization Insights is one of the links in the side panel on the Assistant Designer Asset library page. Open it from All, then Conversational Interfaces, then Assistant Designer, and select the Asset library tab. Users with the localization requestor role can view them.
Setting a fallback language for a locale
A fallback lets a locale use a language the platform already supports. The platform does not support Mexican Spanish (mx-es), but it does support Spanish (es), so Spanish can serve as the fallback for Mexican Spanish users. The fallback language plugin must be installed first, and the required role is virtual_agent_admin or admin.
- Navigate to Conversational Interfaces > Settings, then select Virtual Agent.
- On the Multi language support card, turn on the Language Detection toggle.
- Select View All, open the language record, and select Edit Record.
- Choose an available language in the Fallback field, then select Update.
Custom locales then appear in the Languages (sys_language) table with their fallback shown. If ServiceNow Otto in Virtual Agent is on and you work with LLM-enabled conversations, the fallback can be set in that table directly rather than through these steps.
Turning on dynamic translation
Install the Dynamic Translation plugins and configure the credential and connection for your translation service. Activate the provider and mark it as the default for translation and language detection. Until these prerequisites are in place, the Multi language support card does not appear.
On that card, turn on Language Detection, which applies to both NLU and LLM conversations, and the dynamic language translation toggle, which applies to NLU conversations. LLM translation is configured through the Otto multilingual service. Then open View All, set Dynamic Translation Enabled to true for each language you want, and select Update. For guest users, set the property com.glide.cs.guest_session_resumable to true, since translation does not work for guests without it.
To add a language that has no plugin, open sys_language.list and select New. Enter the name, the Active check box, the BCP 47 ID such as es-MX, the text direction, and a fallback. Optionally, translate some system messages in the Message table (sys_ui_message), such as Yes, No, Send and End conversation, for a better user experience. A supported fallback already includes these, so they need no translation in that case.
Before a dynamic call, the platform checks the Message table and the Text Translations for Dynamic Translation table (sys_cs_dynamic_translation_text). The service is called when neither holds a translation. Results are stored for reuse, and that table is cleared after 24 hours so that Message records take precedence. Exclusion rules are honored, and AI Search results are not translated.
Dynamic translation works in the ServiceNow chat widget, Microsoft Teams, Slack, Workplace from Facebook and Facebook Messenger. It is not supported in the ServiceNow mobile client, WhatsApp, LINE, Twilio SMS, Alexa or Google Assistant. If it is on for Virtual Agent but off for Agent Chat, the live agent sees the user’s detected language, so enabling it for Agent Chat too may help.
Standard and enhanced chat behaviour
In standard chat, a No answer stops further prompts, and the conversation continues in the original language. A Yes answer translates the user’s prompt into the default language and translates topic matches into the user’s language for the rest of the conversation. For LLM conversations, that default is set by the com.glide.cs.llm.default.Language system property.
Reloading the browser restores the preferred language in the next conversation. Restarting through the chat widget’s restart feature restores the previous conversational language, unless the user declined the switch earlier. No prompt appears when the detected language matches the preferred language. The preferred language also remains in use when no fallback exists and dynamic translation is off, or when the detected language is not activated.
Enhanced chat switches automatically on the first utterance of a new conversation or from the home page search field. It does not switch when the detected language’s plugin is missing and dynamic translation is off, or when detection confidence is below threshold. Restarting with a more specific utterance may help. After a restart, the preferred language is used again.
For NLU conversations, the default language comes from the glide.sys.language system property. The Brazil release labels its NLU language and fallback pages as (Legacy).
Localization roles and the translation workflow
Topics are developed and released in the source language, translated by request or by direct editing, then tested and published. NLU models must be translated as well. The Localization Framework standardizes and tracks this process. It lets you choose how requests are fulfilled, whether by machine translation, a translation management system or file export and import, and it sets business rules for automatic translation and publication or approval first.
Three roles take part. The localization requestor asks for translations and can view localization insights; it is included in the Virtual Agent admin role. The localization fulfiller provides the translations and works within Localization Framework tasks, and that role may lack Virtual Agent privileges. The localization editor changes translations directly in Virtual Agent Designer, and it is included in the NLU admin and Virtual Agent admin roles. Where a specialized role covers the work, the guidance is to avoid granting the admin role.
Translated content is displayed for published topics, and a preview of an unpublished topic shows the original text.
Writing scripts that can be translated
The gs.getMessageLang method looks up the Message table for a translation of a script’s text in the requester’s language, and returns the default English text when none exists. It can be applied before any translation has been created. Variables are passed as numbered placeholders such as {0}, with the variable listed in an array after the language argument. Language values use ISO 639-1 two-character codes.
Frequently asked questions
Can a conversation switch languages partway through?
No. Detection applies to the first utterance, and a mid-conversation attempt receives an “I didn’t understand” response.
What happens if a user declines the switch?
In standard chat, Virtual Agent does not ask again during that conversation, and the preferred language returns in later conversations.
Do I need to translate system messages when I use a fallback?
Not when the fallback is a supported language, because its plugin already includes them. Translation is optional when you add a language that has no plugin, but it gives users a better experience.
Which roles can edit translated content?
The localization editor role edits translations directly in Virtual Agent Designer. The Virtual Agent admin and NLU admin roles include it by default.