Restricting virtual agent topics based on Mobile/Slack/Teams/Facebook
Import
·
Sep 30, 2020
·
article
Channeling Virtual Agent Topics by Device and Platform
This approach provides a foundation for granular control over VA topic availability based on user access points. You can adapt the script condition to target specific device types (mobile, Teams, Facebook) as needed.
Here's the breakdown:
- Leveraging Device Type: When a user interacts with the VA (mobile app or web interface), a new conversation record is created in the
sys_cs_conversationtable. This record includes a "device type" field that identifies the user's device. - Topic-Based Access Control: Each VA topic has a "condition" field where custom logic can be defined using scripts. Here's an example script that grants access only to users connecting via Slack:
Open any VA topic and click on the properties tab. This script below checks the user is logged in from Slack and grants access.
(function execute() {
var device = vaContext.deviceType === 'slack';//mweb,teams,ios,android,facebook,messenger
return device
})()
By implementing these concepts, you can tailor the VA experience to best serve users on their preferred platforms.
Thank s,
Murali
View original source
https://www.servicenow.com/community/virtual-agent-nlu-articles/restricting-virtual-agent-topics-based-on-mobile-slack-teams/ta-p/2307453