Skip to main content

Google Chat OAuth

Integrate Google Chat OAuth with Torq to authenticate to Google Chat via OAuth 2.0 client credentials.

Updated over 2 weeks ago

Google Chat OAuth allows Google Chat to access user data and perform operations on the authenticated user's behalf.

Torq enables quick and easy integration with Google Chat OAuth, so you can automate anything and everything within moments. Torq's public Google Chat OAuth steps include:

  • Create Direct Message Space

  • List Spaces

  • Send Message

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

Use Google Chat OAuth Steps in Torq

Step One: Create a Project in GCP

  1. Open the Google Cloud Console: Navigate to IAM & Admin > Create a Project.

  2. Create a New Project:

    1. Enter a meaningful name for the project.

    2. Select an organization.

    3. Select the location.

  3. Finalize: Click Create.

Step Two: Create a Service Account in the Project

  1. Create a Service Account: Navigate to IAM & Admin > Service Accounts and click Create service account.

  2. Configure the Service Account:

    1. Enter a meaningful name.

    2. Enter a unique ID.

    3. (Optional) Provide a description.

    4. Click Create and continue.

    5. (Optional) Grant the service account access to a project.

    6. (Optional) Grant users or groups access to the service account.

  3. Finalize: Click Done.

Step Three: Enable APIs

  1. Go to the API Library: Navigate to APIs & Services > Enabled APIs & services and click Enable APIs and services.

  2. Enable APIs: Select any service for which you want to enable the API (e.g. Gmail) and click ENABLE.

Step Four: Configure the OAuth Consent Screen

If you haven't previously configured the Google Auth platform, you need to configure the consent screen.

  1. Navigate to the Consent Screen: Navigate to APIs & Services > OAuth consent screen and click Get started.

  2. Configure the App:

    1. Enter the app name.

    2. Select the support email.

    3. Click Next.

    4. Select an Internal or External audience.

    5. Enter the email address for the point of contact.

    6. Click Continue.

  3. Finalize: Click Create.

Step Five: Retrieve the Callback URL

  1. Navigate to the Integration: Go to Build > Integrations > Steps > Google Chat OAuth and click Add Instance.

  2. Copy the Callback URL: Copy the URL to save it for later—you will need it to create the Client ID in the GCP Console.

Step Six: Create a Client ID and Client Secret

  1. Create a Client ID: Navigate to APIs & Services > Credentials, click Create credentials, and then select OAuth client ID.

  2. Configure the Client ID:

    1. Select Web application.

    2. Enter a meaningful name.

    3. For authorized JavaScript origins, click Add URI, and enter https://app.torq.io for non-EU or https://app.eu.torq.io for EU origins.

    4. For authorized redirect URIs, click Add URI and paste the callback URL you copied earlier.

  3. Finalize: Click Create and Copy the Client ID and Client secret. You will need them to create the integration in Torq.

Step Seven: Create a Google Chat OAuth Steps Integration in Torq

  1. Navigate to the Integration: Go to Build > Integrations > Steps > Google Chat OAuth and click Add Instance.

  2. Configure the Integration:

    1. Enter a meaningful name for the integration.

    2. Paste the Client ID you generated earlier.

    3. Paste the Client secret you generated earlier.

    4. Review the default scopes and add others as needed.

  3. Finalize: Click Add.


FAQs

Can I use Google Chat OAuth steps with only the Google Chat step integration?

No, Google Chat OAuth steps require setting up the Google Chat OAuth step integration.


Did this answer your question?