> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction Monitoring Dashboard: Detection Rules

> Build AML detection rules in the Transaction Monitoring dashboard from the rule library, the AI builder or by hand, then test, activate and audit them.

Rules decide which transactions raise alerts. Every transaction you send is checked against your **active** rules before the API answers, so until at least one rule is active, every transaction comes back `PASSED`.

## The rules page

**Compliance → Rules** lists your detection rules, with counts for each status and filters for status, severity and module (the transaction type a rule applies to).

Detection rules

Change log

Create rule

Results of: All statusesAll severitiesAll modules

Severity (Low, Medium, High, Critical) sets the alert's priority and its review deadline in the alert queue.

## Creating a rule

Click **Create rule** and choose how to build it.

Create rule

AI builder

Describe the behaviour you want to detect and let AI draft the rule.

Library

Start from a ready-made template.

Create a rule manually

> [tab] Library
>
> Start from a template and adjust its thresholds. The library includes, among others:
>
> | Template | Severity | Detects |
> | - | - | - |
> | Large Cash Transaction | High | Any bank payment over 10,000 in your reporting currency |
> | Rapid Succession Transactions | Medium | 3 or more transactions by the same customer within an hour |
> | Repeated Transfers To The Same Beneficiary | Medium | 5 or more transactions in 24 hours between the same customer and counterparty |
> | Transaction Far Above The Customer's Usual | Medium | A transaction 50% or more above the customer's 90-day median, once they have 5 earlier transactions |
> | First Payment To A New Country | Low | A customer's first transaction with a counterparty in a country in 180 days |
> | High-Risk Country Transfer | Critical | Bank payments to or from FATF high-risk jurisdictions |
> | Round Amount Transaction | Low | Suspiciously round amounts above 5,000 in your reporting currency |
> | International Transfer Flag | Medium | Cross-border transfers above 5,000 in your reporting currency |
> | Foreign Card Payment | Low | Card payments on a card issued abroad, judged by the issuing bank's country |
>
> Amount thresholds are compared in your **reporting currency**, whatever currency the transaction was sent in.

> [tab] AI builder
>
> Describe the behaviour in plain words, for example *"flag a customer who receives more than five transfers from different senders in a day and then sends most of it out"*. The builder drafts the rule; review its conditions before you save it.

> [tab] Manually
>
> Write the conditions yourself. A rule can test values against your [reference lists](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/workflows-and-lists.md#reference-lists) with `IN LIST <name>` or `NOT IN LIST <name>`, and against your declared custom fields.

A rule matches only on data you send. If your integration leaves out countries, names or the device IP, rules that depend on them cannot fire. See [what to send](https://documentation.idenfy.com/transaction-monitoring/ingest.md#who-is-who-subject-counterparty-direction).

## Testing, activating and archiving

| Action | What it does |
| - | - |
| **Test** | Runs the rule against past transactions and shows what it would have caught, without opening alerts |
| **Activate** | The rule starts checking every new transaction |
| **Deactivate** | Stops the rule; it stays in the list as Inactive |
| **Archive** | Removes it from the working list; it can be unarchived |

Before you activate a new rule, test it: a threshold set too low can flood the alert queue.

## Change log

**Change log** on the rules page lists every change to every rule: who made it, when, and what changed. Each rule also keeps its own history. Both can be exported as CSV for audits.

Rules can also be managed through the API. See the [Rules API reference](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/create-a-rule.md).


## Related topics

- [Transaction Monitoring Dashboard: Getting Started](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/getting-started.md)
- [Transaction Monitoring Dashboard: Transactions](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/transactions.md)
- [Transaction Monitoring Dashboard: Alert Queue](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/alerts.md)
- [Transaction Monitoring Dashboard: Workflows, Suspensions and Reference Lists](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/workflows-and-lists.md)
- [Transaction Monitoring Dashboard: API Keys](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/api-keys.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.