We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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;
    })();