AutomationFlowsAI & RAG › 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

ByDerek Cheung @derekcheungsa on n8n.io

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…

Event trigger★★★★★ complexityAI-powered30 nodesAgentChain LlmGmailExecute Workflow TriggerHTTP RequestTool WorkflowOutput Parser StructuredForm Trigger
AI & RAG Trigger: Event Nodes: 30 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #3223 — we link there as the canonical source.

This workflow follows the Agent → Chainllm recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "5534b84d-9aaa-497d-a750-d754136a49ed",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f5ff24f2-d33d-4f40-aeef-3b96ae01a332",
      "name": "Merge chapters title and text",
      "type": "n8n-nodes-base.merge",
      "position": [
        3300,
        220
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "e23171cf-df8e-4934-98da-1f3f852df00d",
      "name": "Final article text",
      "type": "n8n-nodes-base.code",
      "position": [
        3580,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1f4da7b2-cd54-4832-8a00-305062476895",
      "name": "Research Leader \ud83d\udd2c",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "maxTries": 5,
      "position": [
        1800,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "6ee8d982-0bd5-4f78-8c7d-43c49719dfe3",
      "name": "Delegate to Research Assistants",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2640,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bdb1f428-6dba-456e-a95a-c1b9edc637fa",
      "name": "Research Assistant",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2880,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
      "name": "Project Planner",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "maxTries": 4,
      "position": [
        2260,
        220
      ],
      "parameters": {},
      "executeOnce": false,
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "9fd8d93d-c8d8-49bc-9295-e520c8a0203e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f965021-7fa1-4346-bd41-6b8d49b5da01",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2200,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "38c412e3-cad2-4506-a367-af01caf1044d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2800,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8c8f25e3-783d-495d-848d-7451f5d6ea4e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3500,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9ba80d7-2da9-4d5d-9fe0-c8b01c3a2912",
      "name": "Title1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        4040,
        220
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "be0d7be3-2440-441f-a3f3-4279b4e98182",
      "name": "Gmail1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4380,
        220
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "3e23f7a4-6bcf-4d5a-ac6b-c80cb9e2e21b",
      "name": "Editor",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3740,
        220
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "705c4381-c0c8-483b-9929-b866fd37b781",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "53fe764c-9ee5-4433-87e5-25af3a4c3467",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1560,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b165c30a-705e-404b-802c-c398ce7baeb1",
      "name": "Document Understanding",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "510c5f9d-a4c4-4ea8-b530-9f98658125da",
      "name": "Mistral Upload",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5bf136e2-d6c9-4797-9d26-be13f3441ff8",
      "name": "Mistral Signed URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1520,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "183ebf04-5377-42d2-aa06-ac2db58adf3e",
      "name": "Mistral_PDF",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1920,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "df168b7a-256e-4305-af26-84b30ee0e2a2",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2440,
        420
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "63ad422e-dde7-4422-b7c9-e3ab9949ffc5",
      "name": "Mistral_PDF1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2600,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b8c8cff2-5638-4c9d-96d5-a97d0e36acfc",
      "name": "Mistral_PDF2",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3100,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6fa7b7ae-f359-4134-bba7-7adcf54a4075",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1000,
        220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b03e2a8c-c39d-4c8f-b824-4d749e1c76fe",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b568bae9-9263-42f4-bfd4-6df284c1d900",
      "name": "o3-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1800,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3b851991-976c-4903-9a14-93dfed404a62",
      "name": "o3-mini-3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        3820,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "39f879ec-ab0b-43e4-89af-f055a78a4b2a",
      "name": "o3-mini1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2920,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3186cfb3-8eb6-4993-bb98-69a5dce21832",
      "name": "gpt4o",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2260,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d091d288-40f0-4292-a936-29d492c2e341",
      "name": "qa_answer",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        660
      ],
      "parameters": {},
      "typeVersion": 3.4
    }
  ],
  "connections": {
    "gpt4o": {
      "ai_languageModel": [
        [
          {
            "node": "Project Planner",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Editor": {
      "main": [
        [
          {
            "node": "Title1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Title1": {
      "main": [
        [
          {
            "node": "Gmail1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "o3-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Research Leader \ud83d\udd2c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "o3-mini1": {
      "ai_languageModel": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "o3-mini-3": {
      "ai_languageModel": [
        [
          {
            "node": "Editor",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Title1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral_PDF": {
      "ai_tool": [
        [
          {
            "node": "Research Leader \ud83d\udd2c",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Mistral_PDF1": {
      "ai_tool": [
        [
          {
            "node": "Project Planner",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Mistral_PDF2": {
      "ai_tool": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Upload": {
      "main": [
        [
          {
            "node": "Mistral Signed URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Project Planner": {
      "main": [
        [
          {
            "node": "Delegate to Research Assistants",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Final article text": {
      "main": [
        [
          {
            "node": "Editor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Signed URL": {
      "main": [
        [
          {
            "node": "Research Leader \ud83d\udd2c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Mistral Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Assistant": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Leader \ud83d\udd2c": {
      "main": [
        [
          {
            "node": "Project Planner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Document Understanding": {
      "main": [
        [
          {
            "node": "qa_answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Project Planner",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Merge chapters title and text": {
      "main": [
        [
          {
            "node": "Final article text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delegate to Research Assistants": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 1
          },
          {
            "node": "Research Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Document Understanding",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

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…

Source: https://n8n.io/workflows/3223/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

The AI-Powered Shopify SEO Content Automation is an enterprise-grade workflow that transforms product content creation for e-commerce stores. This sophisticated multi-agent system integrates GPT-4o, C

Perplexity Tool, Memory Buffer Window, Agent +15
AI & RAG

How it Works

Memory Buffer Window, Agent, Output Parser Structured +9
AI & RAG

Deep Research new (fr). Uses outputParserStructured, formTrigger, chainLlm, form. Event-driven trigger; 82 nodes.

Output Parser Structured, Form Trigger, Chain Llm +8
AI & RAG

The best content automation template in the market is now even better—with “deep research” on time-sensitive topics\! Unlike most n8n content automation templates that are mainly for “demo purposes,”

OpenAI, HTTP Request, XML +11
AI & RAG

Typeform IA - YT. Uses typeformTrigger, agent, lmChatOpenAi, toolWorkflow. Event-driven trigger; 75 nodes.

Typeform Trigger, Agent, OpenAI Chat +7