Muralidharan BS
Mega Sage
Mega Sage

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.

 

find_real_file.png

 

Once yes is selected, then language switch will take immediate effect.

 

find_real_file.png

 

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. 

 

 find_real_file.png

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. 

 

find_real_file.png

 

The conversation is switched to German from here.

 

find_real_file.png

 

Thank You!

Murali

 

Comments
Mark Roethof
Tera Patron
Tera Patron

Looks promising!

Kind regards,
Mark

Muralidharan BS
Mega Sage
Mega Sage

Yes, amazing feature. 

Alex Edmiston1
Giga Guru

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. 

Muralidharan BS
Mega Sage
Mega Sage

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.

Victor Chen
ServiceNow Employee
ServiceNow Employee

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.]

ravikm
Tera Contributor

Dynamic translation is getting slow using this solution. Any idea around that? Are you experiencing the same?

akashdharmaraja
Tera Explorer

Hi, does it needs to be integrated with any one of ibm , google or microsoft ? 

 

Version history
Last update:
‎06-26-2024 05:24 AM
Updated by:
Contributors