---
schema_version: "1"
id: fa6b1d7654bc8f7a6a8797087d505b526c3d344b6d8d4c92dc814cad3593c3c0
title: Set Up the Agentforce Sales Agent for Gemini (Beta)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_gemini_agent_admin_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_gemini_agent_admin_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9bbfba6ff5bccfdb7f1e5d1f1472448c0edd190dede12a29506826997dacbc20
description: 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.
products:
  - Sales Cloud
  - Cross Cloud
  - Service Cloud Voice
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> editions with the <strong>Agentforce for Sales</strong> and <strong>Einstein for Sales</strong> add-ons. Also available with <strong>Einstein 1 Sales </strong>and <strong>Agentforce 1 Sales</strong> editions.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d18272e78">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">To set up the Agentforce Sales Agent for Gemini in Salesforce:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">Customize Application AND View Setup</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">To give Salesforce users access to the Agentforce Sales Agent for Gemini in
              Salesforce:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">Customize Application AND View Setup</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">To set up the Agentforce Sales Agent in Gemini:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18272e78 ">Administrator access to Gemini Enterprise, including the console URL or engine your
              Google Cloud administrator provides</td>

          </tr>
        </tbody>
      </table>

#### See Also

- [Agentforce Sales Agent for Gemini (Beta)](https://help.salesforce.com/s/articleView?id=sales.sales_gemini_agent_parent.htm&release=264.0.0&type=5 "Give your sales team a single view to update records, research leads and accounts, and plan sales strategies with data in Gemini.")
- [Connect Your Salesforce Account to the Agentforce Sales Agent for Gemini (Beta)](https://help.salesforce.com/s/articleView?id=sales.sales_gemini_agent_user_connect.htm&release=264.0.0&type=5 "To use the Agentforce Sales Agent for Gemini, connect your Salesforce account in Gemini.")

## 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:
    
    [https://vertexaisearch.cloud.google.com/oauth-redirect](https://vertexaisearch.cloud.google.com/oauth-redirect)
    
    [https://vertexaisearch.cloud.google.com/static/oauth/oauth.html](https://vertexaisearch.cloud.google.com/static/oauth/oauth.html)
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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_productivity-264-0-0-production-enus/b2f6c36a-fa61-4a3c-9752-032ce1818a69/images/icon_important.png)
    
    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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_productivity-264-0-0-production-enus/b2f6c36a-fa61-4a3c-9752-032ce1818a69/images/icon_note.png)
    
    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](https://test.salesforce.com/services/oauth2/authorize?prompt=select_account)
    2. Replace the Token URL with: [https://test.salesforce.com/services/oauth2/token](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.