Communication
Google Chat
10 min
google chat is a communication platform that enables users to send instant messages, share files, and collaborate in real time with the google chat modules in {{product name}} , you can retrieve and list spaces, and members, create, retrieve, and delete messages and get message attachments, call apis and watch events requirements to use the google chat app in {{product name}} , you must have a google account {{product name}} 's use and transfer of information received from google apis to any other app will adhere to the google api services user data policy https //developers google com/terms/api services user data policy connect google chat and {{product name}} to get started, you must first create a connection between google chat and {{product name}} , allowing the two services to communicate to create the connection, you need to google chat /#obtain your client email and private key in google chat google chat /#connect google chat to obtain your client email and private key in google chat log in to the google cloud platform https //console cloud google com/ using your google credentials on the welcome page, select a project or click new project to create one enter a name for the project, select your organization, and browse the project location click create select the project created and click iam & admin in the left sidebar, click service accounts click create service account enter the service account details and click create and continue optionally, grant access click done select the newly created service account, and click the three dots > manage keys switch to the keys tab , and click add key>create new key select the key type and click create a file will be automatically downloaded to your computer open it, c opy the client email and private key values, and store them in a safe place you'll use these values in the client email and private key connection fields in {{product name}} connect google chat to {{product name}} to create the connection log in to your {{product name}} account, add a google chat module to your {{scenario singular lowercase}} , and click create a connection if you add a module with an instant tag, click create a webhook , then create a connection in the connection name field, enter a name for the connection in the client email and private key fields, enter the details obtained above and click save click sign in with google if prompted, authenticate your account, grant all requested permissions, and confirm access you've successfully created the connection and can now use the google chat app in your {{scenario plural lowercase}} if you want to make changes to your connection in the future, follow the steps here set up a google chat webhook the google chat app in make has an instant watch events module it allows you to set up a webhook to instantly trigger your scenario in {{product name}} whenever a particular new event happens in google chat to use this module, you must set up the webhook in your google chat account to configure this webhook, a google workspace (business) account is required you must also have access to the google chat space you want to monitor and permissions to create and work with projects in google cloud platform to set up the webhook add a google chat watch events instant module to your {{scenario singular lowercase}} and click create a webhook enter a name for the webhook in the webhook name field click save open the google cloud project you've created if you haven't, see google chat /#obtain your client email and private key in google chat to set up a project in the left sidebar, click apis & services > library find the google chat api, select it, and click enable once it's enabled, click manage go to the google chat api configuration tab in the interactive features section, click enable interactive features for connection settings , select http endpoint url paste the webhook url you copied in {{product name}} this tells your google chat app to send interaction events to that url configure the types of events you want your app to receive (e g , messages, added to space, removed from space) add the newly configured google chat app to the specific google chat space you want to monitor your webhook is now set up when events occur in that space (e g , a new message is sent) in google chat, {{product name}} will immediately be notified and start your {{scenario singular lowercase}} google chat modules after connecting to the google chat app, you can use the following types of modules to build your {{scenario plural lowercase}} spaces get a space list spaces members get a member list members messages create a message get a message get a message attachment delete a message other watch events make an api call templates you can look for google chat templates in make's template gallery , where you'll find thousands of pre created {{scenario plural lowercase}} google docs resources google chat api documentation