Skip to main content

Celonis Product Documentation

Connecting to Gmail (extractor)

Limited Availability

This extractor is currently in limited availability mode and can be added to your Celonis Platform environment by request only.

To request access to this extractor, please create a support ticket on Celopeers.

Important

This extractor's use and transfer to any other app of information received from Google APIs adheres to Google API Services User Data Policy including the Limited Use requirements.

Our Gmail extractor is based on the Gmail REST API and enables you to extract data from your Gmail account and use it in the Celonis Platform.

For further information about Gmail's REST API, see: Google Workspace - Gmail API Overview.

The Gmail REST API uses the OAuth2 authentication method. You can either ‘Use Celonis Client to Connect’, in which case you only need to authenticate with Google with a user account, or you can provide a client ID and client secret via the Google Cloud Management Console.

If you would like to provide a client ID and client secret, follow the prerequisites below:

The Gmail REST API uses the OAuth2 authentication method, requiring you to provide a username, password, client ID, and client secret. These authentication credentials can be created and configured via your Google Cloud Management Console, available to anyone with a Google account (including individual users).

To configure your authentication method:

  1. Create a Google Cloud project for the connection with the Celonis Platform, see: Google Workspace - Create a Google Cloud project.

    create_a_cloud_project.png
  2. Enable the Gmail API for the project created in step 1, see: Google Workspace - Enable Google Workspace APIs.

    enable_gmail_api.png
  3. Configure the OAuth consent, see: Google Workspace - Configure the OAuth consent screen and choose scopes.

    oauth_consent.png
  4. Create access credentials, see: Google Workspace - Create access credentials.

    When prompted to enter a redirect URL, use the following:

    https://auth.redirect.celonis.cloud/extractor_redirect
    authorized_redirect.png
  5. Copy the client ID and client secret displayed with your access credentials:

    client_ID_and_client_secret.png

For further information about Gmail's REST API, see: Google Workspace - Gmail API Overview.

With access to the necessary Gmail user permissions, you can create a connection between your Gmail account and the Celonis Platform from your data pool diagram:

  1. Click Data Connections.

    data_connections_within_data_pool_diagram.png
  2. Click Add Data Connection and select Connect to Data Source.

    add_data_connection.png
  3. Select Cloud - Gmail.

  4. Enter the following connection details:

    gmail_data_connection.png
    • Name: Enter an internal reference for this data connection.

    • API URL: https://gmail.googleapis.com

    • Email: Enter your gmail address.

    • Use Celonis Client to Connect: Enter your username and password, alternatively, provide the client ID and client secret configured in your prerequisites.

    • Client ID: Taken from the Google Cloud Management Console steps.

    • Client Secret: Taken from the Google Cloud Management Console steps.

    • Advanced Settings: Leave as default.

  5. Click Save.

  6. If configured correctly, the Google sign in page should load. Select the account you want to use and, when prompted, click Continue to trust the Celonis Platform.

    google_sign_in_screen.png

    The connection between your Gmail account and the Celonis Platform is set.

    confirmed_gmail.png