AI-Powered Invoice Processing Automation with Mistral OCR & GPT-5.2
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs on Google Drive events. Along the way it connects Google Drive and OpenAI Chat Model.
How it runs
Trigger: On Google Drive events.
- Google Drive: uses Google Drive
- Convert invoice File to Base (Extract from File): extracts data from a file
- Mistral OCR API: Extract Text (HTTP Request): calls an HTTP API
- Data Splitter: OCR Pages (Split Out): splits a list into separate items
- Field Extractor: Page Markdown (Edit Fields (Set)): sets or maps fields
- Data Aggregator: Combine Pages (Summarize): summarizes / groups the items
- AI Agent: runs an AI agent, with model: AI Engine: GPT-5.
- JSON Parser: Invoice Structure (Structured Output Parser): uses Structured Output Parser
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent: Structure Invoice Data (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent: Structure Invoice Data (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Summarize
n8n-nodes-base.summarize - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Extract from File
n8n-nodes-base.extractFromFile - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
🚀 Automate Invoice Processing with an End-to-End AI Workflow Powered by GPT-5.2 Transform your invoice management with a fully automated, AI-driven invoice processing workflow built on n8n, combining Mistral AI OCR and OpenAI GPT-5.2 for unmatched accuracy,…