Analyze documents and extract text with advanced AI processing
Workflow Description
Intelligent workflow that receives documents via email, analyzes content using OpenAI language models, classifies and extracts key data, stores results in Google Sheets, archives files in Google Drive, and sends summaries via Telegram notifications.
How it works
- 1.Receive documents through webhook and Gmail with automatic triggering
- 2.Process text analysis and classification using LLM chains and OpenAI models
- 3.Extract and structure key information, storing results in Google Sheets and Drive
- 4.Send notifications and summaries to Telegram for real-time alerts
Use cases
- Automatically process invoices and contracts, extracting vendor names, amounts, and dates
- Categorize incoming emails by type and priority, organizing documents systematically
- Summarize reports and research documents, distilling key insights from lengthy content
Requirements
- Active Gmail account with API access enabled and proper authentication
- Valid OpenAI API key for accessing language models and analysis capabilities
- Google account with write and read permissions for Sheets and Drive integration
- Telegram bot token or channel ID for sending notifications and alerts
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 (54)
Webhook
Webhook
Gmail
Gmail
Gmail Trigger
Gmail
Limit
Limit
Get Message
Gmail
Sticky Note
Sticky Note
Parse Document with LlamaParse
HTTP Request
Summarize Email
LLM Chain
gpt-4o-mini
OpenAI
Save LlamaParse ID and Summary to Google Sheets
Google Sheets
Save Document to Google Drive
Google Drive
Extract Invoice Details as JSON
LLM Chain
gpt-4o-mini1
OpenAI
gpt-4o-mini2
OpenAI
Update Google Sheet by LlamaParse ID
Google Sheets
Invoice Details
Set
Prepare Message
Set
Send Invoice Details as Telegram Message
Set
gpt-4o-mini3
OpenAI
Send Error Message 2
Set
Send Error Message 1
Set
Send Document Summary as Telegram Message
Set
Summarize Document
LLM Chain
Classify Parsed Document
If
Get Parsed Markdown
Set
Prepare Data
Set
HTTP Request
HTTP Request
Is there an Email Attachement
If
Aggregate
Aggregate
Edit Fields
Set
Merge Email Processing
Merge
Merge
Merge
If Supported File Extensions
If
No Operation, do nothing
No Op
No Operation, do nothing1
No Op
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note9
Sticky Note
Sticky Note8
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note10
Sticky Note
Sticky Note11
Sticky Note
Sticky Note12
Sticky Note
Sticky Note13
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note
Sticky Note17
Sticky Note
Save Summarized Document to Google Drive
Google Drive
Save Parsed Document to Google Drive
Google Drive