Set up the Google Chat spoke

task brazil Updated Mar 12, 2026 3 min read setup-google-chat.md
Raw file servicenow.com

Integrate the ServiceNow instance and Google Chat by creating a custom OAuth application in Google Cloud console to authenticate ServiceNow requests.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the Google Chat spoke.
  • Role required: admin.

Create OAuth credentials in Google Cloud console for Google Chat spoke

Create credentials in Google Cloud console account to enable OAuth 2.0 authentication with the Google Chat spoke.

About this task

Complete these steps from the Google Cloud console.

Before you begin

Procedure

  1. In the Google Cloud console, navigate to Main menu > IAM & Admin > Create a Project.

    You can also directly go to https://console.cloud.google.com/projectcreate

  2. Enter a descriptive name for your project in the Project Name field.

    Note: The project ID can't be changed after the project is created, so choose an ID that meets your needs for the lifetime of the project.

  3. After creating a Google Chat app, get the deployment ID of the app and record it.

    You need to provide the deployment ID for connection configuration. For more information, see Find a deployment ID.

  4. Navigate to Navigation Menu > APIs & Services > Enabled APIs & Services.

  5. Select Google Chat API from the list.

    [Omitted image "google-chat-spoke-select-chat-apis.png"] Alt text: Select Google Chat API in Google Cloud console

  6. Click on the CREDENTIALS tab.

  7. Click on + CREATE CREDENTIALS and select OAuth client ID.

    [Omitted image "google-chat-gc-console-create-creds.png"] Alt text: Create credentials for Google Chat app in Google Cloud console

  8. On the Create OAuth client ID form, fill in the fields.

    Field Description
    Application Select Web application from the list.
    Name Enter a unique name to identify the OAuth 2.0 client.
    Authorized JavaScript origins URI Enter the URI of your ServiceNow instance. For example, https://<your-instance-name>.servicen-now.com
    Authorized redirect URIs Enter the redirect URI of your ServiceNow instance. For example, https://<your-instance-name>.servicen-now.com/oauth_redirect.do

    [Omitted image "google-chat-gc-create-oauth-cl-id.png"] Alt text: Create OAuth client ID for Google Chat spoke in Google Cloud console

  9. Click CREATE.

    An OAuth client is created with client ID and client secret. Record the client ID and client secret.

  10. Click on the CONFIGURATION tab and fill in the fields.

    Field Description
    App name Enter a name for your application.
    Avatar URL Specify an HTTPS URL for your app's avatar image.
    Description Enter a description for your application.
  11. In Connection settings, specify the deployment ID of the Google Chat app from Step 4 in the Deployment ID field.

    Note: If you have created any Slash commands while creating the app, specify them.

    [Omitted image "google-chat-deployment-id.png"] Alt text: Add deployment ID of the app in Connection settings

  12. Save the configuration of your app in Google Cloud console.

Configure a connection for the Google Chat spoke

Add and configure a connection to authenticate ServiceNow requests in the Google Chat spoke.

Before you begin

Role required: admin.

Procedure

  1. Navigate to All > Process Automation > Workflow Studio.

  2. Click the Integrations tab.

  3. Under Connections, toggle and enable the Outbound connections.

  4. Locate the alias for Google_Chat and click View Details.

    • To configure the default connection and credential alias record that is shipped along with the Google Chat spoke, click View Details.

      [Omitted image "google-chat-spoke-conn-temp.png"] Alt text: Connection for the Google Chat spoke.

    • To manage more than one Google Chat spoke connection records, you should create a new child alias record by clicking Add Connection. For more information about using multiple connections, see Supporting multiple connections.

  5. Click Configure if you are configuring the connection for the first time. Otherwise, click Edit.

    [Omitted image "google-chat-spoke-conn-config.png"] Alt text: Google Chat spoke connection configuration

  6. On the Configure Connection form, fill in the fields.

    Field Description
    Connection Information
    Connection Name Name to uniquely identify the connection record.
    Connection URL URL to Google Chat APIs. Enter https://chat.googleapis.com.
    API Version Google Chat API version. Enter v1.
    Credential Information
    OAuth Client ID OAuth client ID of Google Chat app in Google Cloud console.
    OAuth Client Secret OAuth client secret of Google Chat app in Google Cloud console.
    OAuth Redirect URL OAuth redirect URL of your ServiceNow instance. Enter in this format: https://<instance-name>.service-now.com/oauth_redirect.do.

    [Omitted image "google-chat-spoke-conf-temp.png"] Alt text: Google Chat spoke connection configuration form

  7. Click Save and Get OAuth Token.

    You will be redirected to Google accounts login page.

  8. Enter your Google Chat API credentials.

Result

An OAuth token is generated and configured for the Google Chat spoke.

Search documentation
Search document titles and file paths on the brazil branch