Book a free call

AI Agents That Catch Odd Transactions in Real Time

A transaction agent watches payments as they happen, scores them, and either clears them, holds them, or opens a case for a human. Here is how the agent loop works.

Hertiv engineering teamReviewed by a senior engineer
8 min read
AI Agents That Catch Odd Transactions in Real Time
On this page

Short answer

An AI agent for transaction anomaly detection watches payment and transfer streams in real time, compares each transaction with what is normal for that account, and acts on the odd ones: clearing the routine, holding the suspicious, and opening a case with the evidence a human reviewer needs. It is a loop of watching, scoring, acting and learning, not a one-off check.

What is an AI agent for transaction anomaly detection?

An AI agent for transaction anomaly detection is software that watches transactions as they happen, spots the ones that do not fit the pattern, and takes the first action itself. It clears the routine payments, holds the suspicious ones, and opens a case with the evidence a human reviewer needs. The agent works continuously, not in batches, and it learns from every decision a reviewer makes.

The difference from a traditional rule engine is that the agent combines several signals and acts on the result. A rule might block every payment over a set amount; an agent weighs the amount against the account's history, the device, the location, the time of day and the destination, then decides whether to clear, hold or escalate. The decision is a judgement call the agent makes in milliseconds.

The agent is not a replacement for the fraud team. It handles the volume, so humans spend their time on the cases that need judgement. A team that reviews every transaction by hand is slow; a team that reviews only what the agent flags can keep up with real-time payments.

How does the agent decide a transaction is odd?

The agent decides a transaction is odd by comparing it with what is normal for that account and for similar accounts. It builds a picture of normal behaviour from past transactions, then scores each new one against that picture. A score above the threshold triggers an action, and the threshold itself is tuned from reviewer feedback.

The signals fall into a few groups. Amount and frequency show whether the payment fits the account's usual size and rhythm. Device and location show whether the payment comes from a known phone or a new one in a new place. The destination shows whether the money goes to a familiar account or a new one. Velocity shows whether many payments arrived in a short burst.

SignalWhat it tells the agentExample of odd
AmountSize against the account's usual paymentsTen times the usual size
FrequencyHow often payments leave the accountTwenty payments in an hour
DeviceWhether the device is knownNew device, first payment
LocationWhere the payment comes fromTwo countries within an hour
DestinationWhether the payee is familiarFirst payment to a new account
VelocitySpeed of money movementFunds moved on within minutes

No single signal decides anything. A large payment to a familiar supplier from a known device is routine; the same payment to a new account from a new device is not. The agent's job is to weigh the combination, not to react to one number.

What happens after a flag?

After a flag, the agent follows a short chain of actions: it holds or clears the payment, gathers the evidence, and opens a case for a human when the case needs judgement. The chain is defined in advance, so the agent never invents a response in the moment.

Clearing is the most common outcome. Most flagged transactions turn out to be routine once the agent checks a second signal, such as a known device or a matching invoice. Holding is for the middle cases: the payment waits while the agent asks for more proof, such as a one-time code or a confirmation from the account holder.

Escalation is for the cases the agent cannot resolve. The agent opens a case with the transaction, the score, the signals that drove it, and the account history, so the reviewer starts with evidence instead of a bare alert. The reviewer then clears, blocks or reports the case, and that decision feeds back into the agent's scoring.

How does the agent keep learning?

The agent keeps learning from reviewer decisions. Every time a reviewer clears or blocks a case, the agent records which signals were present and adjusts how much weight it gives them. A signal that often appears in cleared cases counts for less; a signal that often appears in blocked cases counts for more.

The learning is supervised and slow on purpose. A model that rewrites its own rules after every case can drift quickly, so teams usually retrain on a schedule, such as weekly, and test the new version against past cases before it goes live. The old version stays available so the team can roll back if the new one performs worse.

Feedback quality matters more than volume. A reviewer who clears cases without notes teaches the agent nothing, while a reviewer who records the reason — a travel purchase, a new supplier, a genuine mistake — gives the agent the labels it needs. The case form should make the reason a required field, not an afterthought.

Where generative models help, generative AI anomaly detection covers how they spot patterns that traditional checks miss.

How do you build one?

You build a transaction agent by starting with one payment type, clean data, and a human review loop, then expanding the agent's authority only when the evidence supports it.

  1. Pick one payment type. Start with card payments or account transfers, not every flow at once, so the team can learn the pattern.
  2. Assemble the history. Gather past transactions with their outcomes, including which ones were fraud and which were cleared, and clean the labels.
  3. Define the actions. Decide in advance what the agent may do on its own — clear, hold, ask for proof — and what always needs a human.
  4. Run in shadow mode. Let the agent score live transactions without acting, and compare its decisions with the reviewers' for a few weeks.
  5. Give it limited authority. Let it clear the lowest-risk cases first, while humans keep the holds and escalations.
  6. Measure and expand. Track false positives, detection time and reviewer hours, then widen the agent's scope only where the numbers improve.

