Files & Documents

Automatically save Gmail attachments to Google Drive

13 nodes 266 123 Automatic trigger
Download

Workflow Description

An automation that monitors incoming Gmail messages, identifies attachments, and transfers them directly to a designated Google Drive folder. Eliminates manual file handling and keeps documents centralized without requiring any user intervention.

How it works

  1. 1.Trigger automation on new Gmail message arrival
  2. 2.Detect attachments within the email
  3. 3.Filter emails containing attachments only
  4. 4.Transform and forward attachments to Google Drive
  5. 5.Store files in the pre-configured folder location

Use cases

  • Centralize invoices and contracts by automatically transferring attachments from client emails
  • Consolidate project files from team members into a shared folder

Requirements

  • Active Gmail account with API access enabled
  • Google Drive account with a designated folder for received files
  • Secure OAuth connection between n8n and both Google services

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gmail Google Drive

Details

Trigger Automatic trigger
Nodes 13
Apps 2
Views 266
Downloads 123

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (13)

/

Gmail Trigger

Gmail

#1

Only n8n Paddle invoice mails

If

#2

Split Out

Split Out

#3

Only keep invoice link

Filter

#4

Do nothing on other emails

No Op

#5

Sticky Note

Sticky Note

#6

Setup

Set

#7

Download Invoice PDF from URL

HTTP Request

#8

Rename file

Google Drive

#9

Move to the correct folder

Google Drive

#10

Upload PDF to Drive

HTTP Request

#11

Sticky Note1

Sticky Note

#12

Extract "a-tags" from email

HTML Page

#13