AI Agents

Connect Gmail with Google Drive

25 nodes 196 133 Automatic trigger
Download

Workflow Description

An intelligent automation that monitors incoming emails, analyzes their content using AI, then organizes them and saves attachments and summaries to Google Drive automatically.

How it works

  1. 1.Receive new Gmail messages automatically via trigger
  2. 2.Process email content and attachments through an AI agent
  3. 3.Analyze and summarize messages using OpenAI language model
  4. 4.Organize files and save them in Google Drive folders by category

Use cases

  • Archive important client emails with automatic summaries in a shared project
  • Process invoices and quotes received and categorize them in Google Drive
  • Collect work reports from email and organize them in a logical folder structure

Requirements

  • Active Gmail account connected to n8n with IMAP/API access
  • Google Drive account with permissions to create folders and upload files
  • Valid OpenAI API key for intelligent content processing

Service Value

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

Apps Used

Twitter/X Gmail OpenAI AI Agent Google Drive

Details

Trigger Automatic trigger
Nodes 25
Apps 5
Views 196
Downloads 133

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 (25)

/

When Executed by Another Workflow

Execute Workflow Trigger

#1

Sticky Note10

Sticky Note

#2

Create YouTube API URL

Code

#3

Get YouTube Video Details

HTTP Request

#4

Merge YouTube Details & Transcript

Merge

#5

Create One JSON Object

Aggregate

#6

Workflow Variables

Set

#7

Sticky Note12

Sticky Note

#8

Sticky Note14

Sticky Note

#9

Sticky Note15

Sticky Note

#10

Combine Comments

Summarize

#11

Split Out Comments

Split Out

#12

Get YouTube Video Comments

HTTP Request

#13

When clicking ‘Test workflow’

Manual Trigger

#14

Create YouTube API URL for Comments

Code

#15

Gmail Report

Gmail

#16

Sticky Note

Sticky Note

#17

gpt-4o-mini

OpenAI

#18

Sticky Note1

Sticky Note

#19

Markdown to HTML

Markdown

#20

YouTube Video Report Agent

Agent

#21

Sticky Note2

Sticky Note

#22

Get Video Comments with Pagination

Code

#23

Save Report to Google Drive

Google Drive

#24

Sticky Note4

Sticky Note

#25