
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
02-07-2022 07:28 AM - edited 06-26-2024 05:24 AM
Real Time Language Detection/Switcher in Virtual Agent
Prior to the release of Version San Diego, Virtual Agent (VAs) offered a static language experience. Users interacted with the VA in the language designated within their profile, and there was no option to dynamically switch languages during a conversation.
With the introduction of San Diego, a new feature known as "dynamic translation" empowers VAs to deliver a more multilingual customer experience. This functionality enables users to seamlessly switch between languages during VA interactions.
Plugins to Activate:
1. com.glide.cs.runtime_language_detection_translation
2. com.glide.dynamic_translation
Real time detection
Activating the plugin introduces a new topic called: Runtime Language Detection. This feature resides alongside the user's input text area and analyzes the entered text in real-time. Based on the detected language, the plugin can then suggest a language switch to the user.
Once yes is selected, then language switch will take immediate effect.
Note: Make sure sn_dt_translator_configuration has a default detection flow. None of the detection will be active when the plugins are activated.
New variables in Virtual Agent
This new feature make way for new variable namely - global_requester_session_language
This can be used as -
vaVars.global_requester_session_language
Show languages available
This opens way for users to select language when opening a conversation, we can prompt users to select the languages available to choose.
Now picking the language manually makes switch to that language. In the script update the variable with the language code. In this case I have updated as vaVars.global_requester_session_language = vaInputs.lang. "de" will be the input value from select box below.
The conversation is switched to German from here.
Thank You!
Murali
- 4,608 Views

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Looks promising!
Kind regards,
Mark

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Yes, amazing feature.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Did you add the language detection into your greeting or did you put it in multiple areas that a user would input text? I'm looking to configure this and curious on the best path to implement.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Alex, In the article above, I have duplicated the greeting topic and offered language selection in it.
Once the user selects a language, you can configure the conversation to continue entirely in the chosen language by updating.
vaVars.global_requester_session_language = vaInputs.lang
You can also update the sys_user
language field to the selected language, ensuring that the chosen language is applied across the entire platform.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
To your point, this feature does not work on the greeting to run Topic Discovery, yet. The Tokyo release will have a better experience [safe harbor applies.]

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Dynamic translation is getting slow using this solution. Any idea around that? Are you experiencing the same?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi, does it needs to be integrated with any one of ibm , google or microsoft ?