virtual agent - script to show a setup topic

Krissy
Giga Guru

Hi,

 

For the VA chat bot, I ask the user is there anything else they need help with? If they select "yes" , i want to repeat the setup topic instead of the topics.

I need help with a script to show "the setup topic" again. Similar to show all topics:

(function execute() {
    vaSystem.switchTopic(vaVars._setup_explore_help_topic);
})()

Assistance is greatly appreciated.

 

Thank you

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Haven't tested myself for Setup Topics, though maybe this works:

vaSystem.switchTopicByName('your_topic_name')

I know for Topics and Topic Blocks the similar method for sys_id works:

vaSystem.switchTopicById('your_topic_sysid')

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

View solution in original post

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Haven't tested myself for Setup Topics, though maybe this works:

vaSystem.switchTopicByName('your_topic_name')

I know for Topics and Topic Blocks the similar method for sys_id works:

vaSystem.switchTopicById('your_topic_sysid')

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn