Templates / Gmail attachment manager with Google Drive upload and smart filtering

Gmail attachment manager with Google Drive upload and smart filtering

Ready for 3.0

by Ossian Madisson ✓ · 971 views · created 2025-10-30 · File Management

Ready 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.

  1. Filter: keeps only the items that match a condition
  2. Split Out: splits a list into separate items
  3. Loop attachments (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Mark read and archive email (Gmail): remove labels
  5. Filter: keeps only the items that match a condition
  6. Send a message (Slack): uses Slack
  7. Treat different file types different (Switch): routes items into 2 branches
  8. Decompress zip (Compression): uses Compression
  9. Upload file to Google Drive (Google Drive): uses Google Drive
  10. Post file to webhook (HTTP Request): calls n8n.com:8443 (POST)

Services it uses

GmailSlackGoogle Drive

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)

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…

Excerpt from Ossian Madisson's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.