Skip to main content

Turn any PDF into a clean Google Doc with Mistral OCR

Workflow preview

Workflow preview
100%
Turn any PDF into a clean Google Doc with Mistral OCR preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Upload a PDF and instantly get a neatly formatted Google Doc with all the readable text—no manual copy paste, no messy line breaks. What this workflow does Accepts PDF uploads via a public form Sen...

Best for

  • Document Extraction automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.set, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Hunyao.

Original n8n.io source

1.1 Workflow description

Title
Turn any PDF into a clean Google Doc with Mistral OCR
Workflow name
Turn any PDF into a clean Google Doc with Mistral OCR

Upload a PDF and instantly get a neatly formatted Google Doc with all the readable text—no manual copy-paste, no messy line breaks.

What this workflow does

  • Accepts PDF uploads via a public form
  • Sends the file to Mistral Cloud for high-accuracy OCR
  • Detects and merges page images with their extracted text
  • Cleans headers, footers, broken lines, and noise
  • Creates a new Google Doc in your chosen Drive folder
  • Writes the polished markdown text into the document

What you need

  • Mistral Cloud API key with OCR access
  • Google Docs & Drive credentials connected in n8n
  • Drive folder ID for new documents
  • A PDF file to process (up to 100 MB)

Setup

  1. Import the workflow into n8n and activate credentials.
  2. In Trigger • Form Submission, copy the webhook URL and share it or embed it.
  3. In Create • Google Doc, replace the default folder ID with yours.
  4. Fill out Mistral API key under Mistral Cloud API credentials.
  5. Save and activate the workflow.
  6. Visit the form, upload a PDF, name your future doc, and submit.
  7. Open Drive to view your newly generated, clean Google Doc.

Example use cases

  • Convert annual reports into editable text for analysis.
  • Extract readable content from scan-only invoices for bookkeeping.
  • Turn magazine PDFs into draft blog posts.
  • Digitize lecture handouts for quick search and annotation.
  • Convert image-heavy landing pages / advertorials into editable text for AI to analyze structure and content.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Upload • PDF to Mistral

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Fetch • Signed URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - OCR • PDF via Mistral

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Extract • Image Placeholders

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - OCR • Inline Images

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Merge • OCR + Image Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 9 - Set • Rename Columns

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Aggregate • Image Text

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 11 - Merge • PDF & Images Markdown

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Enrich • Replace Placeholders

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Clean • Markdown Text

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 14 - Create • Google Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 15 - Insert • Clean Text into Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 16 - LLM Model • GPT-4.1-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 17 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Turn any PDF into a clean Google Doc with Mistral OCR
Complexity advanced
Nodes 17
Categories Document Extraction, Multimodal AI
Author Hunyao
Published 03 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6937/6937.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Turn any PDF into a clean Google Doc with Mistral OCR do?

Upload a PDF and instantly get a neatly formatted Google Doc with all the readable text—no manual copy paste, no messy line breaks. What this workflow does Accepts PDF uploads via a public form Sen...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, Multimodal AI use case.