I want my scenario runs only when a specific email comes in in gmail. To limit the credit usage, I used Gmail watch. It works, but I see that the scenario runs every 15 min and use credit each time. How can I use less credit but have the scenario running “as soon” as the email comes in?
Hello @Beton_Surface and welcome to the Make Community!
Make has a Mailhook trigger - you send an email to a special email address and that will kick off your scenario. If you’re able to set up filters and auto-forwarding in Gmail to forward specific emails to that address, that will give you the instant effect you’re looking for without using a credit every x minutes.
You can also take a hybrid approach where you keep you scenario as-is, don’t schedule it to run, but leave it on-demand.
Use a second scenario, with the same Mailhook trigger I just mentioned, then have that one kick off your main scenario. You’ll still get the instant effect, it only uses 1 additional op (for the Mailhook), and your original scenario still does all the work. Hopefully this makes sense, but let me know if you need more clarification!
There is also a 3rd possibility - adjust your scheduling settings. Scenarios can run at different time intervals as well- for example, once every hour.
Take into consideration how many emails you want to work on during one workflow run- “Watch email” can return multiple bundles (in your case emails) in one operation (so it will cost one credit). Mailhook always uses 1 credit per trigger - so for example:
- Watch email processing 10 emails - 1 credit
- Mailhook processing 10 emails - 10 credits
Always choose best solution to your use-case
I didn’t mention this because OP had stated they want the scenario to run “as soon as the email comes in”, but yes of course this is a possibility too - run it less often with the trade-off of having to wait longer for the scenario to run vs when the email arrives.