Design a customer service agent for order status, delivery changes and returns.
Model answer
Subagents: order status and delivery; returns and refunds; product questions; out of scope.
Agent Script: verify (one-time code or session) โ set customer variable โ only then order actions; refund only within policy and threshold.
Actions: get orders (data graph), change delivery (carrier API), create return (provider API), refund (Flow), summarise for hand-off (prompt template).
Grounding: real-time data graph; policy retriever with citations.
Security: agent user least privilege; actions use verified variable, not user-typed IDs.
Channels: web, app (session identity), voice (short responses).
Hand-off: Omni-Channel with summary.
Testing: selection, actions, policy edge cases, injection; thresholds.
Run: observability, verified resolution KPI, credits per conversation.
โ Key points to hit
โ Red-flag answers
- Generic 'query any order' action
- No verification
- No hand-off design
โช Follow-ups
How do you keep voice fast?
Precomputed data graph, combined actions, short responses, async confirmations.
What's your main KPI?
Verified resolution with low repeat contact.