AI Research Agents to Automate PDF Analysis with Mistral’s Best-in-Class OCR

Go to Workflow
3,513 views
Built by Derek Cheung Derek Cheung
Created on June 15, 2026

Description


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 text, charts, diagrams, and multiple languages.

This workflow uses Mistral's Document understanding OCR API to automatically turns dense PDFs (such as financial reports) into either deep research reports or concise newsletters

Key Features

Superior Document Understanding**: Processes complex documents with high-fidelity rendering
Multi-Format Support**: Handles PDFs containing text, images, charts, and diagrams
Multilingual Capabilities**: Accurately processes documents in various languages
Seamless API Integration**: Easy implementation through cloud-based API
Customizable Research Depth**: Generate comprehensive 8-page reports or concise 1,750-word newsletters

How It Works

Document Upload: Submit your PDF through an n8n form interface.

Output Format Selection: Choose between comprehensive deep research (3,500 words) or Concise newsletter (1,750 words)

Custom Instructions: Tailor the analysis by adding specific focus areas (e.g., quantitative data, growth catalysts).

AI Processing: The document undergoes multi-stage AI analysis: OCR and text extraction using Mistral AI and Content structuring and summarization using GPT models

Agents:
Research Leader: Plans and conducts initial research, creating a table of contents.
Project Planner: Breaks down the table of contents into manageable sections.
Research Assistants: Multiple agents that conduct in-depth research on assigned sections.
Editor: Compiles and refines the final article, ensuring coherence and proper citations.

Setup
API Key Acquisition:
Obtain an API key from OpenRouter.ai
Get an API key from Mistral.ai

n8n Configuration:
In your n8n instance, navigate to the credentials section.
Create new credentials for OpenRouter and Mistral, inputting the respective API keys.

Form Configuration:
Customize the input form fields if needed (e.g., adding company-specific options).

Output Customization: Adjust the word count parameters in the Project Planner node to change output length.

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured