Build a Loan Prequalification Agent with Document AI

Build a loan prequalification Employee Agent with Data 360 Document AI. This agentic setup automatically extracts complex bank statement data to provide an easily understandable output, boosting employee productivity.

Watch a demo on how to use Document AI to ingest a PDF into an employee agent.

Build a Loan Prequalification Employee Agent with Document AI

Simple Prompt-Driven AI Agent 

For bank employees, processing a constant stream of heavy customer documentation is often a grueling, manual hurdle. Repetitively going through complex records for every individual customer consumes valuable time and increases the risk of error. By leveraging Document AI, you can transform these manual workflows into automated tasks. Using natural language processing to handle repetitive extraction and analysis, your team can move past the paperwork and focus on high-value banking, letting the technology handle the heavy lifting for every customer.

The loan prequalification agent is set up to:

  • Use Data 360 Document AI for data extraction
  • Analyze bank statements attached to contact records in Salesforce
  • Use AI prompts for financial analysis without complex code
  • Provide loan recommendations through a chat interface

How Does It Work? 

1┌─────────────────────────────────────┐
2│  STEP 1: Employee Provides Email    │
3│  - Types customer email in chat     │
4└─────────────────┬───────────────────┘
5
6
7┌─────────────────────────────────────┐
8│  STEP 2: Find Contact & File        │
9│  - Flow finds Contact by email      │
10│  - Gets ContentDocumentId           │
11└─────────────────┬───────────────────┘
12
13
14┌─────────────────────────────────────┐
15│  STEP 3: Extract Data (Apex)        │
16│  - Authenticate via OAuth           │
17│  - Call Data 360 Document AI        │
18│  - Generate schema                  │
19│  - Extract structured data          │
20│  - Return clean JSON                │
21└─────────────────┬───────────────────┘
22
23
24┌─────────────────────────────────────┐
25│  STEP 4: Analyze (AI Prompt)        │
26│  - Calculate income from JSON       │
27│  - Detect EMIs and debts            │
28│  - Calculate DTI ratio              │
29│  - Assess risk factors              │
30│  - Generate loan recommendation     │
31└─────────────────┬───────────────────┘
32
33
34┌─────────────────────────────────────┐
35│  STEP 5: Display Results            │
36│  - Show analysis in chat            │
37│  - Allow employee to override       │
38└─────────────────────────────────────┘

What Permissions Are Needed? 

User Permissions Needed
To create a loan prequalification agent:System Administrator

Next Steps