Scoring Engine
Learn how Ambriel scores each transaction with custom rules, score bands and decision states that approve, review or reject risk.
Scoring Engine
The Scoring Engine evaluates every transaction against your custom rules and produces a 0–100 risk score plus an Approve, Review, or Reject decision. Rules inspect IP, customer, phone, email, BIN, and transaction attributes, combine with logical operators, and the highest-priority match sets the outcome reviewers see in the queue.
The Scoring Engine works by allowing you to define a set of rules that are evaluated for each transaction. Each rule has a set of conditions that are evaluated, and if all conditions are true, the rule is triggered. The triggered rule can then perform an action, such as setting a score, setting a state (Approve, Reject, Review), or adding a value to a list.
How is the score calculated?
Each transaction runs through your rule set in priority order. Every rule whose conditions all evaluate to true fires and applies its action — setting or adjusting the score, assigning a decision state, or tagging the transaction via a list. When several rules match, the engine resolves them by priority so the most specific or most severe rule wins, and the full trace of fired rules is stored as evidence on the Transactions row.
Scores are deterministic: the same transaction data against the same rule set always yields the same score. That makes rule changes testable — clone a rule, adjust it, and replay recent traffic before promoting.
Rule Types
The following rule types are available:
| Rule Type | Description |
|---|---|
| IP Rule | Evaluates the IP address of the transaction. |
| Customer Rule | Evaluates the customer information associated with the transaction. |
| Phone Rule | Evaluates the phone number associated with the transaction. |
| Email Rule | Evaluates the email address associated with the transaction. |
| Bin Rule | Evaluates the BIN (bank identification number) of the card associated with the transaction. |
| Transaction Rule | Evaluates the transaction information, such as the amount or currency. |
Conditions
Each rule can have multiple conditions. Conditions are evaluated using logical operators. The following logical operators are available:
| Operator | Description |
|---|---|
| AND | Evaluates to true if all conditions are true. |
| OR | Evaluates to true if any condition is true. |
| NOT | Evaluates to true if the condition is false. |
Actions
If a rule is triggered, the action associated with the rule is performed. The following actions are available:
| Action | Description |
|---|---|
| Set Score | Sets the score of the transaction to a specified value. |
| Set State | Sets the state of the transaction to a specified value (Approve, Reject, Review). |
| Add to List | Adds a value to a list associated with the transaction. |
What do score bands mean?
The numeric score maps to a decision band that drives the default action. Configure the thresholds to match your risk appetite; the standard interpretation is:
| Band | Score | Meaning | Default decision |
|---|---|---|---|
| Low risk | 0–29 | Signals look clean; no risk rules fired | Approve |
| Medium risk | 30–69 | Suspicious indicators present but not conclusive | Review |
| High risk | 70–100 | Strong fraud signals or a block rule matched | Reject |
Bands shown in the Transactions queue use these same cutoffs, so what analysts triage matches what the engine decided. Start with the defaults, then shift boundaries after measuring false-positive and fraud-catch rates over a few weeks of live traffic.
How do rules interact with scores?
Rules and scores work as a pair: score actions position the transaction inside a band, while state actions can pin the decision regardless of the number. A rule that sets state Reject blocks the transaction even if no score action pushed it into the high band, and a Review state routes it to the manual queue for a human call. Priority ordering decides conflicts — place narrow, high-confidence block rules above broad informational ones so the severe outcome wins.
Lists add memory across transactions: a rule can tag a device, email domain, or BIN the first time it looks suspicious, and later rules can check list membership to escalate repeat offenders. This is how single-event signals from the Digital Footprint become velocity and repeat-offender logic without custom code.
Examples
The following example shows a rule that sets the score to 10 if the IP address of the transaction is from the United States and the transaction amount is greater than $100:
| Rule Name | Rule Type | Conditions | Action |
|---|---|---|---|
| US High Amount | IP Rule | IP Address is from United States AND Amount > 100 | Set Score to 10 |
The following example shows a rule that sets the state to Review if the customer's email address is not verified and the transaction amount is greater than $50:
| Rule Name | Rule Type | Conditions | Action |
|---|---|---|---|
| Unverified Email | Email Rule | Email Address is not verified AND Amount > 50 | Set State to Review |
The following example shows a rule that sets the score to 20 if the IP address of the transaction is not from the United States and the transaction amount is greater than $100 and the customer's phone number is not verified and the email address is not verified and the BIN is not from Visa:
| Rule Name | Rule Type | Conditions | Action |
|---|---|---|---|
| High Amount and Unverified Information | IP Rule | IP Address is not from United States AND Amount > 100 AND Phone Number is not verified AND Email Address is not verified AND BIN is not Visa | Set Score to 20 |