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

Sujatha V M
Kilo Patron
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?

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.
6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Can you share what you tried?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

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>');

 

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

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.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

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. 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.