How to create a google workspace gmail Webhook?
Is there any make post for this?
Greetings
Hi @WISESIFT and welcome to the Make Community!
What do you mean by this? You can create a mailhook using the webhook module. Is that what you want? Or a process that watches your emails and reacts when it finds one that meets specific criteria? There is a “Watch” module in Gmail that can help with that.
L
Hello there,
- Instead of having the Gmail connection run every 15 minutes I would like to have a Webhooks auto run only when I email is received or when am email is sent.
Greetings
A webhook can’t autorun. It can either poll to see what’s changed or be triggered by an event.
Think of it like this: Pretend you are a webhook and that your role is to open mail and respond to it. There are only two ways to do it. You can go to your mailbox and check to see if there is any mail there (polling) or the mailman (or mailwoman) can ring your doorbell and give you your mail.
What you are asking (or at least, that’s what I understand) is for you to know when ther eis mail in your mailbox when the mailman puts mail in it. You can’t.
What is your real goal, here? Is it to have an immediate response? In that case, you can create a scenario that poills every minute and there will never be more than one minute between the moment you receive an email and the moment it is handled. But it’s costly: a minimum of 60 operations per hour.
If your goal is to send a response when another process occurs (e.g., a successful payment), then that process should call your webhook and have the webhook do what it’s supposed to do.
Can you explain what you’re trying to get as a result? Once we know WHAT you want, it will be easier to tell you HOW to get there.
L
Instead of polling gmail every single minute I want to way around. have a “gmail Webhook” that is triggered every time an email arrives or an email is sent and then the rest of the scenario runs.
Am I clear?
Greetings.
I don’t think Make can do that, but I’ll let someone else contradict me.
The Google API documentation points to push notifications that you can set up for whenever you receive an email. I looked at it briefly but did not investigate:
It’s possible that you can use this approach to call a Make scenario.
L
I already saw this working before.
You might be right. Make sense build this from google side.
Any way, Thank You so much.