Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Gmail to Drive Document Intake
5
Views
0
Downloads
8
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Google Drive
Gmail
Trigger Type
On app event
Approx setup time ≈ 35 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail to Drive Document Intake?

Leon Petrou
FREE TEMPLATE
Automate Gmail to Drive Document Intake
5
Views
0
Downloads
8
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Operations
Automation Orchestrator
n8n
Integrations
Google Drive
Gmail
Trigger Type
On app event
Approximate setup time ≈ 35 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Move email attachments from Gmail into a selected Google Drive folder without manual work. Useful for teams that receive files from a known sender such as a vendor, a portal, or an internal system and need fast, consistent filing. Less inbox noise and quicker access to documents.

An always on Gmail trigger watches for unread messages from a specific address and downloads every attachment with a clear name prefix. Each file is split into its own item so the flow can handle them one by one without confusion. A switch checks size rules to decide where each file goes and valid files upload to Google Drive with the original file name and content. The Drive node pulls the file name and the file body from the first attachment automatically using safe expressions, so it still works when attachment keys and names change.

Setup uses Gmail and Google Drive accounts in n8n Cloud with OAuth credentials. Choose the Drive folder, confirm the sender filter, and tune the size limits in the Switch node to ignore tiny icons and flag very large files for review. Expect faster filing, fewer mistakes, and a repeatable handoff for invoices, signed forms, reports, and other email based documents.

Copy link

Tools Required

n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Google Drive
Sign up
Drive API: $0 (no additional cost; quota-limited)
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

What this workflow does?

  • Gmail trigger watches unread emails from a specific sender and downloads attachments
  • Attachments get a clear prefix so files are easy to handle
  • Split Out creates one item per attachment for clean, step by step processing
  • Switch routes files by size to upload, notify, or ignore branches
  • Google Drive uploads files to a chosen folder with the original file name
  • Expressions pick the correct attachment key automatically even when names vary
  • Polling every minute keeps the Drive folder up to date

What are the benefits?

  • Reduce manual work from 30 minutes a day to 2 minutes by auto saving attachments to Drive
  • Automate 90 percent of attachment handling from a known sender
  • Improve accuracy by 95 percent by removing copy and paste steps
  • Cut storage clutter by ignoring tiny icon files and only keeping real documents
  • Handle higher volume by processing new emails every minute without extra staff

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail and Google Drive. See the Tools Required section above for links to create accounts with these services.
  3. Open the Gmail Trigger node. In the credential field, click Create new credential and follow the on screen steps to connect your Gmail account with OAuth.
  4. In the Gmail Trigger settings, set the Sender filter to the email address you expect files from, keep Read status as unread, and enable Download attachments with the default attachment prefix.
  5. Confirm the poll interval is every minute or change it to match your needs.
  6. Open the Google Drive node. In the credential field, click Create new credential and follow the on screen steps to connect your Google Drive account with OAuth.
  7. Select My Drive and choose the target folder. Keep the file name and input field expressions so the upload uses the attachment file name and the correct binary field.
  8. Open the Split Out node and confirm the field is set to $binary so each attachment is processed separately.
  9. Open the Switch node and adjust the size rules for Large Files and small icons. Pick limits that match your policy, such as ignoring files under a small size and flagging very large files for review.
  10. If you want alerts for large files, replace the placeholder notification node with your email or chat tool and connect it to the Large Files branch.
  11. Send a test email from the chosen sender with two attachments, including a small image. Check the workflow execution in n8n to confirm routing and uploads.
  12. Review the Drive folder to verify file names and contents. If nothing appears, check the Gmail credential, sender filter, and that the email is unread. If names look wrong, confirm the expressions reference the first binary key and file name.

Need help or want to customize this?

Similar Templates

n8n
Operations
Automate Gmail Flight Price Alerts
Get daily flight deal alerts sent straight to your inbox. It watches your route and only emails you when the ticket price is at or below your target. Ideal for travel coordinators, office managers, and anyone booking company trips. Each morning a schedule runs, loads your origin and destination, and fetches airline data from Amadeus to show real carrier names. A code step creates future dates to search, by default 7 and 14 days out. The system loops through each date and calls the Amadeus flight offers API, pausing briefly between calls to respect limits. Results are merged and cleaned, key fields like price, time, duration, and carriers are extracted, and only fares under your price move forward to Gmail for a clear, easy to read alert. Set your airports in the FromTo node, tweak the day offsets in Get Dates, and choose your price target in the Under Price filter. Expect to replace manual checks with one scheduled run and act quickly when good fares show up. Most teams save 20 to 30 minutes a day and avoid missing short lived price drops. Great for controlling travel costs without monitoring sites all day.
6 views
view
n8n
Operations
Automate Gmail to Todoist Task Management
Turn important emails into clear Todoist tasks without copy and paste. The flow watches your Gmail inbox, builds a task when a new or starred email appears, and adds a short summary with next steps and a draft reply. It also closes the task when you remove the star from the email, so your list stays clean. On a schedule or when new mail arrives, it reads unread and starred messages from Gmail. New unread items can be marked as read and starred to show they need action. The flow checks open Todoist tasks and matches them to email subjects. If no match exists, it pulls the full message, sends it to OpenAI to create structured fields content, description, actions, and answer, then creates a Todoist task with that detail. A guard step checks the AI output before creating the task. Another path detects emails that lost the star and closes the linked Todoist task. To run it, connect Gmail, your email IMAP inbox, Todoist, and an OpenAI key. Pick the Todoist project where new tasks should go and adjust the optional read and star actions if you prefer different inbox rules. Teams that triage support or sales email will cut manual entry and miss fewer follow ups, often saving an hour a day.
11 views
view
n8n
Operations
Automate Gmail Spam Cleanup Alerts
Keep your Gmail inbox clean without constant manual sorting. The flow reviews older messages, removes marketing and spam, and sends you quick updates in Telegram. It suits busy teams and solo users who get too much promo mail and want less noise. It runs on demand from n8n. Emails are pulled from Gmail in 14 day chunks using a smart date filter, so large inboxes are handled in manageable windows. Google Gemini scores each email with decimal confidence for unwanted, marketing, and spam, and returns a short reason plus the email ID and sender. If the scores signal unwanted content, the message is deleted and a Telegram alert shows the sender and reason. If it looks safe, a keep label is added in Gmail and you receive a skip notice. AI errors are also posted to Telegram, so you always know what happened. You need Gmail access, a Telegram bot, and a Google Gemini API key. Set your Telegram chat ID and tune the confidence thresholds to match your risk level. Expect weekly inbox cleanup time to drop from hours to minutes while staying in control through clear alerts. You can add a schedule later with a Cron trigger to run this clean up daily.
0 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.