Gmail Trigger

Hi, I want to ask

image

Can the poll time feature be removed? Because every time I delete, save, and run the workflow, this feature automatically turns on. What I am looking for is a trigger every time an email arrives in Gmail.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

So Gmail doesn’t actually send n8n any information when you get an email, so there is no way for n8n to know when to trigger.

Polling is the solution: every so often n8n goes and asks Gmail if any new messages came since the last time it asks. If you put every minute, then every 60 seconds n8n will ask gmail if there is anything new. That’s what polling is

There is no instant trigger functionality, the poll time is required.
You can have it check every 1 second if you really need emails right away, but that will constantly be running on your n8n server potentially slowing it down.

This is how you would set poll times under a minute

How does the trigger know if an email is new or whether it has been processed already?

I tried to set up multiple polling times with different frequencies across the day and it feels like sometimes it’s picking up the same thing twice

It stores it locally and has logic built in to check.
Not sure exactly how in this node, but imagine storing a list of message IDs or received time so you know if the returned message is actually new.

Please share examples (and logs if possible) if you are experiencing this because it might be a bug.

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