Gmail attachment manager with Google Drive upload and smart filtering
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 11 nodes and runs on Gmail events. Along the way it connects Gmail, Slack and Google Drive. It also calls n8n.com:8443 over HTTP.
How it runs
Trigger: On Gmail events.
- Filter: keeps only the items that match a condition
- Split Out: splits a list into separate items
- Loop attachments (Loop Over Items (Split in Batches)): loops over the items in batches
- Mark read and archive email (Gmail): remove labels
- Filter: keeps only the items that match a condition
- Send a message (Slack): uses Slack
- Treat different file types different (Switch): routes items into 2 branches
- Decompress zip (Compression): uses Compression
- Upload file to Google Drive (Google Drive): uses Google Drive
- Post file to webhook (HTTP Request): calls n8n.com:8443 (POST)
Services it uses
HTTP calls to: n8n.com:8443
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Trigger on incoming email with attachment).
Nodes used (10)
- Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Gmail Trigger
n8n-nodes-base.gmailTrigger - Filter
n8n-nodes-base.filter - Switch
n8n-nodes-base.switch - Compression
n8n-nodes-base.compression - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Drive
n8n-nodes-base.googleDrive - Split Out
n8n-nodes-base.splitOut
From the author
This n8n template allows you to automatically upload all attached files from incoming emails to Google Drive with optional filters on sender, receiver and file types This template is built to be customized for your specific needs. This template has the core…