Save Gmail Attachments to Google Drive Automatically
Invoices, contracts, and reports arrive as email attachments and then rot in your inbox. Saving them manually to Drive is a chore everyone forgets. This workflow watches your inbox and files every attachment into a Drive folder automatically, so your document trail builds itself.
What this workflow does
- A Gmail Trigger polls your inbox every minute for new emails that have attachments.
- The trigger downloads each attachment as binary data.
- A Google Drive node uploads every attachment into the folder you choose, keeping the original filename.
Setup guide
- Import the JSON into n8n (Workflows > Import from File).
- Connect your Gmail account in the Gmail Trigger node (OAuth, two clicks).
- In the trigger's filters, keep 'has:attachment' - or narrow it, e.g. 'from:billing@supplier.com has:attachment'.
- Connect Google Drive in the upload node and pick your destination folder.
- Activate the workflow. Send yourself a test email with an attachment to confirm.
Want this running 24/7?
Self-host n8n on a cheap VPS and this workflow runs around the clock for less than a coffee a month.
Get an n8n VPS from $5/monthFAQ
Want the workflows this one is a warm-up for?
The Mega Bundle packs both WorkflowForge Pro volumes — 32 production-grade workflows: automations (cart recovery, lead scoring, invoice extraction) and AI agents (support agent, calendar assistant, research agent), each with a setup guide. $39 for both, instant download.
Get the Mega Bundle →Need it customized for your exact process?
I build custom n8n automations and AI agents professionally: your tools, your edge cases, tested and documented.
Hire me on Fiverr →