AWS Builder Center

From Traditional Fraud Detection to Agentic AI: Designing a Bounded Intelligence Architecture on AWS

A production fraud detection platform must do more than classify transactions. It must explain suspicious behavior, retrieve relevant policies, coordinate investigations, preserve auditability, and escalate uncertain cases without introducing unacceptable latency or operational risk.

Data Engineer IA Research

Week 1 — AWS Builder Technical Article


Draft 1 · Ready for technical review
Production AI / Fraud Detection

Editorial objective: Establish a technically defensible architecture for evolving traditional fraud detection into a hybrid ML and Agentic AI system.
The central engineering principle is important: an LLM should not replace the deterministic transaction-scoring path. It should augment the investigation, evidence retrieval, and decision-support layers.
This separation protects latency, reproducibility, auditability, and financial decision integrity.
Important editorial finding: AWS Builder already contains a publication titled Building an Agentic, Real-Time Fraud Detection System on AWS, published October 4, 2026. Its architecture covers multiple agents, SageMaker, Bedrock, RAG, and human review. We should not reproduce that article.

AWS Builder Center


Therefore, this draft takes a more distinctive position: Agentic AI as a bounded intelligence layer around a deterministic fraud-decision engine. It emphasizes decision boundaries, risk governance, system reliability, and the economics of selective LLM invocation.

From Traditional Fraud Detection to Agentic AI: Designing a Bounded Intelligence Architecture on AWS

Introduction

Financial fraud detection has evolved from static rule engines into sophisticated machine learning systems capable of analyzing millions of transactions and identifying complex behavioral patterns.
However, improving predictive accuracy does not automatically solve the broader operational problem.
A production fraud detection platform must do more than classify transactions. It must explain suspicious behavior, retrieve relevant policies, coordinate investigations, preserve auditability, and escalate uncertain cases without introducing unacceptable latency or operational risk.
This creates an architectural challenge:
How can we introduce agentic AI capabilities into an existing fraud detection platform without compromising the reliability of its transaction-scoring pipeline?
The answer is not to replace traditional machine learning with large language models (LLMs). Instead, we can introduce a bounded intelligence layer that complements deterministic scoring, retrieves contextual evidence, and coordinates controlled investigation workflows.
This article presents a proposed AWS reference architecture for that transition.



1. The limitations of traditional fraud detection

Traditional fraud detection systems generally combine three mechanisms:
  • Rule-based evaluation.
  • Supervised machine learning.
  • Statistical or behavioral anomaly detection.
A simplified scoring function can be expressed as:
[ R(x)=f_{\theta}(x) ]
where:
  • (x) represents transaction features.
  • (f_{\theta}) represents a trained predictive model.
  • (R(x)) represents the estimated fraud risk.
A rule engine can independently evaluate business constraints:
[ B(x)=\bigwedge_{i=1}^{k}r_i(x) ]
The final decision may combine these mechanisms:
[ D(x)=g(R(x),B(x),C(x)) ]
where (C(x)) represents contextual information.
These approaches are effective for identifying known patterns. Nevertheless, several limitations remain.

1.1 Limited contextual reasoning

A model can identify an unusual transaction without understanding the applicable investigation policy.
For example, a high-value transaction might be unusual for a particular customer segment but legitimate because of a documented exception.
The model produces a risk estimate. The investigation process still requires contextual evidence.

1.2 Static operational policies

Fraud policies change over time.
Hardcoding every policy modification into an application or model release creates operational friction.

1.3 Investigation bottlenecks

Human analysts frequently need to correlate information across transaction histories, customer profiles, internal documentation, and previous incidents.
This process can become expensive when every suspicious transaction requires manual investigation.

1.4 Explainability limitations

A probability score does not automatically provide a defensible explanation.
Investigators need to understand which signals contributed to the alert and which operational policies apply.
These limitations suggest that fraud detection should be treated as a broader decision-support problem rather than exclusively as a classification problem.



2. Introducing a bounded agentic intelligence layer

Agentic AI introduces systems capable of interpreting objectives, retrieving information, selecting tools, and coordinating multi-step workflows.
However, autonomy must be constrained in financial applications.
An LLM should not independently authorize transactions, override deterministic controls, or modify customer account states without explicit authorization.
A more reliable architecture separates responsibilities into three layers.
Layer A — Predictive intelligence
Traditional ML models estimate transaction risk.
Layer B — Contextual intelligence
Retrieval systems collect relevant evidence from policies, historical investigations, and authorized business knowledge.
Layer C — Operational intelligence
Agentic workflows coordinate investigation tasks, prepare explanations, and request human intervention when required.
The fundamental design principle is separation of concerns.
Predictive scoring remains independently deployable and testable. Generative reasoning operates within a controlled boundary.



3. Proposed AWS reference architecture

The architecture uses managed AWS services to separate event ingestion, feature computation, predictive inference, contextual retrieval, and investigation orchestration.

3.1 Transaction ingestion

