Skip to main content

Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing

Workflow preview

Workflow preview
100%
Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Process multiple invoices automatically using Mistral's dedicated OCR model—at approximately $0.002 per page. Upload batches of PDF, PNG, or JPG invoices through a simple form, extract structured f...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.informationextractor, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing
Workflow name
Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing

Process multiple invoices automatically using Mistral's dedicated OCR model—at approximately $0.002 per page. Upload batches of PDF, PNG, or JPG invoices through a simple form, extract structured financial data with AI, validate results with confidence scoring, and save everything to Google Sheets.

What this workflow does

  1. Accepts multiple invoice uploads via n8n Form Trigger
  2. Processes files in batch with rate limiting
  3. Converts each file to base64 and sends to Mistral OCR API
  4. Extracts 9 standard fields using GPT-4o-mini Information Extractor
  5. Validates data and assigns confidence scores (high/medium/low)
  6. Saves all results to Google Sheets with status tracking

Fields extracted

Invoice Number, Date, Vendor Name, Tax ID, Subtotal, Tax Rate, Tax Amount, Total Amount, Currency

Use cases

  • Accountants processing client invoices in bulk
  • Small businesses digitizing paper receipts
  • Bookkeepers automating repetitive data entry
  • Finance teams building searchable invoice databases

Setup requirements

  • Mistral API Key (console.mistral.ai) — HTTP Header Auth credential
  • OpenAI API Key (platform.openai.com)
  • Google Sheets OAuth connection
  • Google Sheet with 15 columns (template in workflow notes)

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 - Main Overview

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

Block 2 - Warning - Credentials

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

Block 3 - Section 1

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

Block 4 - Section 2

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

Block 5 - Section 3

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

Block 6 - Section 4

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

Block 7 - Invoice Upload Form

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

Block 8 - Split Files

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

Block 9 - Loop

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 10 - Prepare OCR Request

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

Block 11 - Mistral OCR

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

Block 12 - Format OCR Text

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

Block 13 - OpenAI Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Extract Invoice Fields

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

Block 15 - Validate & Score

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

Block 16 - Save to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 17 - Rate Limit

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

Workflow Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing
Complexity advanced
Nodes 17
Categories Invoice Processing, AI Summarization
Author Antonio Gasso
Published 12 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11755/11755.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 Mistral OCR, GPT-4o-mini, and Google Sheets integration for enhanced data processing do?

Process multiple invoices automatically using Mistral's dedicated OCR model—at approximately $0.002 per page. Upload batches of PDF, PNG, or JPG invoices through a simple form, extract structured f...

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 Invoice Processing, AI Summarization use case.