Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Open a Topic Automatically onclick of a button

Not applicable

Hi,

We have a report an Incident button in our portal. When a user click on that button it should open the Virtual Agent with Report an Incident topic. we were able to Open VA on click of the button, but unable to start the topic automatically. Is there any way this can done

@Mark Roethof Can you please help on this?

Thanks,

Sai chetan

13 REPLIES 13

YuvaneshE
Tera Contributor

Can you explain how did you achieve opening VA on click of report an issue ?

jcmings
ServiceNow Employee

@YuvaneshE I ended up getting mine to work; this was a long time ago but I will share what I can remember. If you pull the VA widget onto the page (there are two ways to enable VA: one is via widget which will render on a single portal page, the other enables across all portal pages), and open the widget editor, you'll see the onClick that fires when the VA icon is clicked. You can use another widget to simulate that onClick and $rootScope.broadcast the event.

masonreed11
Mega Contributor

You may be able to do this by passing the topic ID or context when launching Virtual Agent, but it depends on the method you're using. Can you share how you're opening the VA (widget, API, or custom script)? That will make it easier to suggest the correct approach.

Chris D
Mega Sage

Has anybody figured out how to do this with the modern (non-widget) Virtual Agent??

Maybe it's not doable ootb (though it should be), but seeing that ServiceNow's own Now Support Portal clearly has this functionality on the "Get Support" page - click "Create a case" and the "Case Creation" topic auto-starts - surely there's a way to do it??

ChrisD_0-1783980520263.png