Skip to main content

AI-Process Bank Statement using n8n action

PDF4me AI-Process Bank Statement extracts structured data from bank statements using AI-powered machine learning through n8n automation workflows. Process bank statement PDFs or images via n8n triggers, binary data, base64 strings, or public URLs to automatically extract account information, transaction details, balances, fees, interest, recurring payment patterns, unusual transactions, spending analytics, and comprehensive financial insights with high accuracy and intelligent field recognition. This solution is ideal for bank statement processing automation, financial statement digitization, transaction analysis, bank reconciliation, cash flow management, spending analytics, automated accounting, and financial data extraction workflows that require AI-powered extraction with structured output and seamless integration.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Setup​

Add the PDF4me "AI-Process Bank Statement" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "AI-Process Bank Statement" action
  3. Configure input parameters (see below)
AI-Process Bank Statement

Parameters​

Complete list of parameters for the AI-Process Bank Statement action. Configure these parameters to control bank statement processing.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterRequiredWhat it doesExample
Input Data TypeRequiredChoose how to provide the bank statement document to process. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the bank statement file (usually "data" for file uploads). Shown when Input Data Type is Binary Data. Default is `data`.data
Base64 Document ContentConditionalBase64 encoded bank statement document content. Shown when Input Data Type is Base64 String.
Document URLConditionalURL to the bank statement document file to process. Shown when Input Data Type is URL.
Document NameRequiredName of the bank statement document file for reference. Default is `bank_statement.pdf`.bank_statement.pdf
Bank NameOptionalOptional bank name for improved parsing accuracy.Chase Bank
Analyze PatternsOptionalWhether to analyze transaction patterns. Default is `Yes`.Yes
Custom Field KeysOptionalComma-separated list of custom field keys to extract (e.g., "field1,field2,field3").["customField1", "customField2"]
Advanced OptionsOptionalOptional settings, collapsed behind Add Option.Add Option
Custom ProfilesOptionalUse 'JSON' to adjust custom properties. Review Profiles at https://developer.pdf4me.com/api/profiles/index.html to set extra options for API calls.

Output​

Output Parameters​

FieldTypeWhat it contains
_metadataStringObject added by the node: success (always true), message (`Bank statement processed successfully`), processingTimestamp (time the node received the result, ISO 8601), sourceFileName (the input file's name for Binary Data, the last part of the URL for URL, and Document Name for Base64) and operation (`processBankStatement`).

All fields of the PDF4me response are copied into the item: the statement details read by AI, such as account details, statement period, balances, transactions, checks paid, transaction patterns, a summary and the values of the custom fields. If PDF4me returns a plain value instead of an object, it is put in a result field. The exact fields depend on the PDF4me response.

All fields of PDF4me's response are copied into the item: the statement details read by AI, such as account details, statement period, balances, transactions, checks paid, transaction patterns, a summary and the values of the custom fields. If PDF4me returns a plain value instead of an object, it is put in a result field. The exact fields depend on PDF4me's response.

N8N Action Response​

The PDF4me AI-Process Bank Statement API returns a JSON response with the following structure:

{
"bankName": "Chase Bank",
"accountHolderName": "John Michael Smith",
"accountNumber": "1234567890",
"accountType": "Checking",
"branch": "New York Main Branch",
"statementNumber": "STMT-2024-001",
"statementPeriod": {
"startDate": "2024-01-01",
"endDate": "2024-01-31"
},
"balances": {
"openingBalance": 5000.00,
"closingBalance": 6750.00,
"totalDeposits": 3500.00,
"totalWithdrawals": 1750.00
},
"currency": "USD",
"fees": 5.00,
"interest": 2.50,
"transactions": [
{
"transactionDate": "2024-01-05",
"description": "Direct Deposit - Salary",
"amount": 3500.00,
"type": "credit",
"balance": 8500.00,
"category": "Income",
"merchant": "Employer Corp",
"referenceNumber": "REF123456"
}
],
"checksPaid": [
{
"checkNumber": "1234",
"paidDate": "2024-01-12",
"amount": 500.00,
"payee": "ABC Corporation",
"description": "Invoice Payment"
}
],
"patterns": {
"recurringPayments": [
{
"merchant": "Electric Company",
"amount": 250.00,
"frequency": "Monthly",
"recurringDates": ["2024-01-10", "2024-02-10", "2024-03-10"]
}
],
"unusualTransactions": []
},
"summary": {
"totalTransactions": 3,
"categorySummary": {
"Income": {
"count": 1,
"totalAmount": 3500.00,
"averageAmount": 3500.00,
"percentage": 66.67
}
},
"averageDailyBalance": 6750.00,
"largestCredit": {
"largestTransactionDate": "2024-01-05",
"amount": 3500.00,
"description": "Direct Deposit - Salary"
},
"largestDebit": {
"largestTransactionDate": "2024-01-12",
"amount": 500.00,
"description": "Check Payment - ABC Corporation"
}
},
"fallbackUsed": false,
"warnings": [],
"jobId": "12345678-1234-1234-1234-123456789012",
"jobIdExt": "STMT-2024-001",
"success": true,
"message": "Bank statement data extracted successfully using AI technology"
}

Use Cases​

Enterprise Financial Automation​

  • Bank Reconciliation: Automate bank reconciliation using extracted statement transactions
  • Financial Reporting: Generate financial reports from extracted statement and transaction data
  • Cash Flow Management: Monitor and analyze cash flows using extracted balance and transaction information
  • Transaction Analysis: Analyze transaction patterns and trends from extracted statement data

AI-Powered Document Processing​

  • Multi-Format Support: Process PDF, PNG, JPG, and JPEG bank statement formats
  • Multi-Language Processing: Extract data from bank statements in various languages
  • Intelligent Field Recognition: Automatically identify and extract relevant statement fields

Business Intelligence and Analytics​

  • Spending Analytics: Analyze spending patterns from extracted transaction and category data
  • Financial Dashboards: Build financial dashboards using extracted statement data
  • Performance Metrics: Track processing accuracy and efficiency

Get Help​