← All use cases
Banking

AML alert triage: an investigation file that regulators can replay step by step

An agent works through transaction monitoring alerts, gathers KYC, sanctions and counterparty evidence, and recommends closing or escalating each one to an analyst. ZizkaDB turns every investigation into a tamper-evident file showing what was checked, what was found and who decided.

The situation

A bank's transaction monitoring system raises hundreds of anti-money-laundering alerts a day, most of them false positives. The bank deploys an AI agent to do the first-level review: it reads the alert, pulls the customer's KYC profile, screens the counterparties against sanctions and PEP lists, looks at twelve months of transaction history, and writes a recommendation: close as a false positive, or escalate to a human investigator who decides whether to file a suspicious activity report.

The bank has to keep investigation records for years and show supervisors that every alert was handled properly. When an alert is closed, the reason for closing it must hold up in an inspection.

What goes wrong without a record

  • A supervisor samples 50 closed alerts and asks why each was closed. The case management tool shows "closed – false positive" and a short note, not the evidence the agent looked at.
  • A sanctions list update arrives mid-day. Nobody can say which alerts were screened against the old list.
  • After a model upgrade, the agent starts closing more alerts. Without a behavioural baseline, nobody notices until an inspection does.
  • Analysts override the agent, but the overrides are not linked to the agent's reasoning, so the team cannot learn from them.

How ZizkaDB is used

Every alert is a session. The agent's steps and the analyst's actions are recorded as linked events:

  1. alert_received: alert id, scenario (for example "rapid movement of funds"), amount band.
  2. tool_call / tool_result for each check: KYC profile, sanctions screening (with list name and list version), PEP screening, transaction history query (with the query window).
  3. finding: each fact the agent relied on, linked to the tool result it came from.
  4. llm_end: the model's assessment, recorded automatically by zizkadb.instrument().
  5. recommendation: close or escalate, with the findings it rests on.
  6. human_review: the analyst's decision, whether it agrees with the agent, and the analyst's own reason.

Because each event is chained by hash, the investigation file can be verified at any time: no event removed, inserted, reordered or edited since it was written. Personal data can be minimised: record customer references rather than names, and use capture_content=False on the model calls if prompts contain personal data that should not be stored twice.

Example

async with db.track(agent="aml-triage", session_id=alert.id):
    screening = await db.log_tool("aml-triage", "sanctions_screen",
                                  args={"counterparty_ref": cp.ref, "list": "EU-consolidated",
                                        "list_version": "2026-11-21"})
    result = await db.log_tool_result("aml-triage", "sanctions_screen",
                                      result={"hits": 0}, parent_id=screening.event_id)
    finding = await db.log(agent="aml-triage", event="finding",
                           data={"fact": "no sanctions hit on counterparty"},
                           parent_id=result.event_id)
    await db.log(agent="aml-triage", event="recommendation",
                 data={"action": "close", "basis": ["no_sanctions_hit", "pattern_matches_payroll"]},
                 parent_id=finding.event_id)

Questions the bank can now answer

  • For this closed alert: which checks ran, against which list versions, and what each one returned? (why on the recommendation)
  • Which alerts were screened against the list version that was replaced on 21 November? (search by list_version)
  • How often do analysts override the agent, and in which scenarios? (human_review events grouped by scenario)
  • Did the agent's closing behaviour change after the last upgrade? (baseline drift score and the biggest behavioural changes)
  • Is this file complete and unchanged since the investigation? (verify_chain, plus the ZizkaDB Audit GitHub Action for a signed report)

Regulation and standards this supports

  • EU Anti-Money Laundering Regulation (EU) 2024/1624: record keeping of customer due diligence and transaction analysis.
  • FATF Recommendation 11: records sufficient to reconstruct individual transactions and analysis.
  • EU Digital Operational Resilience Act (DORA): logging and incident analysis for ICT systems in financial entities.
  • US Bank Secrecy Act and suspicious activity reporting, where the bank operates in the US.

What to measure

  • Time to assemble an investigation file for a supervisor sample.
  • Analyst override rate per alert scenario, and how it changes after each agent release.
  • Alerts closed by the agent that were later reopened.
  • Drift score after every model or prompt change, checked before the change is rolled out to all alerts.

More banking use cases