Configure Virtual agent

sonali9
Tera Contributor

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.

 

3 REPLIES 3

Rob Sestito
Mega Sage

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:

RobSestito_0-1715790816807.png

RobSestito_1-1715790837116.png

(function execute() {

    if(vaContext.portal == 'esc'){
        return true;
    }else {
        return false;
    }
})()

Or, whichever portal URL suffix you are using, based on your portal configuration:

RobSestito_2-1715790916401.png

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

 

@Rob Sestito I have tried exactly same but not working, after applying changes topic is not visible on both portals

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.