Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Virtual Agent Chatbot

mounikaG2625882
Tera Contributor
We have Virtual Agent enabled on multiple portals (sp, csm, business). When I deactivate/hide topics to limit what shows in the SP portal, the change impacts all portals. What is the recommended way to show only a few topics in SP while keeping other portals unaffected (portal-specific topic visibility/config)?
1 REPLY 1

Sneha KH
Tera Guru

 

Hello @mounikaG2625882 ,

Try this once:

  • Navigate to Conversational Interfaces > Virtual Agent > Designer.

  • Open the topic you want to restrict to a specific portal (e.g., the "SP" portal).

  • Locate the Condition field.

  • Use the vaContext object to check the portal source.

  • Enter a script similar to this: 
    (function execute() {
    // Check if the portal is set in the context
    // Replace 'service_portal_sys_id' with the actual sys_id of your SP portal
    if (vaContext.portal == 'your_sp_portal_sys_id_here') {
    return true;
    }

    // If you want to hide it from all other portals
    return false;
    })();