> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/integrations/ai/google-setup",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Setting up Google AI integrations

> Create a shared Google Cloud project and OAuth client to enable Omni's Google Calendar and Google Drive AI integrations.

Omni's Google AI integrations — [Google Calendar](/integrations/ai/google-calendar) and [Google Drive](/integrations/ai/google-drive) — can share a single Google Cloud project and OAuth client. This guide walks through creating that project, enabling the APIs for the integrations you want to use, and generating the credentials you'll provide to Omni.

You only need to complete this setup once. If you want to enable an additional Google integration later, return to your existing project to enable its API and add its redirect URI rather than creating a new project.

## Requirements

To configure any of the Google AI integrations for your Omni organization, you'll need:

* **Organization Admin** permissions in Omni
* Permissions in Google Cloud that allow you to:
  * Create projects
  * Create OAuth apps

<Steps titleSize="h2">
  <Step title="Create a Google Cloud project" id="create-project">
    1. Open the [New Project page](https://console.cloud.google.com/projectcreate) in the Google Cloud Console.
    2. Complete the project form fields.
    3. Click **Create** when finished.
  </Step>

  <Step title="Configure Google Auth Platform for the project" id="configure-auth-platform">
    Google requires you to configure Google Auth Platform for the project before you can generate credentials.

    1. Open the project's [Auth overview page](https://console.cloud.google.com/auth/overview). If Google Auth Platform isn't configured for the project, this page will look like the following:

           <Frame caption="Project where Google Auth Platform isn't configured">
             <img src="https://mintcdn.com/omni-e7402367/iOTNY1G6j80vquqI/integrations/images/google-ai-auth-platform.png?fit=max&auto=format&n=iOTNY1G6j80vquqI&q=85&s=cf6347006d70b8b53e949eb32574b4ca" alt="Project with unconfigured Google Auth Platform" width="1394" height="958" data-path="integrations/images/google-ai-auth-platform.png" />
           </Frame>
    2. Click **Get started**.
    3. Fill in the form:
       * **App information** - Enter a **Name** and an **Email**
       * **Audience** - Select **Internal**
       * **Contact information** - Enter an email address
       * **Finish** - Check the **I agree** box
    4. Click **Create**.
  </Step>

  <Step title="Enable APIs for your project" id="enable-apis">
    <Note>
      Enable only the APIs for the integrations you plan to use. You can return later to enable more.
    </Note>

    1. Open [the API Library](https://console.developers.google.com/apis/library) in the Google API Console.
    2. Add the following APIs:
       * **Google Calendar** - Required to use the [Google Calendar AI integration](/integrations/ai/google-calendar)
       * **Google Drive** - Required to use the [Google Drive AI integration](/integrations/ai/google-drive)
       * **Google Sheets** - Required to search for and retrieve Sheets when using the [Google Drive AI integration](/integrations/ai/google-drive)
    3. After you locate an API, click it and then click the **Enable** button.
  </Step>

  <Step title="Create OAuth credentials" id="create-credentials">
    1. Open the project's [Clients page](https://console.cloud.google.com/auth/clients).
    2. Click **Create Client**.
    3. In the application type dropdown, select the **Web application**.
    4. Enter a **Name** for the client, such as `Omni AI integration`.
    5. In the **Authorized redirect URIs**, add the following URIs:

       * **Google Calendar** - `https://callbacks.omniapp.co/callback/google-calendar`
       * **Google Drive** - `https://callbacks.omniapp.co/callback/google-drive`
       * **Google Sheets** - `https://callbacks.omniapp.co/callback/google-sheets`

           <Note>
             Add only the redirect URIs for the integrations you plan to use.
           </Note>

       At this point, the page should look like the following:

           <Frame caption="Completed OAuth client form">
             <img src="https://mintcdn.com/omni-e7402367/iOTNY1G6j80vquqI/integrations/images/google-ai-client.png?fit=max&auto=format&n=iOTNY1G6j80vquqI&q=85&s=a0b290aac5227a4e64c6803b7ef0a49b" alt="Completed OAuth client form" width="1008" height="891" data-path="integrations/images/google-ai-client.png" />
           </Frame>
    6. Click **Create**. After you create the client, a dialog like the following will display:
           <Frame caption="Generated OAuth credentials">
             <img src="https://mintcdn.com/omni-e7402367/iOTNY1G6j80vquqI/integrations/images/google-ai-oauth-creds.png?fit=max&auto=format&n=iOTNY1G6j80vquqI&q=85&s=4fdd90998334639b37367c33d45986d2" alt="Generated OAuth credentials" width="457" height="555" data-path="integrations/images/google-ai-oauth-creds.png" />
           </Frame>
    7. Keep this dialog open for now - you'll need it to complete the setup in Omni.
  </Step>

  <Step title="Enable and configure the Omni integrations" id="omni-integration">
    1. In Omni, navigate to **Settings > Integrations**.
    2. Click the **AI Integrations** tab.
    3. For each Google integration you want to connect, complete the following steps:
       1. Toggle the integration to **on**.
       2. When prompted, enter your credentials:
          * **OAuth Client ID** - Paste the **Client ID** from the Google OAuth client
          * **OAuth Client Secret** - Paste the **Client secret** from the Google OAuth client
       3. Click **Save**.
  </Step>
</Steps>

The integrations you enabled will now be available in your Omni organization. Each user must connect their individual accounts in their [user settings](/administration/users/your-account) to use the integrations.

## Next steps

* Learn how to use the [Google Calendar AI integration](/integrations/ai/google-calendar) to reference events and meetings in the Omni Agent
* Learn how to use the [Google Drive AI integration](/integrations/ai/google-drive) to search and retrieve files in the Omni Agent
* [Explore the Omni Agent](/ai/chat) to learn more about conversational data analysis
* [Connect other AI integrations](/integrations/ai) to add context from additional tools
* [Review AI security practices](/ai/security) to understand how Omni processes data
