🔄 CDD Workflow

End-to-end process breakdown

🎯 Workflow Overview The CDD Builder uses a multi-agent architecture with specialized AI agents (Writer, Critic, Updater) working in sequence to produce compliance-grade Customer Due Diligence reports. The system automatically gathers evidence, assesses geographic and AML risks, generates drafts with citations, critiques for compliance gaps, and applies corrections.

Technology Stack

Frontend

  • Vanilla JavaScript (ES6+)
  • HTML5 / CSS3
  • Responsive design (mobile-first)
  • No framework dependencies

Node.js API

  • TypeScript 5.x
  • Express.js server
  • OpenAI GPT-4o integration
  • PostgreSQL client (pg)
  • Multer file uploads

Python API

  • Python 3.11+
  • Flask web framework
  • PyMuPDF (PDF extraction)
  • BeautifulSoup (web scraping)
  • Custom CDD modules (8 new)

Database

  • PostgreSQL 16
  • Tables: cases, evidence_sources
  • JSON columns for citations, findings
  • Migrations system

Infrastructure

  • Docker containers (Podman)
  • Docker Compose orchestration
  • Nginx reverse proxy
  • Volume mounts for evidence files

AI/ML

  • OpenAI GPT-4o (Writer, Critic, Updater)
  • Temperature: 0.3 (deterministic)
  • JSON response format
  • External prompt files (versioned)
📊 Workflow Metrics (Typical Case)