AI research agents to automate PDF analysis with Mistral’s best-in-class OCR
Needs changesWhat 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).
- Mistral Upload (HTTP Request): calls an HTTP API
- Document Understanding (HTTP Request): calls an HTTP API
- Mistral Signed URL (HTTP Request): calls an HTTP API
- qa_answer (Edit Fields (Set)): sets or maps fields
- Research Leader 🔬 (AI Agent): runs an AI agent, with model: o3-mini; 1 tool (Mistral_PDF)
- Project Planner (AI Agent): runs an AI agent, with model: gpt4o; 1 tool (Mistral_PDF); output parser: Structured Output Parser
- Delegate to Research Assistants (Split Out): splits a list into separate items
- Merge: merges the data from its input branches
- Research Assistant (AI Agent): runs an AI agent, with model: o3-mini; 1 tool (Mistral_PDF)
- Final article text (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
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 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.0 | Replace 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)
- Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Split Out
n8n-nodes-base.splitOut - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - n8n Form Trigger
n8n-nodes-base.formTrigger - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Edit Fields (Set)
n8n-nodes-base.set
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…