Templates / Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing

Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing

Ready for 3.0

by Antonio Gasso ✓ · 235 views · created 2025-12-12 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”).

  1. Split Files (Code): runs custom JavaScript code
  2. Loop (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Prepare OCR Request (Code): runs custom JavaScript code
  4. Mistral OCR (HTTP Request): calls api.mistral.ai (POST)
  5. Format OCR Text (Code): runs custom JavaScript code
  6. Extract Invoice Fields (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Model
  7. Validate & Score (Code): runs custom JavaScript code
  8. Save to Sheets (Google Sheets): append
  9. Rate Limit (Wait): waits 1 seconds

Services it uses

OpenAI Chat ModelGoogle Sheets

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)

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…

Excerpt from Antonio Gasso's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.