Challenge

UPI Fraud Detection Agent with OpenAI Agents SDK and Langfuse

High-volume UPI merchant transactions require real-time risk triage to prevent fraud without blocking legitimate users. Build an agentic triage system using OpenAI Agents SDK and track telemetry with Langfuse to achieve sub-200ms latency and 95% precision on fraudulent transaction flags.

Business OperationsHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Implement an automated UPI fraud triage pipeline utilizing the OpenAI Agents SDK for decision-making and Langfuse for agent observability.

Delivery guide

How work is evaluated

Evaluation

Evaluates the accuracy and latency of the UPI fraud agent using simulated payment event streams.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
3 scoring checks
Binary
3 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

json_schema_compliance

Checks if output conforms strictly to risk_status and risk_score format.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

precision

Precision of fraud detection flags. • target: 0.95 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 3

latency_ms

Average response time per transaction. • target: 200 • range: 0-2000

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Master tool calling and agent orchestration with OpenAI Agents SDK

  • Integrate Langfuse for real-time trace telemetry and score evaluation

  • Design low-latency fraud classification routines for high-throughput payment streams

  • Implement automated risk scoring using device and transaction context

Resources and assets

Reference links and supporting material

Dataset notes

Simulated stream of 1,000 UPI transactions labeled with fraud ground truth.

How this agent runs

Evaluates the accuracy and latency of the UPI fraud agent using simulated payment event streams.

Challenge input

JSON transaction object containing amount, payer_id, payee_id, location, and device_id.

OpenAI Agents SDK

Official framework for autonomous agent routing.

Langfuse

Provides structured logging and trace evaluation.

Evaluated output

JSON object with risk_status ('APPROVE', 'FLAG', 'BLOCK'), risk_score (0-100), and rationale string.

Checks for
  • Checks if output conforms strictly to risk_status and risk_score format.
  • Precision of fraud detection flags. • target: 0.95 • range: 0-1
  • Average response time per transaction. • target: 200 • range: 0-2000
Proof of success
  • Benchmark: Financial Agent Safety & Speed Benchmark
  • Precision target: 0.95
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • OpenAI · Optional
  • Cartesia · Optional
Observation
  • Langfuse · Required
Reward / Eval
  • Langfuse · Required

Evaluation contract

  • json_schema_compliance · Weight 1
  • precision · Weight 1
  • latency_ms · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about UPI Fraud Detection Agent with OpenAI Agents SDK and Langfuse