Retailโ—† Realistic composite#agent-design#agentforce#data-360#voice

Customer service agent for an online retailer across web, app and voice

A retailer deploys one service agent to web chat, the mobile app and phone for order status, delivery changes and returns, with verification, Data 360 context, carrier integrations, human hand-off, automated tests and cost optimisation.

Illustrative design parameters: 400,000 service contacts a month, 60% about orders and returns, 300 human service reps.

Your confidence:Not rated

Solution overview

  • One agent with subagents: order status and delivery, returns and refunds, product questions, out of scope.
  • Hybrid reasoning: Agent Script enforces verification before order actions and policy checks before refunds.
  • Actions: verify customer (one-time code), get orders (data graph), change delivery (carrier API), create return (returns provider API), refund under threshold (Flow).
  • Grounding: real-time data graph for orders and loyalty; retriever over policy articles with citations.
  • Channels: web and app messaging (session identity in app), voice with shorter responses.
  • Hand-off to Omni-Channel queues with a summary.
  • Testing and observability gates, plus consumption tuning.

๐Ÿ” Security and sharing

  • Agent user can read order and return objects and call specific flows; no broad record access.
  • Web chat requires a one-time code before any order data; the app uses session identity.
  • Actions take order numbers only within the verified customer's orders.
  • Policy retriever limited to customer-facing articles.

๐Ÿ“ˆ LDV and performance

  • Data graph precomputes the last 10 orders to keep latency low, especially for voice.
  • Combined "order and tracking" action reduces calls per conversation.
  • Peak sale periods load tested with simulated conversations.

๐Ÿงฐ Governance and DevOps

Agent Script, flows and prompt templates in Git; 700-test suite runs on every deployment; versioned activation with rollback; weekly review of observability metrics and Optimizer findings.