Blog : How to Re-Display Topics After Conversation Ends in ServiceNow Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi Everyone,
I was working on a requirement in ServiceNow Virtual Agent (Yokohama) where I needed the main topics to appear again automatically once a topic conversation ended.
This requirement was specifically for LLM Topics, and the default "Anything Else" topic exists only in NLU topics, so some extra configuration was required.
Step 1: Locate the Setup Topic – “Anything Else Topic”
First, search for the setup topic named “Anything Else Topic” as shown in the screenshot.
This topic is only available under NLU topics, and since we are working with LLM topics, we need to migrate it.
Step 2: Migrate and Activate the Topic
After migration:
Activate the Anything Else setup topic
Publish it (it is an out-of-the-box topic)
Step 3: Add the Topic in Virtual Agent Settings
Navigate to:
Conversational Interfaces > Settings > Virtual Agent (Tab) > Select your VA assistant
Here, add the Anything Else setup topic using the link shown in the screenshot.
For many instances, the above three steps alone will make the VA display topics again automatically.
If not, proceed with the second method below.
Case 2: When Setup Topic Doesn’t Work (Custom Solution)
In one of my client instances, the above steps did not work as expected.
So I had to customize the “Anything Else” setup topic.
What I did:
Inside the topic, after the system asks the user "Do you need anything else?",
I added choice options (the topic names)Each choice is mapped to a script that triggers the corresponding topic
The final script node contains the custom logic
See screenshot below, how i added the choices into it :
Now I am pasting here the code which I used in the last script part :
(function execute() {
If you want to reuse this code for your own topics, simply copy and paste it into your script node.
Just update the choice names and their corresponding topic sys_ids inside the topicMap, and you’re done.
Thank you!
Thanks to @Dr Atul G- LNG @Nawal Singh for help and Support!
