Templates / AI-Powered Invoice Processing Automation with Mistral OCR & GPT-5.2

AI-Powered Invoice Processing Automation with Mistral OCR & GPT-5.2

Needs changes

by Badr ✓ · 1,096 views · created 2025-05-23 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

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

  1. Google Drive: uses Google Drive
  2. Convert invoice File to Base (Extract from File): extracts data from a file
  3. Mistral OCR API: Extract Text (HTTP Request): calls an HTTP API
  4. Data Splitter: OCR Pages (Split Out): splits a list into separate items
  5. Field Extractor: Page Markdown (Edit Fields (Set)): sets or maps fields
  6. Data Aggregator: Combine Pages (Summarize): summarizes / groups the items
  7. AI Agent: runs an AI agent, with model: AI Engine: GPT-5.
  8. JSON Parser: Invoice Structure (Structured Output Parser): uses Structured Output Parser

Services it uses

Google DriveOpenAI Chat Model

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.0Replace 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)

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,…

Excerpt from Badr'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.