This page describes how to create a data store and connect Google Chat to Gemini Enterprise.
Before you begin
Sign in to the Google Cloud console using the same account associated with the Google Workspace instance you intend to connect. Vertex AI Search uses your Google Workspace customer ID to connect to Google Chat.
To enforce data source access control and secure data in Gemini Enterprise, ensure that you have configured your identity provider.
Create the Google Chat data store
To create the Google Chat 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 Source, search for Google Chat, and click Select.
In the Configuration section:
- From the Multi-region list, select the location for your data connector.
- In the Data connector name field, enter a name for your connector.
- If you selected
usoreuas the location, configure the Encryption settings:- Select Google-managed encryption key or Cloud KMS key.
- If you selected Cloud KMS key:
- In the Key management type list, select the appropriate type.
- In the Cloud KMS key list, select the key.
Click Continue.
In the Billing section, select General pricing or Configurable pricing. For more information, see Verify the billing status of your projects and Licenses.
Click Create. Gemini Enterprise creates your data store and displays your data stores on the Data Stores page.
On the Data Stores page, click your data store name to see the status. When the data store state changes from Creating to Active, the Google Chat connector is ready to be used.
After creating the data store, connect the data store you just created to an existing app or create a new app and connect it to the new app, and authorize Gemini Enterprise to access Google Chat before executing any queries.
Query Execution
This section describes how Gemini Enterprise manages your query and the privacy implications of using the federated data store.
After you authorize Google Chat and send a search query to Gemini Enterprise:
- Gemini Enterprise sends your search query directly to the Google Chat API.
- Gemini Enterprise blends the results with those from other connected data sources and displays a comprehensive search result.
Error messages and troubleshooting
The following table describes common error messages that you might encounter when you work with the Google Chat connector, which includes possible HTTP error codes and suggested troubleshooting steps.
| Error code | Error message | Description | Troubleshooting |
|---|---|---|---|
| 403 (Permission Denied) | Search by using service account credentials isn't supported for Google Workspace data stores. | The engine being searched has Google Workspace data stores, and the credentials passed are of a service account. Search by using service account credentials on Google Workspace data stores isn't supported. | Call search using user credentials, or remove Google Workspace data stores from the engine. |
| 403 (Permission Denied) | Consumer accounts aren't supported for Google Workspace data stores. | Search is called using a consumer account (@gmail.com) credential, which isn't supported for Google Workspace data stores. | Remove Google Workspace data stores from the engine or use a managed Google Account. |
| 403 (Permission Denied) | Customer ID mismatch for data store | Search is only allowed for users who belong to the same organization as Google Workspace data stores. | Remove Google Workspace data stores from the engine or contact support if the user and Google Workspace data stores are meant to be in different organizations. |
| 403 (Permission Denied) | Workspace access for Agent Space disabled by organization administrator. | A Google Workspace administrator has disabled access to Google Workspace data for Gemini Enterprise. | Contact your Google Workspace administrator to enable access. |
What's next
To provide a user interface for querying your Google Chat data, create an app and connect it to the Google Chat data store.
To preview how your search results appear after your app is set up, see Get search results.