# Creating a Webhook from Google Chat to Make

**URL:** <https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252>\
**Category:** Questions\
**Tags:** google, webhooks\
**Created:** [September 6, 2024, 2:53pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252 "2024-09-06T14:53:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnNew](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JohnNew](https://community.make.com/u/JohnNew)\
**Post date:** [September 6, 2024, 2:53pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/1 "2024-09-06T14:53:18Z")

</div>

Hey everyone,

So basically what I am trying to do is to have a webhook from Make receive a trigger when a certain chat message is typed into a Google Chat / Space. Sadly I couldn’t find any documentation from Make itself, even though there is a Chat Listener module.

I do realize that this is probably a more complicated setup, but I don’t really have a clue where to start, even though I am somewhat experienced with scripting/webhooks.

Is there some sort of tutorial or documentation that I can look at? Or maybe someone has some keywords on topics that I should look at to figure this out, help is much appreciated.

Thanks in advance for any answers!

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [September 6, 2024, 3:10pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/2 "2024-09-06T15:10:02Z")

</div>

Hello @JohnNew,

Is this the module you’re referring to?  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/9/4950aa3a588b83a38d28f507e00427d1cfec4ac0.png)

If so there’s a link to the help page that describes what you need to do to set it up.  
See the “Online Help” linked text.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/0/708b9f3106a916a626ab55ec0d73f364fad78fba.png)

