Gmail Trigger is not working

I have the problem that thw workflow wont get triggered when i recieve a message. if i start the workflow manually it is able to check my last mail. i tried sending a few mails and waited but nothing happened. i use n8n over the website and have the starter plan. I use version 1.100.1. I dont know what im doing wrong or what i have to change, the workflow is active. When i start the workflow manually everything works just fine from start to finish.

Database (default: SQLite): Dont know
n8n EXECUTIONS_PROCESS setting (default: own, main): Dont know
Operating system: Chrome on mac

have you been to look the workflow from executions tab?

I dont know what you mean exactly, but the workflow seems to have been activated twice yesterday and i havent touched it in a few days. and there where defenitely more mails coming coming into my inbox than the times the workflow has started.

So, when you activate your workflow, it won’t be able to see in Editor tab, meanwhile you need to see it executed or not by going to Executions tab.

i mean yes it is set to active in execution tab also but like i said the work flow does not activate when a mail comes in unless i start it manually

Yes, if you are using Gmail Trigger, it wouldn’t trigger automatically, because Gmail using polling method for the trigger. I don’t really know why Gmail are using polling method for their webhook. Maybe to prevent mass mail coming to your webhook request:D

okay but it seemed to work in the tutorials i was following. what is the solution to this then if it doesnt work at all?

you can set the polling time to 1 seconds if you want, but it doesn’t guarantee that only new mail coming to your inbox.

Did i do it right? There wasnt a designated option for one second. just one minute

Gmail trigger does seem to be working on the concept of polling, rather than a webhook like Telegram trigger supports. While the doc doesn’t mention it, Telegram trigger has this webhook option while Gmail does not:

I think it’s fair to say that polling-based triggers can take a while to process, and I doubt 1 second can work considering 1 minute is the lowest available polling option.

If you set to 1 minute polling, are you seeing any delays?

Thank you for the response.

I dont have any further options than this. im so confudes because it seems to work for other ppl.

also it worked like a few times over the past days but it seems so random. i got far more emails than it catched

is anyone able to help? maype from the n8n team? i still couldnt fix the problem

Try using IMAP Mail trigger rather than Gmail’s official one. This trigger executes immediately when a new message is received, it doesn’t have a poll method.

→ Make sure to use Custom Rule: [“UNSEEN”]

Setting it up isn’t hard. Just a couple of steps;

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.