This page describes how to create a data store and connect Salesforce to Gemini Enterprise.
Before you begin
Before you set up your connection, do the following:
-
Grant the Discovery Engine Editor role (
roles/discoveryengine.editor). This role is required for the user to create the data store. To grant this role, do the following:- In the Google Cloud console, go to the IAMpage.
- Locate the user account and click the edit Editicon.
- Grant the
Discovery Engine Editorrole to the user. For more information, see IAM roles and permissions .
-
Set up your Salesforce account and obtain authentication credentials .
Create Salesforce federated data store
To create a Salesforce data store, perform the following steps:
-
In the Google Cloud console, go to the Gemini Enterprise page.
-
Select or create a Google Cloud project.
-
In the navigation menu, click Data stores.
-
Click Create data store.
-
In the Sourcesection, search for Salesforce, and click Select.
-
In the Datasection:
-
In the Authentication settingssection, configure authentication based on your chosen connection mode. For more information about obtaining authentication credentials, see Salesforce configuration .
- Instance URL: The base URL of your Salesforce instance.
- Client ID: The OAuth client ID for your application.
- Client Secret: The OAuth client secret for your application.
- Click Loginand complete the Salesforce sign-in.
-
Click Continue.
-
In the Advanced optionssection, if you want to use the Salesforce sandbox instance, select the Use Sandboxcheckbox.
-
Click Continue.
-
In the Entities to searchsection, select at least one entity.
-
-
Click Continue.
-
If you selected Federated search, navigate to Actionsand select the required actions to enable for the data store from the Select Salesforce actions to enablelist.
To view and manage the list of actions, see View and manage actions .
- Click Continue.
-
In the Configurationsection:
- From the Multi-regionlist, select the location for your data connector.
- In the Your data connector namefield, enter a name for your connector.
- If you selected
usoreuas the location, configure the Encryption settings:- Optional: If you haven't configured single-region keys, click Go to settings pageto do so. For more information, see Register a single-region key for third-party connectors .
- Select Google-managed encryption keyor Cloud KMS key.
- If you selected Cloud KMS key:
- In the Key management typelist, select the appropriate type.
- In the Cloud KMS keylist, select the key.
-
Click Continue.
-
In the Billingsection, select General pricingor Configurable pricing. For more information, see Verify the billing status of your projects and Licenses .
-
Click Continue.
-
Click Create. Gemini Enterprise creates your data store and displays your data stores on the Data storespage.
On the Data Storespage, click your data store name to see the status. After the data store state changes from Creatingto Active, the Salesforce connector is ready to be used.
After creating the data store, create an app , connect it to the Salesforce data store , and authorize the application to access Salesforce before executing any queries.
For more information, see What's next .
Create Salesforce data ingestion data store
If you want to create a data ingestion data store, follow these steps. Otherwise, you can skip this section.
To use the console to sync data from Salesforce to Gemini Enterprise, follow these steps:
- In the console, go to the Gemini Enterprisepage.
- In the navigation menu, click Data Stores.
- Click Create Data Store.
- On the Select a data sourcepage, scroll or search for Salesforce V2to connect your third-party source.
- In the Authenticationssection, select the authentication method and enter the authentication information. For more information about obtaining authentication credentials, see Configure Salesforce for data ingestion data store .
- In the Destinationssection, select Publicor Private.
- For the Publicdestination type, you are not required to create the setup for service attachment. In the Login URLfield, enter your login URL to the Salesforce server.
- For the Privatedestination type, enter all the required information:
- Service attachment: Enter your service attachment.
- Base domain name: Enter your base domain.
- Login URL: Enter your login URL to the Salesforce server.
- Click Continue.
- In the Entities to syncsection, do the following:
- Select the entities you want to sync.
- Optional: URL field name: Enter a column name to override the default entity URL with a custom URL from the Salesforce table.
- Optional: To add custom entities, click Add entities manually. The custom entity name must be in the following format <var>custom_object_name</var>__c.
- Select the Sync frequencyfor Full syncand the Incremental sync frequencyfor Incremental data sync. For more information, see Sync schedules .
- Select the entities you want to sync.
- Click Continue.
- In the Configure your data connectorsection, do the following:
- Select a region for your data store.
- Enter a name for your data store.
- Click Create. Gemini Enterprise creates your data store and displays your data stores on the Data Storespage.
- To check the status of your ingestion, go to the Data Storespage and click your data store name. The Connector statechanges from Creatingto Runningwhen it starts synchronizing data.
For more information, see What's next .
What's next
- To provide a user interface for querying your Salesforce data, create an app and connect it to the Salesforce data store .
- To view and manage the list of actions, see View and manage actions .
- To preview how your search results appear after your app is set up, see Get search results .
- To enable alerts for the data store, see Configure alerts for third-party data stores .

