Connect Gmail with Google Drive
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.Receive new Gmail messages automatically via trigger
- 2.Process email content and attachments through an AI agent
- 3.Analyze and summarize messages using OpenAI language model
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (25)
When Executed by Another Workflow
Execute Workflow Trigger
Sticky Note10
Sticky Note
Create YouTube API URL
Code
Get YouTube Video Details
HTTP Request
Merge YouTube Details & Transcript
Merge
Create One JSON Object
Aggregate
Workflow Variables
Set
Sticky Note12
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Combine Comments
Summarize
Split Out Comments
Split Out
Get YouTube Video Comments
HTTP Request
When clicking ‘Test workflow’
Manual Trigger
Create YouTube API URL for Comments
Code
Gmail Report
Gmail
Sticky Note
Sticky Note
gpt-4o-mini
OpenAI
Sticky Note1
Sticky Note
Markdown to HTML
Markdown
YouTube Video Report Agent
Agent
Sticky Note2
Sticky Note
Get Video Comments with Pagination
Code
Save Report to Google Drive
Google Drive
Sticky Note4
Sticky Note