Virtual Agent - How to embed links and route to the topics in the chatbot

sujitha16
Kilo Patron

Hi All, 

 

Could anyone let me know, how to embed a "Topic" as a URL and on click it should route to the topic. 

For eg. 

SujathaVM_1-1707493903946.png

On selection of click here, I'm not able to launch the VA topic. When I try to call an onclick event, it loads only a blank page.

 

Can someone help me on this?

6 REPLIES 6

Mark Roethof
Tera Patron

Hi there,

 

Can you share what you tried?

Thank you for the response!

 

On the greetings topic, I had added a "Multi-response bot activity" with the response as HTML. 

 

In the HTML editor, added a syntax as <a href="<either with link or #" onclick=function name()>Click Here</a>

 

Called the function with the script syntax and tried with vaSystem.switchTopic('<topic name>');

 

 

 

Just wondering, how did you came up with this? Did you see this somewhere and tried to replicate, or did you make this up yourself?

 

Be aware: vaSystem.switchTopic is not recommended to use anymore already since a while.

Instead of having promoted topics as buttons, would like to have them as links hence tried out the feasibility. 

 

Is there a way to trigger the topic using embedded links?

 

Any help on this is appreciated.