The brief: a returns and refunds agent for an online shop
What it is
Build an agent for Dukaan Direct, a made-up online electronics shop. A customer writes in about an order, and the agent must resolve the request, not merely answer it. In scope:
- return requests: check eligibility against the returns policy, issue a return label, schedule a pickup;
- refunds: full, partial or shipping-only, within limits;
- exchanges: check stock and arrange a replacement;
- questions about policy, warranty and order status;
- hand-over to a human, with a summary, for anything it should not decide.
You build the shop's back end as fakes: orders, payments, inventory, courier, email, and a folder of policy documents.
Why it matters
The domain is chosen because it needs every part of the course at once.
- Policies are documents, so it needs RAG.
- Requests have several parts, so it needs planning.
- Money and stock change, so it needs guardrails, idempotency and human approval.
- A return takes days (label, pickup, inspection, refund), so it needs saved state and resumption.
- Customers return, so it needs memory.
- And it must be shown to work, so it needs evaluation and tracing.
In the real world: Returns and refunds is among the first processes companies hand to agents, because it is high-volume, rule-bound and expensive to staff; a working capstone is a small version of a real product.
Visual example
ScopeThe last column is where each request tends to go wrong.
Reusing the Kirana Kart code from the lessons with the names changed. The policies, the multi-day return process and the inventory make this a different design problem; start from the requirements.