Automate Gmail Attachments Upload to Google Drive with n8n

Save hours manually handling Gmail attachments by automatically uploading them to Google Drive using this n8n workflow. Avoid lost files and access attachments easily with shareable links generated instantly.
gmail
googleDrive
set
Workflow Identifier: 2357
NODES in Use: Gmail, Google Drive, Set
Automate Gmail to Google Drive with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow finds emails in Gmail with a special label and gets their video attachments.

It uploads these videos to a specific Google Drive folder automatically.

Then it makes links that you can share easily to anyone on your team.

The goal is to save time and avoid mistakes from downloading and sharing files manually.


Who Should Use This Workflow

People who get many video files by Gmail and need to share them fast.

Anyone who wants to stop copying files by hand and keep all videos organized in Google Drive.

Users already familiar with basic n8n and Gmail labels can use this easily.


Tools and Services Used

  • Gmail: To find emails by label and get attachment data.
  • Google Drive: To store video files in a chosen folder.
  • n8n: To connect Gmail and Google Drive with OAuth2 for automation.

Workflow Inputs, Processing, and Outputs

Inputs

Emails marked with a Gmail label such as “Videos-to-Upload”.

These emails contain attached video files.

Processing Steps

1. Find all emails with the specific Gmail label.

2. Get all attachments from these emails.

3. Upload each video attachment to the selected Google Drive folder.

4. Create a link to each uploaded video for sharing.

Output

A list of shareable Google Drive links for each uploaded video file.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Inside the n8n editor, click the Import button.
  2. Choose “Import from File” and upload the workflow file downloaded from this page.

Step 2: Add Credentials

  1. Attach your Gmail OAuth2 credentials to the Gmail node.
  2. Attach your Google Drive OAuth2 credentials to the Google Drive node.

Step 3: Update Settings

  1. Put your Gmail label ID in the Gmail node settings (example: “Label_123456789”).
  2. Set the Google Drive folder ID where files will save in the Google Drive node.

Step 4: Test the Workflow

  1. Run the workflow once to check if videos upload and links generate correctly.

Step 5: Activate for Production

  1. Turn on the workflow to run automatically or on schedule as needed.

If self-hosting n8n, scheduling is possible with cron triggers. More info on self-host n8n.


Common Problems and Solutions

  • No emails found: Check Gmail label ID is correct and some emails have that label.
  • Upload fails: Confirm Google Drive credentials have access to target folder.
  • Missing share links: Ensure Google Drive node returns data and Set node uses correct path {{$json["webViewLink"]}}.

Customization Ideas

  • Change the Gmail label to pick different emails.
  • Add a loop to handle more than one attachment per email.
  • Connect Slack or email nodes to send notifications with share links.
  • Add file type checks to upload only specific video formats.
  • Modify file names in Google Drive node to include dates or project names.

Summary of Results

✓ Saves daily time by automating Gmail video attachment handling.

✓ Uploads videos directly to Google Drive folder without manual steps.

✓ Creates shareable links for quick access and better team sharing.

✓ Reduces risk of lost attachments or forgotten sharing.

Automate Gmail to Google Drive with n8n

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.