Amazon Kinesis Data Streams receives transaction events.
AWS Lambda or containerized consumers process incoming records, validate schemas, and enrich transaction data.
Amazon S3 provides durable storage for historical transaction datasets and analytical workloads.
The ingestion layer should support:
  • Idempotent event processing.
  • Schema validation.
  • Event-time handling.
  • Replay and recovery.
  • Dead-letter processing.
  • Encryption and access control.
The transaction event should have a stable identifier to support deduplication and audit correlation.

3.2 Feature engineering and model inference

Amazon SageMaker AI provides the model development and inference infrastructure.
SageMaker Feature Store can maintain shared feature definitions and support both online and offline feature access.
For example:
Feature
Description
transaction_amount
Current transaction value
merchant_category
Merchant classification
velocity_1h
Transaction count during the previous hour
average_amount_30d
Historical customer spending average
geographic_deviation
Difference from expected transaction geography
account_age_days
Account lifetime
The online feature store supports low-latency feature retrieval, while the offline store supports historical analysis and model training.
This separation helps reduce training-serving skew.
A deployed SageMaker endpoint can then return a predictive risk score.
The endpoint type should be selected according to workload characteristics. Real-time inference is appropriate for interactive low-latency requirements, while asynchronous and batch inference address different workload profiles.

3.3 Contextual retrieval

A fraud investigation requires more than numerical predictions.
It may require retrieving:
  • Current fraud policies.
  • Merchant-specific restrictions.
  • Escalation procedures.
  • Historical investigation documentation.
  • Regulatory or internal compliance requirements.
Amazon Bedrock Knowledge Bases can provide managed retrieval-augmented generation capabilities over authorized knowledge sources.
The retrieved passages should include source metadata so that the resulting explanation can be traced to the underlying documents.
Importantly, retrieval should not grant an agent access to unrestricted customer information.
Authorization and document-level access controls must be enforced independently of the language model.

3.4 Agent orchestration

Amazon Bedrock AgentCore provides infrastructure for deploying and operating agentic applications.
A bounded investigation agent can receive:
  1. A transaction identifier.
  1. The predictive risk score.
  1. Authorized behavioral features.
  1. Retrieved policy evidence.
  1. A predefined investigation objective.
The agent can then prepare an investigation summary and recommend the next operational action.
Possible actions include:
  • Request additional evidence.
  • Generate an analyst report.
  • Create a review case.
  • Escalate a suspicious transaction.
  • Request human approval.
Actions that affect financial authorization must remain behind deterministic policy enforcement and explicit authorization boundaries.

3.5 Governance and observability

Amazon Bedrock Guardrails can evaluate model inputs and outputs against configured policies.
AWS IAM should enforce least-privilege permissions for every service and workload.
Amazon CloudWatch provides operational metrics, logs, and alarms. AgentCore Observability supports tracing and monitoring agent execution.
Amazon CloudTrail provides an account-level record of supported API activity.
The objective is to make every consequential action attributable, observable, and reviewable.



4. Decision architecture: separating risk from action

One of the most important design decisions is separating the estimated risk from the operational action.
Consider a risk score:
[ r \in [0,1] ]
Define two thresholds:
[ \tau_L < \tau_H ]
The decision policy can be represented as:
[ D(r)= \begin{cases} \text{Approve}, & r < \tau_L\ \text{Investigate}, & \tau_L \leq r < \tau_H\ \text{Escalate}, & r \geq \tau_H \end{cases} ]
These thresholds are illustrative, not recommended production values.
The actual policy must be calibrated using historical outcomes, fraud-loss exposure, false-positive costs, regulatory obligations, and business constraints.
The investigation layer can enrich the middle and high-risk cases without forcing every transaction through an expensive generative workflow.
This produces a selective execution architecture.

Illustrative orchestration pseudocode

def process_transaction(transaction):
features = feature_service.get_online_features(
transaction.customer_id
)

risk_score = fraud_model.predict(
transaction,
features
)

decision = policy_engine.evaluate(
transaction=transaction,
risk_score=risk_score
)

if decision.action == "APPROVE":
return decision

if decision.action == "INVESTIGATE":
evidence = retrieval_service.retrieve(
transaction=transaction,
policies=decision.allowed_policy_scope
)

report = investigation_agent.prepare_report(
transaction=transaction,
risk_score=risk_score,
evidence=evidence
)

return human_review_queue.submit(report)

if decision.action == "ESCALATE":
return escalation_service.create_case(
transaction=transaction,
risk_score=risk_score
)
This is architectural pseudocode, not a tested implementation.
The important property is that the agent prepares contextual evidence but does not independently override the policy engine.



5. Reliability and failure boundaries

Agentic systems introduce additional failure modes that traditional ML pipelines do not necessarily have.
Examples include:
  • Foundation model invocation failures.
  • Retrieval returning irrelevant documents.
  • Prompt injection through untrusted content.
  • Invalid tool arguments.
  • Duplicate action execution.
  • Incomplete investigation state.
  • Excessive token consumption.
  • Delayed human responses.
