Templates / AI research agents to automate PDF analysis with Mistral’s best-in-class OCR

AI research agents to automate PDF analysis with Mistral’s best-in-class OCR

Needs changes

by Derek Cheung ✓ · 4,990 views · created 2025-03-19 · Document Extraction, 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 23 nodes and runs when someone submits an n8n form (plus 1 other trigger). Along the way it connects Gmail and OpenRouter Chat Model.

How it runs

Trigger: When someone submits an n8n form (plus 1 other trigger).

  1. Mistral Upload (HTTP Request): calls an HTTP API
  2. Document Understanding (HTTP Request): calls an HTTP API
  3. Mistral Signed URL (HTTP Request): calls an HTTP API
  4. qa_answer (Edit Fields (Set)): sets or maps fields
  5. Research Leader 🔬 (AI Agent): runs an AI agent, with model: o3-mini; 1 tool (Mistral_PDF)
  6. Project Planner (AI Agent): runs an AI agent, with model: gpt4o; 1 tool (Mistral_PDF); output parser: Structured Output Parser
  7. Delegate to Research Assistants (Split Out): splits a list into separate items
  8. Merge: merges the data from its input branches
  9. Research Assistant (AI Agent): runs an AI agent, with model: o3-mini; 1 tool (Mistral_PDF)
  10. Final article text (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

GmailOpenRouter 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 Research Leader 🔬 (v1.6), Research Assistant (v1.6), Project Planner (v1.6)…: 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)
Research Leader 🔬 (v1.6), Research Assistant (v1.6), Project Planner (v1.6), Editor (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

Overview Mistral OCR is a cutting-edge document understanding API that improves how businesses extract and process information from complex documents. With top scores in benchmarks for accuracy and comprehension capabilities, Mistral OCR handles multi-column…

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