Poll multiple Gmail accounts with unified data table storage & Discord notifications
UnknownWhat this workflow does
This workflow has 15 nodes and runs on a schedule (every hour). Along the way it connects Discord and Run Node With Credentials X (community).
How it runs
Trigger: On a schedule (every hour).
- Get All Email Accounts (Data table): get
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Get new emails if any (Data table): get
- Code: runs custom JavaScript code
- If: checks a condition and branches into true / false
- Run Node With Credentials X: uses Run Node With Credentials X
- Edit Fields (Edit Fields (Set)): sets 1 field: emailCount
- If: checks a condition and branches into true / false
- Limit: keeps the first few items
- Email Normalization (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-run-node-with-credentials-x is verified or supports 3.0 (used in Run Node With Credentials X).
Nodes used (9)
- Run Node With Credentials X
n8n-nodes-run-node-with-credentials-x.runNodeWithCredentialsX - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Discord
n8n-nodes-base.discord - Limit
n8n-nodes-base.limit - If
n8n-nodes-base.if
From the author
This template lets you poll multiple Gmail accounts from a single workflow using n8n’s credential-aware execution. Instead of creating separate workflows for every inbox, this setup loops through all accounts stored in your data table and runs Gmail…