- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 09:27 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:06 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:41 PM
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