Google Chat

How to publish a bot on Google Chat

Create A New Google Project

1920
  • Click on the Create Project button.
  • Enter the Project Name. (The project name doesn’t need to be the same as your bot.)
1920

Enable the Google Chat API

  • Click the hamburger button in the top left corner to enter the navigation menu.
  • Go to Library in the APIs & Services drop-down list.
1920
  • Search for Google Chat API in the search bar and select the API.
1920
  • Click the Enable button.
1366

Get Webhook URL

  • Log in to the Gupshup website.
  • Go to Dashboard tab > My Bots section.
  • Select the button under the Publish column against the bot you wish to publish.
  • A list of channels will appear. Click on the Publish button against Google Chat.
  • Scroll down and click Configuring the bot. Copy the Webhook URL mentioned there for later use.
1156

SS will be updated soon

Configure the bot

  • Click the hamburger button in the top left corner to enter the navigation menu.
  • Go to Library in the APIs & Services drop-down list.
  • Search for Google Chat API in the search bar and select the API.
1920
  • Click the Manage button.
  • Select Configuration in the sidebar.
  • Enter the Bot name and Description for your bot. Copy the bot name for later use.
  • Enter the Avatar URL, that is, the link to the icon or image which will represent your bot.
1920
  • Under Functionality, enable both check boxes.
  • Under Connection settings, select the Bot URL option and enter the Webhook URL copied earlier in the field that appears below the options.
  • Click Save.
1920

Create a service account and get the JSON key

  • Select Credentials in the sidebar of the Google Chat API, or go to Credentials in the APIs & Services drop-down menu after clicking the hamburger icon in the top left part of the screen.
  • Click + Create Credentials and select Service account from the drop-down menu.
1920
  • Enter a display name for the service account and a description. The service account ID is generated automatically.
  • Click Create and continue and then click Continue twice.
1920
  • Go to the service account that you just created and go to the Keys tab.
  • Click Add Key and select Create new key from the drop-down menu.
1920
  • Select JSON under Key Type and click Create.
  • A JSON file will be downloaded on your device. Copy the contents of this file for later use.
1920

Submit credentials

  • Log in to the Gupshup website.
  • Go to Dashboard tab > My Bots section.
  • Select the button under the Publish column against the bot you wish to publish.
  • A list of channels will appear. Click on the Publish button against Google Chat.
  • Scroll down and click Submit credentials
  • Enter the service account JSON key and bot name copied earlier into the respective fields.
  • Click Submit.