AutomationMart
Home/Browse/Gmail attachment backup to Google Drive
n8n

Gmail attachment backup to Google Drive

n8nn8n5 modulesv1.0
GmailSlackGoogle Drive

Gmail Attachment Backup to Google Drive β€” n8n Workflow This n8n workflow automatically backs up email attachments from a specific sender in Gmail to a designated folder in Google Drive. It polls Gmail every minute and uploads any new attachments from matching emails to the specified Google Drive folder with a timestamped filename. --- πŸ“Œ Use Case Primary Purpose: - Automatically archive and back up attachments from a specific sender (e.g., test@gmail.com) to Google Drive for safekeeping, audit, o

At a glance

Gmail attachment backup to Google Drive is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Gmail, Slack, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Google Drive
Modules
5
Price
Free
Version
v1.0
Gmail attachment backup to Google Drive workflow diagram

About this workflow

Gmail Attachment Backup to Google Drive β€” n8n Workflow This n8n workflow automatically backs up email attachments from a specific sender in Gmail to a designated folder in Google Drive. It polls Gmail every minute and uploads any new attachments from matching emails to the specified Google Drive folder with a timestamped filename. --- πŸ“Œ Use Case Primary Purpose: - Automatically archive and back up attachments from a specific sender (e.g., test@gmail.com) to Google Drive for safekeeping, audit, or processing. Ideal For: - Automating invoice/receipt collection from a vendor - Archiving reports from a monitored email address - Creating a searchable historical log of attachments for compliance --- 🧭 Workflow Overview Here’s how the workflow operates: 1. πŸ”” Gmail Trigger Polls Gmail every minute for new messages from a specific sender (test@gmail.com). 2. πŸ“© Gmail Get Message Retrieves the full contents (including attachments) of the matched email. 3. 🧠 Code (JS) Iterates over all binary attachments in the email and restructures them as individual binary items to upload separately. 4. πŸ“€ Google Drive Uploads each attachment to a target Google Drive folder (DOcs) with a timestamp and unique name. 5. πŸ“ Replace Me (NoOp) Placeholder node to indicate workflow completion. You can replace this with Slack notifications, logs, or alerts. --- πŸ”§ How to Use Prerequisites - An n8n instance (self-hosted or cloud) - A connected Gmail account with OAuth2 credentials - A connected Google Drive account with OAuth2 credentials - Permissions for n8n to access your Gmail and Google Drive Setup Instructions 1. Import the Workflow Copy and paste the workflow JSON into your n8n editor. 2. Set Up Credentials Ensure the following credentials exist and are authorized: - Gmail (for Gmail nodes) - Google Drive (for Google Drive node) 3. Configure the Folder Update the folderId in the Google Drive node if you want to use a different target folder. 4. Activate the Workflow Enable the workflow in n8n. It will start polling Gmail every minute. --- ✏️ How to Customize | Task | How to Customize | |------|------------------| | Change sender filter | Modify the sender field in the Gmail Trigger node | | Adjust polling frequency | Change the pollTimes configuration in the trigger node | | Change destination folder | Update folderId in the Google Drive node | | Modify filename format | Edit the name expression in the Google Drive node | | Add post-upload logic | Replace or extend the Replace Me node with notifications, logs, etc. | | Process only specific attachments | Add logic in the Code node to filter by filename or MIME type | --- πŸ“‚ Filename Format Example This naming convention ensures uniqueness and traceability back to the original message. --- βœ… Future Improvements - Email subject filtering to narrow down the match - Slack/Email notifications after upload - Deduplication check to avoid reuploading the same files - Virus scan or file validation before upload --- πŸ’¬ Support For any issues using this workflow: - Double-check your credential permissions - Review n8n logs for Gmail or Google Drive errors - Visit the n8n community forums

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create Asana tasks from new emails in Gmail

When you receive emails in your Gmail inbox, Make will retrieve the emails and create a task on Asana automatically.

Free

Create Revolut draft payments to employees from a Toggl report and send a Slack notification

Create Revolut Business draft payments to your employees from a Toggl time-tracking summary report and send a Slack notification. The scenario is set to run on the first day of the month (you can change it by clicking on the watch icon next to the first module) and it retrieves a summary report for the last month. The setup of the template assumes you have your employee data stored in an Airtable table. Your table has to include these fields: Name of the employee (First name and Last name) and

Free

Personalized LinkedIn responses with OpenAI GPT & Notion-based routing

Who is this for? This workflow is for professionals and teams who want to automate LinkedIn message replies with intelligent, human-like responses β€” without losing control over tone or accuracy. Ideal for founders, sales teams, DevRel, or community managers handling high-volume inbound messages. What problem is this workflow solving? Responding to every LinkedIn message manually is slow and inconsistent. Basic AI bots generate replies without context or nuance. This subworkflow solves b

Free

Convert task ideas to implementation plans with GPT-4o, Slack & Google Sheets

Turn your random ideas into concrete automation specs This workflow acts as your interactive "n8n Consultant." Simply write down a rough automation idea in Google Tasks (e.g., "Send weather updates to Telegram"), and the AI will research, design, and send a detailed n8n implementation plan to your Slack. ✨ Why is this workflow special? Unlike simple notification workflows, this features a Human-in-the-Loop review process. You don't just get a message; you get control.

Free

Create a post in Instagram for new Google sheets rows

Every time a new row is added to your Google Sheets spreadsheet, Make will automatically create a photo post to Instagram from a file from Google Drive. The template uses thisΒ example spreadsheet.

Free

Create a private document Q&A system with Llama3, Postgres, Qdrant and Google Drive

How It Works: LocalRAG.AI ⚠️ Note: This system only works for self-hosted n8n instances. It will not function on n8n.cloud or other remote setups. LocalRAG.AI is a private, on-prem AI assistant that uses your own documents to answer questions intelligently. It combines LangChain, Ollama, Qdrant, and Postgres into a powerful AI pipeline β€” all running locally for maximum data privacy. πŸ”„ What It Does Monitors Your Google Drive Folders for new or updated files. Downloads the file, extract

Free

Generate AI video clips from YouTube using Reka Vision API and Gmail

Try It Out! This n8n template demonstrates how to use Reka API via HTTP to AI generate a clip automatically from a YouTube video and send email notifications. How it works - Looking at the RSS feed of a YouTube channel, the flow will be triggered when there is a new video published. - Using Reka's API, we will submit a request for creating a clip using AI. You can customize: - the prompt to generate the clip - decide if you want captions or

Free

AI agent creates content to be picked by ChatGPT, Gemini, Google

Who is this for? Marketing teams, content creators, solopreneurs, and agencies who want to generate emotionally-resonant, SEO-optimized content tailored to audience psychology and buyer journey stages β€” and get picked up by AI discovery engines like ChatGPT, Gemini, and Perplexity. How it works: βœ… Decodes why people buy (using buyer psychology) βœ… Creates SEO + emotionally resonant content for 4 formats: β†’ Blog Posts, Newsletters, Landing Pages, Social Media βœ… Structures the content to be picked

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free