Skip to main content
Challenge

Build an ONDC Grocery Triage Agent with Claude Agents SDK & OpenRouter

Grocery platforms face network failures when integrating with ONDC logistics and inventory protocols. Build an automated order routing and exception triage system using Claude Agents SDK and OpenRouter to detect catalog mismatches and re-route failing deliveries with under 1.5% delivery drop-off.

Business OperationsHosted by Vera
Challenge brief

What you are building

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

Implement an automated ONDC grocery dispatch and exception triage system using Claude Agents SDK and OpenRouter for resilient logistics.

Delivery guide

How work is evaluated

Evaluation

Evaluates the agent's ability to triage broken ONDC order payloads and successfully re-route orders within SLA limits.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

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
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

valid_reroute_schema

Ensures output JSON matches the required ONDC remediation schema

Binary check

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

Dimension 2

triage_accuracy

Percentage of correctly resolved order exception events • 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.

Learning goals

What you should walk away with

  • Master ONDC protocol payload parsing and exception handling

  • Implement multi-tool agentic workflows with Claude Agents SDK

  • Integrate OpenRouter model switching for low-latency decision making

  • Build real-time delivery re-routing fallback mechanisms

Resources and assets

Reference links and supporting material

Dataset notes

Simulated ONDC Beckn protocol transaction logs containing catalog mismatches, delivery timeouts, and merchant failures.

Challenge setup

Evaluates the agent's ability to triage broken ONDC order payloads and successfully re-route orders within SLA limits.

Challenge input

JSON order payload containing failure codes

Claude Agents SDK

Agentic toolkit with tool calling and extended reasoning capabilities.

OpenRouter

Unified LLM proxy API for dynamic model routing and cost control.

Evaluated output

JSON response with action, target_fulfillment_id, and rationale

Evaluation checks
  • Ensures output JSON matches the required ONDC remediation schema
  • Percentage of correctly resolved order exception events • target: 0.95 • range: 0-1
Configured evaluation evidence
  • Benchmark: ONDC Dispatch Resilience Benchmark
  • Triage Accuracy target: 0.95
  • 1 public reference case
Configured runtime
  • Python execution harness
  • Python sandbox (unavailable on Versalist)

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • Anon · Optional
  • Resemble AI · Optional
Policy Serving
  • OpenRouter · Required
Orchestration
  • OpenRouter · Required

Evaluation contract

  • valid_reroute_schema · Weight 1
  • triage_accuracy · Weight 1

Metrics

  • triage_accuracy · Target 0.95

Benchmarks

  • ONDC Dispatch Resilience Benchmark
  • general

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: JSON order payload containing failure codes

    Output: JSON response with action, target_fulfillment_id, and rationale

    Execution harness: Python

Evaluation tools

  • Claude Agents SDK · Agent Orchestration Framework
  • OpenRouter · AI Workflow Automation

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Build an ONDC Grocery Triage Agent with Claude Agents SDK & OpenRouter