Loading
Salesforce now sends email only from verified domains. Read More
Sales Productivity
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up the Agentforce Sales Agent for Gemini (Beta)

          Set Up the Agentforce Sales Agent for Gemini (Beta)

          Integrate your Salesforce org with Gemini Enterprise, so your sellers can research leads and update records inside Gemini. This single-view access equips sellers to plan strategies and close deals faster without switching between two workspaces.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited editions with the Agentforce for Sales and Einstein for Sales add-ons. Also available with Einstein 1 Sales and Agentforce 1 Sales editions.
          User Permissions Needed
          To set up the Agentforce Sales Agent for Gemini in Salesforce: Customize Application AND View Setup
          To give Salesforce users access to the Agentforce Sales Agent for Gemini in Salesforce: Customize Application AND View Setup
          To set up the Agentforce Sales Agent in Gemini: Administrator access to Gemini Enterprise, including the console URL or engine your Google Cloud administrator provides

          Turn On Agentforce Sales Agent for Gemini

          Turn on the Sales Agent in Salesforce so you can set it up for your users.

          1. From the gear icon, select Salesforce Go.
          2. Search for Agentforce Sales Agent for Gemini (Beta).
          3. Go to the Agentforce Sales Agent for Gemini (Beta) page and turn it on.

          Create and Configure an External Client App

          1. To create an External Client App, go to Setup. On the External Client App Manager page, click New External Client App.
          2. Enter the app name, Gemini Integration. Add your Salesforce email, and leave the Distribution State as Local.
          3. Open API (Enable OAuth Settings) and select Enable OAuth.
          4. In Callback URL, add these URLs, each on a separate line:
          5. In OAuth Scopes, select:
            • Access Salesforce hosted MCP servers (mcp_api)
            • Perform requests at any time (refresh_token, offline_access)
          6. Deselect all checkboxes in Flow Enablement.
          7. In Security, select only these settings, and deselect the remaining checkboxes.
            • Require secret for Web Server Flow
            • Require secret for Refresh Token Flow
            • Enable Refresh Token Rotation
            • Issue JSON Web Token (JWT)-based access tokens for named users
          8. Click Create.
          9. Open your newly created ECA, and on the Settings tab, expand OAuth Settings.
          10. Click Consumer Key and Secret. Copy and store the values securely to use later when adding the Client ID and Client Secret on the agent card in Gemini.
          11. On the Policies tab, expand OAuth Policies. In App Authorizations, change the refresh token validity period from 365 days to 30 days and save.
            Important
            Important

            Salesforce requires that you have an access token timeout of one hour or more. Make sure your session timeout meets this requirement, or change the access token timeout in Named User JWT-Based Access Token Settings.

          Give Users Access

          1. To give users access, enter Permission in the Quick Find box, and then select Permission Sets.
          2. Click New.
          3. Enter a label, such as Custom Gemini Permission Set, and save.
          4. Return to the External Client App Manager page, and open the ECA you created.
          5. On the External Client App Policies tab, under OAuth Policies, set Permitted Users to Admin approved users are pre-authorized.
          6. In Select Permission Sets, add the permission set, then save.
          7. Assign the permission set to users who want access to the Agentforce Sales Agent for Gemini.

          Add the Agentforce Sales Agent to Gemini

          1. To add the Agentforce Sales Agent in Gemini, go to Gemini from the Agentforce Sales Agent for Gemini (Beta) page in Salesforce Go.
          2. If your company isn’t subscribed, click the Subscribe button then Go to Gemini Enterprise.
          3. Click Apps and select your app.
            Note
            Note If you’re setting up in a sandbox, an app specifically for your sandbox shows in the list.
          4. Go to Agents and click Add Agent. Choose the Agents via Marketplace type.
          5. Select Agentforce Sales Agent and review the information.
          6. For sandbox setup only:
            1. Replace the Authorization URL with: https://test.salesforce.com/services/oauth2/authorize?prompt=select_account
            2. Replace the Token URL with: https://test.salesforce.com/services/oauth2/token
          7. Add the Consumer Key and Secret from your Salesforce External Client App in the Gemini Client ID field and Client Secret fields, and click Finish.
          8. To give users access in Gemini, select the Agentforce Sales Agent and go to the User Permissions tab.
           
          Loading
          Salesforce Help | Article