This page describes how to create a data store and connect Notion to Gemini Enterprise.
Before you begin
Before you set up your Notion data store, 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 .
-
In the Notion settings, create a Notion OAuth integration. Obtain the authentication credentials, and set the required permissions. For more information, see Notion configuration .
Create the Notion data store
To create a Notion data store, do the following:
-
In the Google Google Cloud console, go to the Gemini Enterprisepage.
-
Select or create a Google Cloud project.
-
In the navigation menu, click Data stores.
-
Click Create data store.
-
On the Select a data sourcepage, enter Notion into the search field. The Notion card displays.
-
Click Select.
-
In the Datasection, fill in the following fields:
-
For the Connector modefield, select Federated search, and click Continue.
-
Under Authentication settings, enter the values that you copied when you created an integration in the Notion settings:
-
For Client ID, enter the Notion integration's OAuth Client ID.
-
For Client Secret, enter the Notion integration's OAuth Client Secret.
For more information about creating a Notion integration, see Notion configuration .
Click Login.
-
-
Click Continue.
-
In the Entities to searchsection, select the entity types that you want Gemini Enterprise to search.
-
Click Continue.
-
-
In the Actionssection, for Select Notion actions to enable, choose the actions from the category to enable them for the data store.
To manage the list of actions, see 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 .
On the Data Storespage, click your data store name to see the status. After the data store state changes from Creatingto Active, the Notion data store is ready to be used.
Data handling and query execution
This section describes how Gemini Enterprise manages your query and the privacy implications of using the federated data store.
Query execution
After you authorize Notion and send a search query to Gemini Enterprise:
- Gemini Enterprise sends your search query directly to the Notion API.
- Gemini Enterprise blends the results with those from other connected data sources and displays a comprehensive search result.
Data handling
When using third-party federated search, the following data handling rules apply:
- Your query string is sent to the third-party search backend (Notion API).
- These third parties may associate queries with your identity.
- If multiple federated search data sources are enabled, the query might be sent to all of them.
- After the data reaches the third-party system, it is governed by that system's terms of service and privacy policies.
What's next
-
To provide a user interface for querying your data, create an app and connect it to the Notion data store .
-
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 .

