A six-agent AI pipeline that collapses the manual hop between core banking, Snowflake/DWH, Ops dashboards, and helpdesk tools into a single chat-driven interface for Ops, Helpdesk, Risk, and Product teams. Deterministic, audited, and runs fully offline on synthetic US payments data.
US payments operations teams spend a large share of their day reconciling settlement across siloed tools: a core banking screen for payout status, a Snowflake query for trend analysis, an Ops dashboard for reserve balances, a separate console for ACH/Fedwire/RTP downtime, and a helpdesk queue for chargebacks. SettleIQ unifies that workflow into a chat-driven, MCP-style orchestration layer — with audit logging, sanity validation, and risk gating built in.
Every user query flows through a strict, observable pipeline. Each agent has a single responsibility — classification, routing, retrieval, validation, formatting, and audit logging. Failures at any step are logged with hashes and cost estimates.
Each use case is a complete end-to-end path through the pipeline, backed by a dedicated skill module and a deterministic test case. UC12 is the adversarial path: prompt-injection attempts are denied before they reach the router.
Totals, breakdown by status, net amounts, trace numbers, recent events.
All settlement events grouped under a single payout ID, cross-MID view.
Fuzzy phone match with disambiguation when multiple merchants share a number.
Hardcoded ACH / Fedwire / RTP timing rules and cutoff windows.
Reserve account balance with risk-tier context and recent reserve movements.
Bank and payment-rail outage windows for ACH / Fedwire / RTP / card networks.
Rolling volume, average settlement time, failure rate, return-code breakdown.
R01 / R03 / BANK_TIMEOUT root-cause explanations with contextual next steps.
Confirmed vs. pending provisional credits with timestamps and SLA notes.
Merchant freeze status, hold reason, and risk-team context.
Lookup by MID or transaction ID with reason codes (4853 / 4855 / 10.4 / …).
Prompt-injection and jailbreak detection — hard denial, logged and blocked.
The repo ships with a reproducible SQLite mock dataset: 110 US merchants across verticals (rideshare, food delivery, marketplaces, hospitality), 11,000 settlement events spanning ACH / Fedwire / RTP rails, chargeback history with reason codes, and rail downtime windows. Everything is seeded deterministically in roughly one second so the system can be demoed end-to-end on a laptop with no external dependencies.
A USE_REAL_LLM toggle is wired in as an extension point — a real LLM
provider (Anthropic, OpenAI) can be plugged into the formatter agent without touching
the rest of the pipeline. The skill registry is lazy-loaded, so adding a new use case
means adding a single skill module and a router pattern.
The full system runs on a laptop with no API keys and no network access. Clone the repo and run:
# 1. Install dependencies pip install -r requirements.txt # 2. Seed the SQLite mock database (~1 second, deterministic) python data/mock_generator.py # 3. Launch the Streamlit dashboard streamlit run dashboard/app.py
Or run a single query through the CLI: python pipeline_runner.py "Settlement details for MID01010 last 7 days".
Run python pipeline_runner.py --demo to execute all twelve UCs in sequence.