Bank Statement Analysis Agent
Automated OCR Extraction & Credit Analysis within Salesforce Agentforce
In retail banking and lending, credit decisions depend on accurate income assessment from bank statements. Credit officers currently spend 2–4 hours per application manually extracting transactions, computing income metrics, and identifying fraud signals — creating bottlenecks, inconsistency, and avoidable credit risk.
Statements arrive in multiple formats — PDFs (digital and scanned), Excel files, CSV exports, and image scans — each requiring different tools and expertise to process reliably. Manual extraction misses transactions, misclassifies income sources, and fails to detect fraud indicators.
The Bank Statement Analysis Agent is an Agentic AI system built on Salesforce Agentforce that automatically accepts bank statements in any format, performs OCR extraction, runs a 24-point fraud checklist, computes all credit metrics, and delivers a complete underwriting decision package to the credit officer — in seconds, not hours.
Instead of officers manually extracting and analysing data, the agent takes full responsibility for extraction accuracy, income verification, and credit signal generation — automatically.
See It In Action
Watch how the Bank Statement Analysis Agent automatically accepts bank statements in any format, performs OCR extraction, runs a 24-point fraud checklist, computes FOIR / ABB / DSCR, and delivers a GREEN / AMBER / RED credit signal — directly within Salesforce Agentforce.
Bank Statement Analysis Agent
Why is a Bank Statement Analysis Agent Required?
Today's credit teams face a critical gap between statement submission and credit decision:
This leads to delayed credit decisions, increased credit risk, and reduced operational efficiency.
The Bank Statement Analysis Agent solves this by automatically processing statements in any format, extracting all transactions, computing income and obligation metrics, and delivering a complete credit signal — without any manual effort from the credit officer.
Business Challenges
Retail lending and credit teams commonly face challenges such as:
What the Agent Does
The Bank Statement Analysis Agent acts as an intelligent credit analyst that automatically accepts bank statements in any format, extracts all transactions, and computes a complete set of credit metrics — within Salesforce Agentforce.
Instead of credit officers manually processing statements, the agent automatically:
This enables credit officers to focus on credit decisions rather than data extraction.
Technical Solution Overview
The Bank Statement Analysis Agent is an Agentic solution built on Agentforce. The Agentforce orchestration layer autonomously runs end-to-end — detecting format, extracting transactions, running fraud checks, computing credit metrics, and deciding what credit signal to surface to the officer, without waiting to be asked.
Each capability is delivered through Salesforce technologies as follows:
Phase 1: OCR Extraction
Agentforce Phase 1 prompt processes the uploaded statement. For digital PDFs and structured files, content is parsed directly by the Apex pre-processor. For scanned PDFs and image files, OCR via Vision API extracts raw text. All transactions are extracted, classified, and stored in custom Salesforce objects (BS_Transaction__c, BS_Monthly_Analysis__c).
Phase 2: Credit Analysis
Agentforce Phase 2 prompt runs credit computations on extracted transaction data. FOIR, ABB, and DSCR are calculated by Apex services. The 24-point fraud checklist runs systematically. Income normalisation identifies salary credits and computes median income. The GREEN / AMBER / RED signal is generated by the Agentforce orchestration layer based on all computed metrics.
Format Detection & Pre-Processing
Apex file handler inspects the uploaded document, detects format (PDF digital, PDF scanned, Excel, CSV, PNG/JPEG), and routes it to the appropriate extraction pipeline. Format normalisation ensures a consistent transaction schema regardless of input type.
Credit Officer Workbench
A Lightning Web Component dashboard surfaces all extracted metrics, fraud flags, income assessment, and the executive summary to the credit officer. The officer reviews, approves, declines, or refers the case — all within Salesforce, with a complete audit trail.
Architecture Principle: Deterministic Apex guarantees accuracy and auditability for financial figures; the Agentforce prompt pipeline handles OCR extraction and language summarisation; the Agentforce orchestration layer makes the system truly agentic — running end-to-end and delivering the credit signal without waiting to be asked.
Key Features
Multi-Format Statement Acceptance
Accepts bank statements in any of 5 formats: PDF (digital), PDF (scanned image), Excel .xlsx, CSV, and PNG / JPEG image files. Automatically detects the input format and routes to the appropriate extraction pipeline — no manual pre-processing required.
Benefits
Phase 1: Automated OCR & Transaction Extraction
Agentforce Phase 1 extracts every transaction from the statement with full metadata: date, narration, amount (debit/credit), running balance, and payment mode (UPI/NEFT/NACH/RTGS/IMPS/Cash). Account metadata is parsed and stored. Balance continuity is verified automatically across all pages.
Benefits
Phase 2: Credit Metric Computation
Agentforce Phase 2 automatically computes all credit underwriting metrics:
Benefits
24-Point Fraud Checklist
The agent runs a systematic 24-point fraud detection checklist across all extracted transactions, covering:
Benefits
GREEN / AMBER / RED Credit Signal
The agent generates a composite credit signal from all computed metrics and fraud indicators:
The recommended action (PROCEED / PROCEED WITH CONDITIONS / REFER TO CREDIT / DECLINE) and an executive summary for the credit officer are generated automatically.
Benefits
Salesforce-Native Credit Officer Workbench
A Lightning Web Component workbench within Salesforce surfaces all extracted data, computed metrics, fraud flags, income assessment, and the executive summary to the credit officer. The entire workflow — upload, analysis, review, and credit action — operates within Salesforce with a complete audit trail.
Benefits
Scalable Processing Architecture
Multiple statements can be queued and processed in parallel. Custom Salesforce objects store all extracted data in a structured, queryable format — enabling reporting, dashboards, and downstream integration with credit decision systems and Agent CAM.
Benefits
End-to-End Process Flow
From statement upload to credit decision — fully within Salesforce:
1. Lead Created
Credit officer creates a Lead record and uploads the bank statement in any of 5 accepted formats (PDF digital, PDF scanned, Excel, CSV, PNG/JPEG).
2. Lead → Deal Conversion
Lead is converted to a Deal record. Bank statement is linked to the Deal and queued for processing.
3. Statement Selection
Credit officer selects the statement on the Deal record. Can upload a fresh statement or reuse a previously processed one.
4. Agent: Phase 1 — OCR Extraction
Agentforce Phase 1 runs automatically: format detected, all transactions extracted, account metadata parsed, balance continuity verified, OCR quality flags set.
5. Agent: Phase 2 — Credit Analysis
Agentforce Phase 2 computes FOIR, ABB, DSCR, runs income normalisation, detects salary credits and EMI obligations, executes the 24-point fraud checklist.
6. Analysis Surfaced on UI
Structured results appear on the Lightning credit workbench. Credit officer reviews metrics, fraud flags, income assessment, and the GREEN / AMBER / RED credit signal.
7. Credit Action Recorded
Officer approves, declines, or refers the case to the credit committee. Action is recorded in Salesforce with a complete audit trail. All data is stored in custom objects for downstream use by Agent CAM.
All results are stored in Salesforce custom objects. Audit trail maintained end-to-end.
Risks, Mitigations & Key Differentiators
Key Risks & Mitigations:
OCR Accuracy on Scanned Statements
Token Limits for Large Statements
Excel / CSV Format Variations Across Banks
Demo Data Privacy (PII)
Why This Matters — Key Differentiators:
100% Salesforce-Native
No external systems required. The entire workflow — statement upload, OCR extraction, credit analysis, and workbench — operates within Salesforce Agentforce. No data leaves the Salesforce environment.
Auditable Every Step
Every credit metric is traceable to the exact source transaction used in its computation. The complete audit trail is maintained in Salesforce custom objects, enabling credit committee review and regulatory compliance.
Indian Lending Native
IST timezone handling, Lakhs/Crores number format, NACH/ECS/UPI/NEFT/RTGS narration parsing — all handled natively. Built specifically for the Indian retail lending context.
Agentic CAM Generation
The Bank Statement Analysis Agent feeds directly into Agent CAM, which synthesises BSA output alongside CIBIL, ITR, KYC, and property data into a publish-ready Credit Assessment Memo — within 15 minutes of triggering, replacing 3–8 hours of manual preparation.