A robust design must explicitly address these conditions.

5.1 Fail-safe behavior

If the agentic layer becomes unavailable, the predictive scoring service should remain operational.
The application should follow predefined fallback policies rather than waiting indefinitely for an LLM response.

5.2 Idempotency

Every externally visible action should use a stable idempotency key.
For example:
[ K = H(\text{transaction_id},\text{action_type},\text{policy_version}) ]
This reduces the risk of duplicate investigation cases when requests are retried.

5.3 Human intervention

Uncertain cases should be represented as durable workflow states.
A human approval or rejection must be recorded as an attributable event, including the actor, timestamp, evidence, and policy version.

5.4 Evidence integrity

Generated explanations should be validated against retrieved evidence.
The system should reject unsupported citations and distinguish between verified facts, model-generated interpretations, and missing information.



6. Economic implications of selective agentic execution

Generative AI introduces costs that traditional classification pipelines do not incur.
Let:
  • (N) = total transaction volume.
  • (p) = fraction of transactions requiring investigation.
  • (C_m) = average ML inference cost.
  • (C_a) = average agentic investigation cost.
An approximate execution cost is:
[ C_{\text{total}} = N C_m + Np C_a ]
This simplified model excludes infrastructure, storage, networking, and other operational expenses.
The important observation is that agentic execution should scale with the investigation rate rather than total transaction volume.
If every transaction invokes an LLM, the system introduces unnecessary latency and inference expenditure.
A selective architecture makes generative reasoning conditional on business need.
This is particularly relevant for high-throughput payment systems.



7. Measuring system performance

Model accuracy alone is insufficient to evaluate the architecture.
The evaluation framework should cover four dimensions.
Predictive performance
  • Precision.
  • Recall.
  • PR-AUC.
  • False-positive rate.
  • Fraud-loss capture.
Operational performance
  • End-to-end transaction latency.
  • P95 and P99 inference latency.
  • Event processing throughput.
  • Queue depth.
  • Retry frequency.
Agentic performance
  • Retrieval relevance.
  • Evidence-grounding rate.
  • Unsupported-claim rate.
  • Tool execution success.
  • Human escalation rate.
Economic performance
  • Cost per transaction.
  • Cost per investigation.
  • Average tokens per investigation.
  • Human analyst time per case.
These metrics should be measured independently before evaluating the combined system.
A useful experimental design compares:
  1. Traditional rules-only detection.
  1. ML-based detection.
  1. ML combined with contextual retrieval.
  1. ML combined with retrieval and bounded agentic workflows.
All approaches should use equivalent datasets, evaluation periods, and leakage controls.
No performance improvement should be assumed without empirical validation.



8. Security considerations

Financial transaction data is highly sensitive.
The architecture should enforce:
  • Encryption in transit and at rest.
  • Least-privilege IAM policies.
  • Segregation of production and development environments.
  • Explicit authorization for every agent tool.
  • PII minimization.
  • Secrets management.
  • Retention and deletion policies.
  • Audit logging.
  • Prompt-injection defenses.
Guardrails are useful, but they are not a replacement for application-level authorization.
An agent should never be trusted to determine its own access permissions.
The backend must independently validate every requested operation.



9. Architectural trade-offs

Design choice
Advantage
Trade-off
Traditional ML
Predictable scoring and measurable performance
Limited contextual explanation
RAG
Access to current internal knowledge
Retrieval quality and data governance
AgentCore
Managed agent runtime and supporting capabilities
Additional operational and execution complexity
Human-in-the-loop
Greater control over ambiguous cases
Investigation latency and staffing costs
Selective LLM invocation
Controls cost and unnecessary inference
Requires reliable routing policies
There is no universally optimal architecture.
A low-volume financial application may benefit from a simpler synchronous investigation workflow.
A high-throughput platform may require asynchronous processing, independent scaling, and durable workflow orchestration.
The architecture must follow measured workload requirements rather than the novelty of a particular AI technology.



10. Conclusion

The transition from traditional fraud detection to agentic AI should not be understood as replacing predictive models with language models.
It is an architectural evolution.
Machine learning estimates risk. Retrieval systems provide contextual evidence. Agentic workflows coordinate investigation. Deterministic policy engines enforce business constraints. Human analysts retain control over decisions requiring judgment or authorization.
AWS provides building blocks for implementing these capabilities through Amazon Kinesis Data Streams, Amazon S3, Amazon SageMaker AI, Amazon Bedrock Knowledge Bases, Amazon Bedrock AgentCore, IAM, and Amazon CloudWatch.
The engineering challenge is not simply making an AI system more autonomous.
It is defining precisely where autonomy is useful, where it must stop, and how every consequential operation remains verifiable.
The objective is not maximum autonomy. It is controlled intelligence with measurable operational value.



References

This article presents a proposed reference architecture. The pseudocode and architectural examples are illustrative and do not represent a deployed or benchmarked production system.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article