Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Custom greeting in virtual agent is not getting translated

snow34
Tera Contributor

Hi Team

It's urgent!

i have created a custom greeting which is not getting translated.

 

Please find below script for refrence

 

(function execute() {
if (!vaVars.user_loggedin) {
//User is Not LoggedIn
var agentSupport = [];
agentSupport.push(gs.getMessageLang("welcome to POINT support chat. You can contact:\n \n - IT support in your local language or in English (24/7).Machine translations are used for local languages.\n \n - Finance support (weekdays 9-15 EET).\n \n - Construction equipment support (weekdays 8-15 EET)",
vaContext.getRequesterLang(), [gs.getMessageLang('Show me everything', vaContext.getRequesterLang())]));
vaSystem.sendTopicPickerControl(agentSupport.join(' '));
}
else {
//User is LoggedIn
var greetingMessages = [];
greetingMessages.push(gs.getMessageLang('welcome to POINT support chat. You can contact: ',
 
'- IT support in your local language or in English (24/7). Machine translations are used for local languages.',
 
'- Finance support (weekdays 9-15 EET)',
 
'- Construction equipment support (weekdays 8-15 EET)',vaContext.getRequesterLang()));

// greetingMessages.push()
greetingMessages.push(vaSystem.getTopicSelectionMessage());
vaSystem.sendTopicPickerControl(greetingMessages.join(''));
}
})()
0 REPLIES 0