How to switch Topics using topicDiscovery()

Vishal Sharma3
Tera Contributor

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: 

 

find_real_file.png

 

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?

@Mark Roethof 

tarek_elkelani
ServiceNow Employee

Hello, 

I believe it is
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

@tarek.elkelani 

Hi, I want to know the syntax of topicDiscovery().

Vishal Sharma3
Tera Contributor

@Mark Roethof Can you please add your input here if anything.

Sure will look into it shortly!

Kind regards,
Mark