Configure Virtual agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2024 06:29 AM
Hi, I need help regarding virtual agent, I am trying to set up some topics & topic blicks for HR portal but i want those topic should not be visible on another portal, please let me know how to set up topics & topic blocks for portal specific so that it will not visible on another portal, also some ootb hr topic blocks are not working on agent chat (create hr case), once i am selecting it, chat response is thankyou for contacting support chat, it should ask for details and create hr case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2024 09:36 AM
Hey @sonali9 -
You should be able to do this by going to the topic properties, under Who can access this topic, and adding in script to the Context:
(function execute() {
if(vaContext.portal == 'esc'){
return true;
}else {
return false;
}
})()
Or, whichever portal URL suffix you are using, based on your portal configuration:
Here is a SN Doc showing this exactly: How to restrict the topic for a specific portal
Give this a try and see if it works for you.
Cheers,
-Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2024 10:13 AM - edited ‎05-15-2024 10:15 AM
@Rob Sestito I have tried exactly same but not working, after applying changes topic is not visible on both portals

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2024 05:03 PM
Interesting you say that, mine now keeps going back and forth with showing up and not showing up. I thought it was just my PDI being dumb... I am going to keep researching this.
I also saw this post (Display topic based on portal that users found helpful and have a correct answer.