Skip to main content

Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4

Workflow preview

Workflow preview
100%
Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4 preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Cash Reconciliation with AI This template automates daily cash reconciliation by comparing your open invoices against bank statement transactions. Instead of manually scanning statements line by li...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.mistralai, n8n-nodes-base.microsoftonedrive, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote, n8n-nodes-base.microsoftexcel

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4
Workflow name
Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4

Cash Reconciliation with AI

This template automates daily cash reconciliation by comparing your open invoices against bank statement transactions. Instead of manually scanning statements line by line, the workflow uses AI to:

  1. Match transactions to invoices and assign confidence scores
  2. Flag unapplied or review-needed payments
  3. Produce a reconciliation table with clear metrics (match %, unmatched count, etc.)

The end result: faster cash application, fewer errors, and better visibility into your cash flow.

Good to know

  1. Each AI transaction match call will consume credits from your OpenAI account. Check OpenAI pricing for costs.
  2. OCR is used to extract data from PDF bank statements, so you’ll need a Mistral OCR API key.
  3. This workflow assumes invoices are stored in an Excel or CSV file. You may need to tweak column names to match your file headers.

How it works

  1. Import files:The workflow pulls your invoice file (Excel/CSV) and daily bank statement (from OneDrive, Google Drive, or local storage).
  2. Extract and normalize data: OCR is applied to bank statements if needed. Both data sources are cleaned and aligned into comparable formats.
  3. AI matching: The AI agent compares statement transactions against invoice records, assigns a confidence score, and flags items that require manual review.
  4. Reconciliation output:A ready-made table shows matched invoices (with amounts and confidence), unmatched items, and summary stats.

How to use

  1. Start with the manual trigger node to test the flow. Once validated, replace it with a schedule trigger to run daily.
  2. Adjust thresholds (like date tolerances or amount variances) in the code nodes to fit your business rules.
  3. Review the reconciliation table each day most of the work is automated, you just handle exceptions.

Requirements

  1. OpenAI API key
  2. Mistral OCR API key (for PDF bank statements)
  3. Microsoft OneDrive API key and Microsoft Excel API key
  4. Access to your invoice file (Excel/CSV) and daily bank statement source

Setup steps

Connect accounts: Enter your API keys (OpenAI, Mistral OCR, OneDrive, Excel).

Configure input nodes:

  1. Point the Excel/CSV node to your invoice file.
  2. Connect the Get Bank Statement node to your statement storage.

Configure AI agent: Add your OpenAI API credentials to the AI node.

Customize if needed

  1. Update column mappings if your file uses different headers.
  2. Adjust matching thresholds and tolerance logic.

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 - When clicking ‘Execute workflow’

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

Block 2 - Extract text

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

Block 3 - Get Bank Statement

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

Block 4 - Code in JavaScript

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

Block 5 - OpenAI Chat Model1

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

Block 6 - Get Transaction, Matches, Summary

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

Block 7 - Extract the Data from Unstructured File

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

Block 8 - Process the Invoice Vs Bank Statement Data

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Get Invoice Data

Type / Role
n8n-nodes-base.microsoftExcel - microsoftExcel
Config choices
Version 2.1

Block 15 - Sticky Note5

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

3. Summary Table

Workflow Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4
Complexity advanced
Nodes 15
Categories Invoice Processing, AI Summarization
Author Vinay Gangidi
Published 25 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8936/8936.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 Automate invoice-bank statement reconciliation with Mistral AI and OpenAI GPT-4 do?

Cash Reconciliation with AI This template automates daily cash reconciliation by comparing your open invoices against bank statement transactions. Instead of manually scanning statements line by li...

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.