End-to-end process breakdown
Create a new CDD case with customer information
User navigates to the home page and fills out the case creation form with customer details.
System loads the case management page with empty evidence section.
Collect evidence from websites/PDFs and perform automated risk analysis
User adds evidence sources (websites or PDF uploads) to the case.
User clicks "Gather Evidence" button to trigger automated evidence collection and chunking.
System automatically loads regulatory policy evidence (EU high-risk countries, FATF lists).
System automatically performs policy-anchored geographic risk assessment.
All gathered evidence items are stored in PostgreSQL for persistence and retrieval.
AI agent generates CDD draft v1 with inline citations
User clicks "Generate Draft v1" button after evidence gathering completes.
System loads Writer agent system and user prompts from external files.
System formats all evidence items (including geo assessment and policy evidence) into prompt context.
Evidence ID: web-abc123
Type: WEBSITE
Source: https://sandvik.com
Chunks:
- c-0: Sandvik is a high-tech engineering group with...
- c-1: The company operates in 160 countries...
- c-2: Products include mining equipment, cutting tools...
Evidence ID: geo-assessment-case-123
Type: GEO_RISK_ASSESSMENT
Source: Geographic Risk Assessment
Chunks:
- assessment-summary: Geographic risk assessment completed...
Evidence ID: fatf-black-list
Type: HIGH_RISK_COUNTRY_POLICY
Source: FATF Call for Action List
Chunks:
- country-1: Iran - FATF Black List...
- country-2: Myanmar - FATF Black List...
OpenAI GPT-4o processes the Writer system prompt and evidence context to generate CDD draft.
System parses the JSON response from OpenAI and extracts draft text and citations structure.
{
"paragraph_id": "p-7",
"section_id": "risk_geographic",
"citations": [
{"evidence_id": "web-abc123", "chunk_id": "c-5", "span_start": 0, "span_end": 50},
{"evidence_id": "fatf-black-list", "chunk_id": "country-1", "span_start": 120, "span_end": 170}
]
}
Draft and citations are stored in PostgreSQL for retrieval and versioning.
AI agent analyzes draft for compliance gaps and missing evidence
User reviews draft v1 and clicks "Critique" button to run quality assurance checks.
System loads Critic agent system and user prompts from external files.
OpenAI GPT-4o analyzes draft against 21 compliance rules and generates findings.
Findings are stored in PostgreSQL for review and correction tracking.
AI agent applies corrections and generates draft v2
User reviews findings and clicks "Update to v2" button to apply automated corrections.
System loads Updater agent system and user prompts from external files.
OpenAI GPT-4o applies corrections to draft, tracking all changes and documenting open questions.
Updated draft, delta log, and open questions are stored in PostgreSQL.
Compliance officer reviews final draft and exports for approval
Compliance officer reviews the updated draft with all corrections applied.
Officer reviews list of outstanding evidence requirements.
Officer clicks on citations in draft to verify source evidence.
Officer exports final draft to PDF/Word for submission to approval workflow.