It links to this page: [https://www.make.com/en/help/app/google-chat](https://www.make.com/en/help/app/google-chat)

---

<div class="post-metadata">

**Author:** ![JohnNew](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JohnNew](https://community.make.com/u/JohnNew)\
**Post date:** [September 6, 2024, 3:16pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/3 "2024-09-06T15:16:21Z")

</div>

Hi @Donald_Mitchell,  
thank you for your answer, but this documentation seems outdated. It refers to a verification method with e-mail and client key and does not explain how to actually get data from google chat into make.

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [September 6, 2024, 4:05pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/4 "2024-09-06T16:05:31Z")

</div>

First you create a connection.  
Once the connection is established, you can execute the module using Run Once.  
When the module executes, it will get data from Google Chat.  
In order to use that data, you’d need to connect another module, etc…

---

<div class="post-metadata">

**Author:** ![JohnNew](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JohnNew](https://community.make.com/u/JohnNew)\
**Post date:** [September 6, 2024, 4:35pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/5 "2024-09-06T16:35:12Z")

</div>

Hey Donald, I really appreciate you trying to help here, but this is not helpful at all. I know how Make works, I have worked with it for more than two years now. My problem lies in your first sentence. Thanks for telling me I need to create a connection, my question was how I do that. I’ll need to do some backend stuff in the Google Cloud console and I don’t know how to do that, hence me asking if there are some ressources available.

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [September 6, 2024, 4:57pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/6 "2024-09-06T16:57:21Z")

</div>

Sorry, maybe we’re just not on the same page I guess.

You haven’t confirmed if that Google Chat - Chat Listener module was the one you were trying to use. I assume so since its description matches what you described in your first post.

> [@JohnNew](#):
>
> Thanks for telling me I need to create a connection, my question was how I do that.

The document you say is outdated is what you need to follow.  
You need to go to Google Cloud API Console, create a project, then a service account, then create a private key for that service account.  
The email address and private key need to get entered into fields when creating the connection in Make.  
Are you saying you followed that doc and got stuck somewhere?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [September 7, 2024, 2:25pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/7 "2024-09-07T14:25:38Z")

</div>

Follow this [main guide on how to set up a custom OAuth 2.0 custom app in Make](https://www.make.com/en/help/apps/it-and-development/g-suite-admin#connecting-to-google-services-using-oauth2).

Provided below are additional supplementary instructions in case the above isn’t clear enough.

* * *

# Enable APIs

## 1. Enable the relevant APIs that you want to use

**Search for the relevant Google API here:** [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library)

- Go to each API page that you want to use, end click “Enable”

- Usually you’ll want to enable at least [Drive](https://console.cloud.google.com/apis/api/drive.googleapis.com) (includes Docs/Sheets) and [Gmail](https://console.cloud.google.com/apis/api/gmail.googleapis.com).

* * *

# OAuth Client

**Direct Link:** [https://console.cloud.google.com/apis/credentials](https://console.cloud.google.com/apis/credentials)

## 2a. Create “OAuth client ID” Credentials

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c29e0e6bb6d6b4b62461a894fb490c1e06dd048.png)

## 2b. Insert all the Google Redirect URIs for your app

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2807e342c37d019fedbe8847450f96a19c696ffe.png)

### Google Redirect URIs

Here are some commonly-needed redirect URIs you need for your [Google Cloud Console](https://console.cloud.google.com/) OAuth app. If you set these up, you can reuse the same GCP app for other Google apps and modules on Make.

```plaintext
https://www.make.com/oauth/cb/google
https://www.make.com/oauth/cb/google-custom
https://www.make.com/oauth/cb/google-restricted
https://www.make.com/oauth/cb/google-cloud-speech
https://www.make.com/oauth/cb/youtube
https://www.make.com/oauth/cb/oauth2
https://www.integromat.com/oauth/cb/oauth2

```

**Note:** Once you’ve set these up, you can use/reuse the same Make connection for all the supported Google apps & modules on Make - you’ll only have to enable the APIs for your custom app.

* * *

# OAuth consent screen

**Direct Link:** [https://console.cloud.google.com/apis/credentials/consent/edit](https://console.cloud.google.com/apis/credentials/consent/edit)

## 3a. Insert Two Authorised Domains

- Insert `make.com` and `integromat.com`

- Fill in other required fields

- Click “Save and Continue”.

## 3b. Add All Scopes

- Click “Add or Remove Scopes”

- Select 100 “Rows per page”, for each page, check all the rows, OR

- Manually type in the scopes you need

- Click “Update” at the bottom

## 3c. Step through and go to dashboard

At the last step/page, click “ **BACK TO DASHBOARD** ” instead of “Prepare for Verification”  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c8fe7b5be5b0fec74f940524cefe93259806a7c.png)

## 3d. Publish your GCP OAuth2 app

You will need to set your OAuth application to “Production”, otherwise the credentials expire very frequently.

- To do this, go back to “[OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent)”

- Then click the “ **PUBLISH APP** ” button

- Then click the “ **CONFIRM** ” button

* * *

# Create New Connection (HTTP, or respective Google module)

You can find the Client ID and Client Secret in the OAuth2 app you created in GCP, on the right-hand side of where you inserted the callback URLs in step 2:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/e/aeb4ff9ca8e4f5ddf3badd144b4f5a4fb19f27ef.png)

## 4a. Specific Google module (Sheets, Docs, Drive, Gmail, etc.)

Insert the GCP app client ID and secret here **BEFORE** clicking “Sign in”

_(Gmail example)_

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/a/caa6efb63fb50b12399549ee627da8bb29189a13.png)

**OR,**

## 4b. HTTP OAuth 2.0 Request module

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/9/89a1c01d161c36bc11d1e7460256be7e02258d18.png)

You need a “Authorize Parameters” key of `redirect_uri` with the above Make OAuth2 callback URL.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/3/43df2cd92abedfda53a23fc12991dbfb13eff1be.png)

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![JohnNew](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JohnNew](https://community.make.com/u/JohnNew)\
**Post date:** [September 9, 2024, 7:52am UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/8 "2024-09-09T07:52:49Z")

</div>

Hi Sam,  
Thanks for your answer, but again, this is not what I am looking for. I already did this to send automated messages in chat. My question is specifically on this module:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/a/5a9801c05e29a3daf10758e382fe1a6c0fb50865.png)

I need a verification token from google and when I enter that, I get a webhook that receives Post Requests from somewhere in Google, I presume. My question is where to get the verification token and where I can put in the webhook to start listening to messages.

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [September 13, 2024, 1:09am UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/9 "2024-09-13T01:09:27Z")

</div>

Hey @JohnNew,

I don’t think you’d want to use this particular module, it seems as though some helper modules may be missing - disabled or not even created by whoever created this app. It’s odd that there are two different Google Chat apps that have different modules but both lead to the same help page. Now it makes sense when you say the help page seems outdated, as it references the other module.

Instead, you can create a new subscription to Google Chat Message Events.  
Each message (or batch of messages) gets sent to the webhook address you specify and you can just use a Custom Webhook Trigger for this instead of Google Chat modules.  
The data comes in base64 encoded and unfortunately, doesn’t appear Make has a base64 decode module or function yet. You’d have to create your own.

Here’s the Google reference: [Create a Google Workspace subscription &nbsp;|&nbsp; Google for Developers](https://developers.google.com/workspace/events/guides/create-subscription#apps-script_1)

There are a lot of requirements, including responding/acknowledging the message so that it doesn’t try to re-send it.

Here’s a list of chat/space events you can subscribe to:

> **[Subscribe to Google Chat events  |  Google Workspace  | ...](https://developers.google.com/workspace/events/guides/events-chat)**

This reference explains the parts of the payload, including the bit about the data being the message data base64 encoded:  
[https://cloud.google.com/pubsub/docs/push](https://cloud.google.com/pubsub/docs/push)

Here’s what the payload looks like:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/0/f0c1293bc7786eeebea3c285b611ebd93c3772e1.png)

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [September 17, 2024, 7:39pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/10 "2024-09-17T19:39:11Z")

</div>

> [@Donald\_Mitchell](#):
>
> The data comes in base64 encoded and unfortunately, doesn’t appear Make has a base64 decode module or function yet. You’d have to create your own.

I take this back, there is a way to decode base64 by combining toString and toBinary.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/b/ebcf2855aa507f80f6e7c8c8c2efa851d2001b54.png)

See [https://www.make.com/en/help/functions/string-functions#base64--text-](https://www.make.com/en/help/functions/string-functions#base64--text-)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 16, 2024, 8:40pm UTC](https://community.make.com/t/creating-a-webhook-from-google-chat-to-make/54252/11 "2024-12-16T20:40:25Z")

</div>


