Gmail email auto-organizer with Google Sheets rules
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs on a schedule (every minute). Along the way it connects Gmail, Google Sheets and Slack.
How it runs
Trigger: On a schedule (every minute).
- Get many messages (Gmail): get many
- Gmail: work with label
- Parse Sender Email (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Map Label Name (Code): runs custom JavaScript code
- Completed Notification (Slack): uses Slack
- Is marketing/automated email? (If): checks a condition and branches into true / false
- is Label Exist? (If): checks a condition and branches into true / false
- Promotional (Gmail): add labels
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack
From the author
Transform your Gmail inbox from chaos to clarity with this revolutionary email organization system that uses Google Sheets as your command center for automated email management. This powerful n8n workflow automatically processes, categorizes, and organizes…