Files & Documents
Analyze Email Attachments with AI and Save Results to Google Drive
18 nodes
282
121
Automatic trigger
Workflow Description
Automatically receive emails, extract PDF attachments, process them through OpenAI for intelligent analysis, and save the results in an organized Google Drive folder. Ideal for document processing workflows that require AI-powered insights.
How it works
- 1.Trigger automation when a new email arrives with attachments
- 2.Extract and read PDF files from the email message
- 3.Send extracted content to OpenAI for analysis and processing
- 4.Store analysis results in an organized folder in Google Drive
Use cases
- Automatically process invoices and contracts to extract key business data
- Analyze reports sent via email and organize insights in cloud storage
Requirements
- Active Gmail account with access authorization for messages and attachments
- OpenAI account with valid API key and sufficient credits
- Google Drive account with permissions to create folders and files
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Read P D F
OpenAI
Google Drive
Gmail
Details
Trigger
Automatic trigger
Nodes
18
Apps
4
Views
282
Downloads
121
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 (18)
/
Read PDF
Read P D F
Sticky Note
Sticky Note
Configure
Set
Is PDF
If
Not a PDF
No Op
Is matched
If
This is a matched PDF
No Op
This is not a matched PDF
No Op
Iterate over email attachments
Code
OpenAI matches PDF textual content
OpenAI
Merge
Merge
Upload file to folder
Google Drive
On email received
Gmail
Note5
Sticky Note
Ignore large PDFs
No Op
Is text within token limit?
If
Has attachments?
If
There are no attachments
No Op