Process PDFs with AI and distribute summaries via Gmail
Workflow Description
Automate PDF file reception via webhook, extract content using OpenAI, store files in Google Drive, and send intelligent summaries through Gmail. Delivers a complete workflow for document management and automated analysis without manual intervention.
How it works
- 1.Receive PDF file through webhook and validate its format and integrity
- 2.Read PDF content and send to OpenAI for intelligent processing and summarization
- 3.Archive original file and processed summary in separate Google Drive folders
- 4.Send Gmail with summary and direct link to stored file in Drive
Use cases
- Automatically process invoices and contracts to extract key business data
- Receive PDF reports and summarize them for team distribution in real time
- Smart document archiving with searchable index for easy retrieval
- Analyze client documents and send executive summaries to sales team
Requirements
- Active OpenAI account with valid API key and sufficient credits
- Google and Gmail accounts linked via OAuth authentication
- Webhook endpoint for reception with optional security authentication
- Knowledge of expected file types and maximum file size limits
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 (20)
OpenAI
OpenAI
Configure
Set
Iterate over email attachments
Code
Not a PDF
No Op
Is text within token limit?
If
Merge
Merge
Is matched
If
Upload file to folder
Google Drive
Webhook
Webhook
Respond to Webhook
Webhook
Create folder
Google Drive
Aggregate attachments
Code
Send email with invoices?
If
Send to my accountant
Gmail
Get emails with attachments
Gmail
Read PDF email attachments
Read P D F
Is attachment a PDF?
If
Optional filter for emails
Filter
Sticky Note
Sticky Note
Sticky Note1
Sticky Note