Files & Documents
Extract PDF attachments from Gmail and save to Google Drive
18 nodes
160
123
Automatic trigger
Workflow Description
Automation that monitors incoming Gmail messages with PDF attachments, analyzes their content using OpenAI to extract key information, then automatically stores selected files in Google Drive with organized documentation.
How it works
- 1.Receive Gmail notification with PDF attachments
- 2.Read and analyze PDF content through OpenAI processing
- 3.Save identified files to Google Drive with extracted metadata
Use cases
- Automatically archive invoices and contracts received via email
- Store incoming reports with AI-generated summaries for easy retrieval
Requirements
- Active Gmail account with attachment access permissions
- Google Drive account for file storage
- Valid OpenAI API key
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
160
Downloads
123
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