How to restrict topic in virtual agent on service portal side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 01:23 AM
Hello Team,
I have two topics in virtual agent so one topic is visible in teams virtual agent but same topic i do not want to make it visible on service portal side.
So please give me some ideas to achieve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 02:11 AM
Might be helpful
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0996639
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 02:19 AM
Sure, you can control the visibility of Virtual Agent topics based on the channel (Teams, Service Portal, etc.) by using the 'Channel' field in the Topic table. Here are the steps:
1. Navigate to Virtual Agent > Designer.
2. Open the topic that you want to restrict.
3. In the Topic form, locate the 'Channel' field.
4. This field is a multi-select box where you can select the channels where this topic should be available.
5. If you want the topic to be available only on Teams, select 'Teams' and remove other channels like 'Service Portal'.
6. Save the changes.
Please note that the 'Channel' field is available starting from the 'New York' release of ServiceNow. If you are on an older version, you might need to create a custom solution to achieve this.
nowKB.com
For a good and optimistic result, and solving ServiceNow-related issues please visit this website.https://nowkb.com/home
Kindly mark correct and helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 02:41 AM
Sure, you can control the visibility of Virtual Agent topics based on the channel (Teams, Service Portal, etc.) by using the 'Can User Access Topic' script in ServiceNow. Here are the steps:
1. Navigate to Virtual Agent > Designer.
2. Open the topic that you want to control.
3. In the topic, go to the 'Can User Access Topic' script field.
4. Write a script that checks the channel from which the user is accessing the topic. You can use the 'gs.getProperty' method to get the channel name.
5. If the channel is 'Teams', return true; if it's 'Service Portal', return false. This will make the topic visible in Teams but not in Service Portal.
Here is a sample script:
javascript
(function execute(inputs, outputs) {
var channel = gs.getProperty('channel.name');
if (channel == 'Teams') {
return true;
} else if (channel == 'Service Portal') {
return false;
}
})(inputs, outputs);
Please note that this is a simplified example and you might need to adjust it based on your exact requirements and ServiceNow setup.
nowKB.com
For asking ServiceNow-related questions try this :
For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.
Link - https://nowgpt.ai/
For the ServiceNow Certified System Administrator exams try this :
https://www.udemy.com/course/servicenow-csa-admin-certification-exam-2023/?couponCode=NOW-DEVELOPER