Process Gmail Messages and Archive Files to Google Drive
Workflow Description
Intelligent automation that receives Gmail messages, analyzes them with AI, extracts key information, and automatically saves files and summaries to organized Google Drive folders with seamless integration.
How it works
- 1.Receive and analyze new Gmail messages using an AI agent
- 2.Extract important data from message content and attachments
- 3.Merge processed information and generate summaries using OpenAI models
- 4.Save files and summaries to categorized folders in Google Drive
- 5.Share results via email or social posts automatically
Use cases
- Manage business emails and automatically archive important documents
- Process invoices, contracts, and extract critical data fields
- Organize client proposals and requests with automatic indexing
Requirements
- Active Gmail account with full API access permissions
- Google Drive account with authorization to create files and folders
- Valid OpenAI API key or active subscription for model access
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