Select Language Automatically in VA

Yudai Yamamoto
Mega Guru

I have a question about Virtual Agent.

 

I want to get user language automatically when a user start to use VA.

Does anyone know how to script?

1 ACCEPTED SOLUTION

Abbas_5
Tera Sage
Tera Sage

Hello @Yudai Yamamoto,
Similar kind of requirement, please refer to the below link:
https://www.servicenow.com/community/developer-forum/virtual-agent-language-selection/td-p/2666966

 

If it is helpful, please mark it as helpful and accept the correct solution.

Thanks & Regards,
Abbas Shaik

View solution in original post

2 REPLIES 2

BalaG
Kilo Sage

Hi @Yudai Yamamoto   sys_user has a language (preferred_language) attribute that one can use as the starting language for VA. If you want to detect the language after the user types in the query then I am not sure ServiceNow has any built in API for language detection. You can use third party language libraries like Google Cloud Natural Language API

 

Specifically  -->

https://cloud.google.com/natural-language/docs/reference/rest/v2/documents/analyzeEntities

 

hope this helps

--

Bala Guthy

Abbas_5
Tera Sage
Tera Sage

Hello @Yudai Yamamoto,
Similar kind of requirement, please refer to the below link:
https://www.servicenow.com/community/developer-forum/virtual-agent-language-selection/td-p/2666966

 

If it is helpful, please mark it as helpful and accept the correct solution.

Thanks & Regards,
Abbas Shaik