Google Chat
How to publish a bot on Google Chat
Create A New Google Project
- Go to Google Cloud Platform.
- Log in to your Google account if not already done.
![GA 1.jpg 1920](https://files.readme.io/a5ff205-GA_1.jpg)
- Click on the Create Project button.
- Enter the Project Name. (The project name doesn’t need to be the same as your bot.)
![GA 2.jpg 1920](https://files.readme.io/a99ddd2-GA_2.jpg)
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.
![GA 4.jpg 1920](https://files.readme.io/b2f288e-GA_4.jpg)
- Search for Google Chat API in the search bar and select the API.
![GC 4-5.png 1920](https://files.readme.io/3509dd2-GC_4-5.png)
- Click the Enable button.
![GC 5.png 1366](https://files.readme.io/94061b0-GC_5.png)
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.
![GC 6.png 1156](https://files.readme.io/b8ff5d9-GC_6.png)
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.
![GC 7.png 1920](https://files.readme.io/24e2cd9-GC_7.png)
- 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.
![GC 8.jpg 1920](https://files.readme.io/2318980-GC_8.jpg)
- 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.
![GC 9.png 1920](https://files.readme.io/c7618a0-GC_9.png)
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.
![GC 10.png 1920](https://files.readme.io/7efe7f8-GC_10.png)
- 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.
![GC 11.png 1920](https://files.readme.io/e6a1ca1-GC_11.png)
- 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.
![GC 12.png 1920](https://files.readme.io/78dd62b-GC_12.png)
- 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.
![GC 13.png 1920](https://files.readme.io/92b8cd5-GC_13.png)
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.
Updated over 2 years ago