Automate Bank Statement and Invoice Reconciliation with GPT-4.1-mini and Google Sheets
๐ข Manual Trigger
Workflow starts manually to initiate the reconciliation process on demand.
๐ Fetch Invoices & Bank Statements
Retrieves invoice data and bank statement data from Google Sheets for comparison.
๐ Merge Data
Combines both datasets into a single structured dataset for processing.
๐งฉ Format Payload for AI
Function node prepares and structures the merged data into a clean JSON payload for AI analysis.
๐ค AI Reconciliation
AI Agent analyzes the invoice and bank statement data to identify matches, discrepancies, and reconciled entries.
๐งฎ Parse AI Output
Parses the AI response into a structured format suitable for adding back to Google Sheets.
๐ Update Sheets
Adds the reconciled data and reconciliation results into the target Google Sheet for recordkeeping.
๐งพ Prerequisites
โ OpenAI API Credentials Required for the AI Reconciliation node to process and match transactions.
Add your OpenAI API key in n8n โ Credentials โ OpenAI.
โ Google Sheets Credentials Needed to read invoice and bank statement data and to write reconciled results. Add credentials in n8n โ Credentials โ Google Sheets.
โ Google Sheets Setup The connected spreadsheet must contain the following tabs: Invoices โ for invoice data Bank_Statement โ for bank transaction data Reconciled_Data โ for storing the AI-processed reconciliation output
โ Tab Structure & Required Headers
Invoices Sheet Columns: Invoice_ID Invoice_Date Customer_Name Amount Status
Bank_Statement Sheet Columns: Transaction_ID Transaction_Date Description Debit/Credit Amount
Reconciled_Data Sheet Columns: Invoice_ID Transaction_ID Matched_Status Remarks Confidence_Score
โ๏ธ n8n Environment Setup
Ensure all nodes are connected correctly and the workflow has permission to access the required sheets.
Test each fetch and write operation before running the full workflow.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
๐ค Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments