Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Invoice Upload”). Along the way it connects OpenAI Chat Model and Google Sheets. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Invoice Upload”).
- Split Files (Code): runs custom JavaScript code
- Loop (Loop Over Items (Split in Batches)): loops over the items in batches
- Prepare OCR Request (Code): runs custom JavaScript code
- Mistral OCR (HTTP Request): calls api.mistral.ai (POST)
- Format OCR Text (Code): runs custom JavaScript code
- Extract Invoice Fields (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Model
- Validate & Score (Code): runs custom JavaScript code
- Save to Sheets (Google Sheets): append
- Rate Limit (Wait): waits 1 seconds
Services it uses
HTTP calls to: api.mistral.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait
From the author
Process multiple invoices automatically using Mistral's dedicated OCR model—at approximately $0.002 per page. Upload batches of PDF, PNG, or JPG invoices through a simple form, extract structured financial data with AI, validate results with confidence…