I looked through similar questions and didn’t see one quite the same so I’m asking here.
I’ve got a workflow that triggers off a Gmail Trigger node. The workflow is supposed to label every email that comes to the inbox.
The problem is that sometimes it just doesn’t run.
I have the Gmail Trigger node set to poll every minute. And usually, it does a good job of catching a new email and running the workflow.
But about 20% of the time, I receive a new email and the workflow doesn’t trigger. When I look at the executions, it didn’t error; it just never ran. So I’ll have a new unread email sitting in my inbox with no label. This shouldn’t ever happen.
I suppose my question is whether it’s more reliable to use an IMAP trigger than the Gmail Trigger node?
Because, I noticed that the Gmail Trigger node doesn’t seem to work the way I want: I want the workflow to trigger immediately when an email is received.
The Gmail Trigger, by contrast, seems to poll the inbox at defined intervals and look to see if an email has arrived. This is not ideal, because the email could be received and marked as read in the minute before the workflow executes (it is designed to only run on new unread emails). Instead, the workflow should trigger immediately as soon as any email is received.
Here’s my workflow. Please let me know if there is something set up incorrectly, and how I can make sure that every single email that comes in will be labeled, because currently it simply does not trigger sometimes.
Information on your n8n setup
- n8n version: 1.90.2
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker, on Render.com
- Operating system: Render.com cloud machine, I assume Linux