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