- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 06:15 AM
I am using switchtopic() to switch topics but When I use this function, Option to start a new conversation is not coming in virtual agent. See below image:
Now, I want to use topicDiscovery() to switch the Topics but I do not know the exact syntax and procedure to use the same. Can anyone please help me that how do we use topicDiscovery() to switch to specific topics?
Solved! Go to Solution.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 01:52 AM
Basically it's just what's mentioned in this article:
50+ (Un)documented Virtual Agent variables (vaInputs, vaVars, vaContext, vaSystem)
Or just example script:
(function execute() {
vaVars.global_search_text = 'Topic Name to Switch to';
vaSystem.topicDiscovery();
})()
Be aware: Name of the topic, not sys_id!
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 06:58 AM
Hello,
vaSystem.switchTopic(vaVars._setup_explore_help_topic);
The OOB behavior of the Anything Else Topic will start a new conversation when you answer "Yes" to the "Is there anything else I can assist you with?"
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 12:58 AM
Hi, I want to know the syntax of topicDiscovery().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 01:14 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 01:19 AM
Sure will look into it shortly!
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field