How to integrate Google Chat?
In this article, you will learn how to integrate Google Chat into the Botmaker platform.
Estimated reading time: 08 minutes
Google Chat is a communication service developed by Google. It was initially designed for teams and business environments, but it is currently available to all users both on mobile devices with Android and iOS operating systems and on desktop devices via the Internet in all browsers (Chrome, Edge, Firefox, etc.).
The integration of Google Chat in the Botmaker platform is native and will allow you to do the following:
- Optimize collaborative work and communication in your team.
- Provide support, internal assistance, and answer your team's frequently asked questions with a bot.
- Automate administrative processes, such as booking calendar spaces and scheduling meetings.
How to perform the integration?
To perform the integration, go to Menu>Channels and Integrations>Channels (https://go.botmaker.com/#/integrations/channels) and select Google Chat.
Then click on Connect to start the integration tutorial. You will see the following screen, where you must click on +Connect Google Chat :
Please note that, in order to perform this integration, you need to have a Google Workspace account with access to Google Chats. You must also create a project in Google Cloud.
Step 1 : Create a Google Cloud project
To start the connection, you must create a Google Cloud project by going to https://console.cloud.google.com/.
Once there, go to Menu > IAM & Admin>Create a Project , complete the requested fields and click Create.
Step 2: Enable Google Chat API
In Google Cloud Platform, select the project you created. To create the API, go to Menu>APIs & services>Library and type Google Chat API in the search engine. In the search results, select Google Chat API. Then click Enable.
Step 3: Application information
After enabling the API, the following screen will be displayed:
There, you should go to the Configuration tab. Under Application info , you will see the project number. You should copy and paste it into a notepad , as it will be required in the final step.
Step 4: Connection settings
Continue to the Configuration tab. Under Functionality , you must enable these two options:
- The app can receive messages directly.
- The app can be added to multi-use spaces.
Then, under Connection settings , select the first option:
App URL. Fill in the URL that will be assigned to your project, for example, https://go.botmaker.com/rest/googlechat/user. Click the Save button.
Step 5: Create credentials
You will now need to create a credential and a password for your project. This procedure consists of two steps:
- Create a service account : go to the Credentials tab and click on the + Create Credentials button. Select the Service Account option, complete the steps with the requested data and click on Done.
- Create a new key : from the Service Accounts table, click on the edit button of the account you have created. Go to Keys , click on Add Key , and choose Create new key.
In the popup that appears, select JSON Key Type and click Create.
Next, a .json file will be downloaded. Save it as you will need it in the final step.
List
Step 6: Integrate into Botmaker
Next
You are all set! You have successfully completed the Google Chat connection. The following screen will be displayed:
When you click Finish , you will see the connection details in the Channels and Integrations>Channels section.
With this Google Chat integration in Botmaker, you can now optimize work and communication, as well as automate internal support and administrative management procedures.
Remember to visit our Help Center for further information.
Written by: Botmaker Team
Updated: 6/22/2022