Shadow mode is the step teams most often skip, and it is the one that prevents the most damage. An agent that goes live without a measured baseline will either block good customers or miss the fraud it was built to catch, and the team will not know which.

What are the risks and limits?

The risks of a transaction agent are false positives, drift, and decisions nobody can explain. A false positive blocks a good customer, and a few of those cost more in lost trust than the fraud they prevented. Drift happens when behaviour changes — a holiday season, a new product, a market shock — and the agent's picture of normal goes stale.

Explainability is the third risk. A reviewer, a customer, or a regulator may ask why a payment was held, and 'the model said so' is not an answer. The agent should record the signals and the score for every decision, so a human can reconstruct the reasoning and defend it.

Bias is a quieter risk. If the training data links a region, a device type or a name pattern with fraud, the agent can start flagging innocent people for reasons nobody intended. The team should check flag rates across customer groups and fix the data or the rules when one group is flagged far more than others.

Example (hypothetical): a payments team cuts review time

Example (hypothetical): a payments team processes 10,000 transactions a day and reviews the suspicious ones by hand. Before the agent, a reviewer spent about 2 minutes checking each transaction that looked odd, and the team flagged roughly 500 a day, which adds up to 1,000 minutes, or about 17 hours of review work a day.

The team adds an agent that scores every transaction and clears the routine ones. The agent flags 120 a day for human review, and each review takes about 8 minutes because the agent attaches the evidence, which adds up to 960 minutes, or 16 hours.

The saving looks small until the team counts the work the agent cleared: 9,880 transactions needed no human time at all, against 500 flagged before, and the review queue no longer grows during busy hours.

The real gain is speed. A flagged payment used to wait hours for a reviewer; now the agent holds it in seconds and the reviewer sees the case with the evidence attached. The team measures the false positive rate weekly and retrains the model when it rises.

What are the common mistakes?

The most common transaction-agent mistakes are skipping shadow mode, letting the agent act without limits, and starving it of feedback.

  • Going live without shadow mode. An untested agent will block good customers or miss fraud, and the team will not know which until the complaints arrive.
  • No limits on agent authority. An agent that can block any payment without a ceiling needs a human override and an audit trail for every block.
  • One signal deciding everything. A single rule, such as amount alone, creates false positives that teach customers to avoid the product.
  • Feedback without reasons. Reviewers who clear cases without recording why give the agent nothing to learn from.
  • Ignoring drift. A model trained on last year's behaviour needs regular retraining, or it will flag the new normal as fraud.
  • No explanation for the customer. A held payment with no message and no next step turns a fraud check into a lost customer.

For the wider detection picture, AI anomaly detection for businesses covers where detection fits across a company.

How to implement anomaly detection covers the build steps.

Key takeaways

  • The agent watches, scores, acts and learns in a loop, not in a one-off check
  • No single signal decides anything; the agent weighs amount, device, location, destination and velocity together
  • Most flags are cleared by the agent; humans handle the cases that need judgement
  • Shadow mode before go-live is the step that prevents the most damage
  • Every decision needs recorded signals and a score, so a human can explain it

Frequently asked questions

What is an AI agent for transaction anomaly detection?

It is software that watches payment and transfer streams in real time, compares each transaction with what is normal for that account, and acts: clearing routine payments, holding suspicious ones, and opening a case with evidence for a human reviewer. It learns from reviewer decisions over time.

How is it different from a rule engine?

A rule engine applies fixed thresholds, such as blocking every payment over a set amount. An agent weighs several signals together — amount, device, location, destination and velocity — and decides whether to clear, hold or escalate based on the combination, which cuts false positives.

What happens to a payment the agent holds?

The payment waits while the agent asks for more proof, such as a one-time code, or while a human reviewer checks the case. The agent attaches the transaction, the score and the signals that drove it, so the reviewer starts with evidence instead of a bare alert.

Can the agent block a payment on its own?

It can, but only within limits set in advance, such as a maximum amount or a specific payment type, and every block is logged with its reasons. Most teams start by letting the agent clear low-risk cases only, and keep holds and blocks with humans until the agent has proven itself.

How do you stop the agent from blocking good customers?

Run it in shadow mode first to measure the false positive rate, tune thresholds from reviewer feedback, and require a reason for every cleared case so the agent learns. Check flag rates across customer groups regularly, since a biased model flags some groups far more than others.

How often should the agent be retrained?

Most teams retrain on a schedule, such as weekly or monthly, and test the new version against past cases before it goes live. Behaviour changes with seasons, products and markets, so a model trained on last year's data will start flagging the new normal as fraud if it is left alone.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building real-time fraud checks for your payments? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI agents for finance service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call