Skip to main content

I have my custom Agent that I built with Agentforce Builder. I activated it so it appears on my Global Header as a button with Agentforce icon to run it.  

To be honest, I don't really need this Agent unless I'm in the Service Console app.  Can I hide it from my other apps? I haven't found a solution yet because I understand that the Agent button is not at the Apps-level UI, but it is at the Org level UI.  

 

#Agentforce

2 réponses
  1. 1 sept., 15:40

    Hi Palina, 

     

    Your understanding is correct — the Agentforce icon in the Global Header is controlled at the org/user level (via the Agent Access permission set or profile assignment), not per Lightning App. There's currently no native setting to say "show this agent's button only in App X." 

     

    Two real workarounds, depending on what you're okay with: 

     

    1. Session-based permission set, toggled by app. Instead of granting the "Agent Access" permission set (or your custom one) permanently, create a Session Permission Set and use a Flow (triggered on app load, e.g. via a Quick Action or Home Page component in Service Console only) to activate it only for that session. When the user leaves the Service Console app, the session permission set doesn't automatically deactivate, so this isn't perfectly clean — but it's the closest native lever if you truly want it toggled by app entry. 

     

    2. Don't use the Global Header agent at all — embed the agent instead. If your agent's channel setup includes Embedded Service/Messaging for In-App, you can add it as a Utility Bar item on the Service Console app specifically (Setup > App Manager > Service Console > Utility Items > add your Embedded Messaging/Agentforce component). This genuinely scopes visibility to just that app, since Utility Bar items are per-app by design — unlike the Global Header icon. 

     

    Given your use case (only need it in Service Console), option 2 is the cleaner, fully-supported path rather than fighting the Global Header's org-wide scope. 

     

    Reference:

    https://help.salesforce.com/s/articleView?id=platform.users_profiles_assigning_apps.htm&type=5

     

     

0/9000