Virtual Agent - How to embed links and route to the topics in the chatbot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 07:52 AM
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.
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?
Sujatha V.M.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:10 AM
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>');
Sujatha V.M.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:27 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:33 AM
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.
Sujatha V.M.