How navyasri12355/agentic-aml-system works
This is an AML investigation product: an analyst submits an account (and optionally transaction data), the service detects suspicious activity, analyzes its transaction network and patterns, scores and routes risk, then returns an investigation result and, for applicable cases, a SAR narrative. The browser presents the result as status, risk, network, and narrative views. The README documents batch investigations and Phase 1–4 capabilities; some implementation details are unsampled, so those branches are shown only where documented, without inferring internal calls.
Main entry points: graph.py Investigation workflow · Investigate.jsx Investigation page · run.py Orchestration runner · useInvestigationStore.js Investigation state
Components 20
Analyst interface
- Investigation page
frontend/src/pages/Investigate.jsx - Investigation state
frontend/src/store/useInvestigationStore.js - API client
frontend/src/api/client.js - Status tracker
frontend/src/components/investigation/StatusTracker.jsx - Risk gauge
frontend/src/components/investigation/RiskGauge.jsx - Network visualization
frontend/src/components/investigation/NetworkGraph.jsx - Narrative panel
frontend/src/components/investigation/NarrativeBox.jsx
Investigation service
- FastAPI service
src/api/main.py - Orchestration runner
src/orchestration/run.py - Investigation workflow
src/orchestration/graph.py - Investigation state
src/orchestration/state.py
AML analysis
- Transaction preparation
src/pipeline/data_ingestion.py - Anomaly detection
src/agents/detection_agent.py - Network construction
src/agents/graph_agent.py - Feature extraction
src/agents/feature_agent.py - Pattern detection
src/agents/pattern_agent.py - Global statistics
src/utils/global_stats.py
Risk and reporting
- Risk scoring
src/agents/risk_agent.py - SAR generation
src/agents/explanation_agent.py
Other components
- Analyst
Connections 20
- Analyst → Investigation page: submits case
- Investigation page → Investigation state: updates state
frontend/src/pages/Investigate.jsx - Investigation state → API client: requests investigation
frontend/src/store/useInvestigationStore.js - API client → FastAPI service: posts account
frontend/src/api/client.js - FastAPI service → Orchestration runner: creates runner
src/api/main.py - Orchestration runner → Investigation workflow: executes workflow
src/orchestration/run.py - Investigation workflow → Transaction preparation: loads transactions
src/orchestration/graph.py - Investigation workflow → Anomaly detection: detects anomalies
src/orchestration/graph.py - Investigation workflow → Network construction: builds subgraph
src/orchestration/graph.py - Investigation workflow → Feature extraction: extracts features
src/orchestration/graph.py - Investigation workflow → Pattern detection: detects patterns
src/orchestration/graph.py - Investigation workflow → Risk scoring: scores and routes
src/orchestration/graph.py - Investigation workflow → SAR generation: generates report
src/orchestration/graph.py - Investigation workflow → Global statistics: uses statistics
src/orchestration/graph.py - Orchestration runner → Investigation state: maintains state
src/orchestration/run.py - Investigation page → Status tracker: renders
frontend/src/pages/Investigate.jsx - Investigation page → Risk gauge: renders
frontend/src/pages/Investigate.jsx - Investigation page → Network visualization: renders
frontend/src/pages/Investigate.jsx - Investigation page → Narrative panel: renders
frontend/src/pages/Investigate.jsx - SAR generation → Analyst: returns SAR narrative