Integrate Agent Assist UI modules with Salesforce to provide real-time suggestions for your human agents during customer service chat and voice conversations. The Salesforce UI module configuration creates trusted URLs so that Agent Assist can communicate with Salesforce. The configuration also creates an external client application to authenticate and authorize requests from Salesforce to the UI connector. This configuration is required for both Salesforce chat and voice integrations. Follow these steps to integrate Agent Assist UI modules with Salesforce.
Step 1: Enable resource sharing
Follow these steps in Salesforce to enable cross-origin resource sharing for authorization.
- Navigate to the menu bar and click Setup> CORS.
- Enable CORS for OAuth endpoints.
- Click Save.
Step 2: Add domain to remote site settings
Follow these steps in Salesforce to add your domain to the remote site settings:
- On the menu bar, click Setup> Remote Site Settings> New Remote Site.
- Enter your Salesforce domain.
- Click Save.
Step 3: Create trusted URLs
Follow these steps in Salesforce to create a trusted URL:
- Enter a search for Agent Assist Settingsin the Salesforce app launcher.
- Click the link to go to the configuration dashboard.
- Navigate to the Get Startedtab, and enter your trusted URLs.
- Click Save.
Step 4: Create an external client application
Follow these steps in Salesforce to create an external client application:
- Click Create External Client App.
- After the process is completed, click Opento navigate to the external client app's page.
- Click Settings> Edit.
- Expand the OAuth Settingssection.
- Select Enable OAuth.
- Navigate to App Settings, and enter the following callback URL:
- https://login.salesforce.com/services/oauth2/callback
- Add the following to OAuth scopes:
- Access the identity URL service
- Navigate to Flow Enablement, and select Enable Client Credentials Flow.
- Click Save> Policies.
- Expand the OAuth Policiessection, and select Enable Client Credentials Flow.
- Enter your username for Run As.
- Click Save> Settings, and navigate to OAuth Settings.
- Click Consumer Key and Consumer Secret. You should receive an email with a code to unlock these values.
- Copy the key and secret for later use.
Step 5: Configure Agent Assist settings in Salesforce
With Agent Assist settings in Salesforce you can set up open authorization (OAuth) credentials, create a skillset, and manage user permissions.
Follow these steps to access Agent Assist Settingsin Salesforce:
- Click apps App Launcher.
- In the search field, enter Agent Assist Settings, and click the result.
From the Agent Assist Settings page, you can track and update each step of your configuration. All the following instructions begin on the Agent Assist Settings page in Salesforce.
OAuth credentials
UI modules require OAuth credentials to authenticate Salesforce to communicate with the Agent Assist UI connector.
Follow these steps to create your OAuth credentials:
- Click Setup> Quick findand enter external client app.
- Click External Client App Manager> Agent Assist Settings OAuth App> Settings> OAuth Settings> Consumer Key and Secret, and copy those details.
- Navigate to GCP OAuth Settingsand click OAuth Credentials> New.
- Enter your OAuth credential's name, key, and secret.
- Click Save.
You should see your new credential in the list. Click arrow_drop_down_circle to edit or delete your credential.
Skillsets
Skillsets serve as the configuration hub for your Agent Assist conversation profile, UI connector endpoint, and UI module settings. When a customer service conversation begins, the UI module on the record page utilizes a skillset to provide the correct tools for your agent. A skillset also connects agents to a specific conversation profile. By creating diverse skills, you can tailor conversations to agents that match specific roles, such as sales, general technical support, or specialized product tiers.
Create a skillset
Follow these steps to create a skillset:
- Click Skillsets> New.
- Enter a Skillset Nameand a UI connector endpoint.
- Select your features and click arrow_right .
- Enter the Conversation Profile pathand Conversation ID prefix.
- Select an OAuth Credentialand enter the Container Height. The default container height is 710 px.
- Click Save.
You should see your new skillset with a custom permission in the list.
Default skillsets
When you set a skillset as default, it's used in all instances of the UI module for every agent, unless you assign the skillset to a permission set. You can only have one default skillset at a time.
Follow these steps to set your skillset as the default:
- Click Skillsets.
- Navigate to your skillset's name in the list.
- Click Set as Default.
This activates your skill for all agents. If you've assigned your skillset's custom permission to a permission set, custom permissions take precedence over default skillsets. This means the default skillset is a fallback for agents who are not assigned to a permission set.
Skillset-based routing
To complement skill-based routing, Agent Assist for Salesforce offers a permission-driven approach to ensure the correct skillset is ready when your agent accepts a conversation.
When you create a skillset, Salesforce automatically generates a corresponding custom permission. You can assign the custom permission to a permission set. You can assign a permission set to an agent. When an agent visits a record page containing the UI module, Salesforce uses the skillset that corresponds to that agent's permission set.
The skillset table displays a skillset's custom permission.
For example, suppose you have sales and support agent conversation profiles in Agent Assist. Follow these steps to ensure the UI module accesses the relevant conversation skills:
- In Agent Assist for Salesforce, create two skillsets, one for each conversation profile.
- Assign the skillsets to permission sets associated with two corresponding agents.
When the UI module loads during a conversation, it checks which skillset is associated with the agent and loads the corresponding skill.
Priority
When an agent is assigned multiple skillsets, you can choose the priority for each one. Priority dictates which skillset should take precedence over another, and whether an agent should be assigned multiple custom permissions associated with different skillsets.
A lower priority number gives a skillset higher precedence. For example, a skillset with a priority of 1 takes precedence over a skillset with a priority of 2.
Follow these steps to set your skillset's priority:
- Click Skillsets.
- Navigate to a skillset in the list and click > Settings.
- Enter a number for the Priority.
- Click Save.
Repeat these steps for each skillset assigned to the agent.
User management
With user management, you can assign read and write permissions for Agent Assist custom Salesforce objects to administrators and read permissions to agents.
Follow these steps to assign a permission to someone with limited permissions:
- Click User Management.
- Choose either the Adminsor the Agentstab.
- Select the person's name and click arrow_right .
- Click Save.
Record pages
In Salesforce, a record page is the specific layout you see when you open an individual record, such as a specific contact, account, or voice call. Customer service conversations use either a voice call record page or a messaging session record page. For example, when an agent accepts a chat message or a voice call, Salesforce automatically opens a record page and provides details about the conversation.
Step 1: Create a record page
Choose one of the following options to create a record page:
- New voice call record page
- New messaging session record page
-
Update an existing record page
Voice
Follow the Salesforce instructions to create a new voice call record page .
Chat
Follow the Salesforce instructions to create a new messaging session record page .
Update
Follow the Salesforce instructions to update your existing record page .
Step 2: Add an Agent Assist UI module
Add the Google Agent Assist UI module component to a record page to display a console for call transcripts, agent actions, and suggestions. Set your record page's template to Header and Two Equal Regions. This allows the Agent Assist UI module to adequately display transcripts and suggestions.
Follow these steps to add an Agent Assist UI module to your record page:
- In the Salesforce Lightning app builder, navigate to Components (Managed).
- Move Google Agent Assist UI Module onto the page.
- Click Save.
Change record page templates
Default templates use three columns. The Agent Assist UI module requires additional width to display on a standard monitor. Follow these steps to update your record page's template:
- Follow the Salesforce instructions to open the template in the Lightning App Builder.
- Click Change> Header and Two Equal Regions> Save.

