Open a Topic Automatically onclick of a button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2020 03:01 AM
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
Thanks,
Sai chetan
- Labels:
-
Virtual Agent
- 3,656 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Can you explain how did you achieve opening VA on click of report an issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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??