E-Commerce Support with LLMs: From FAQ to Tool Calls to Agents
Three Steps Up the Ladder for Customer Service
E-commerce support is widely considered a first-wave scenario for LLM adoption, but real-world paths usually climb three steps, and skipping steps is why many projects fail. Step one: turn FAQs and after-sales policy into retrieval-based Q&A, where the model only restates and organizes and hands off to humans when unsure. Step two: introduce tool calls so the model can look up orders, track shipments, and open refund tickets. Step three: full multi-turn agents that coordinate across systems through a complete after-sales flow. As of publication, most case studies that run smoothly sit at step two; step three still requires strict permissions and auditing.
The Key at Step Two: Draw Hard Tool Boundaries
Tool calling turns "talk only" into "execute as needed," but the boundary must be drawn by the system: which endpoints are read-only (order status, shipping traces), which can write (open a return request), and which always require human confirmation (large refunds, price disputes). In practice, endpoints are wrapped as structured function descriptions handed to the model; the getting-started approach in Python is in our function calling tutorial, and for strict output formats (ticket fields, JSON callbacks) the constraints in our JSON output tutorial help.
Cost: Support Is a Cache-Friendly Workload
Support workloads have a natural advantage: system prompts, shop policies, and canned phrasing repeat heavily — a textbook cache-friendly pattern. Under DeepSeek's September pricing, cache-hit input costs about one-fiftieth of a miss ($0.003 versus $0.15 per million tokens off-peak). Putting fixed content up front flattens the cost curve for long conversations; mechanics in our caching explainer. For stability during promotion spikes, read our error-code troubleshooting handbook first and build 429 backoff into the call layer.
Human in the Loop, and What to Measure
The last mile is acceptance criteria. Common industry practice is shadow mode: the model drafts replies that are not sent, while human agents compare and score them; after launch, keep one-click escalation to humans plus sampled reviews. Beyond reply quality, watch three lines: escalation rate, wrong-answer rate (hallucinated replies), and average handling time. Launch is not the finish line — when policy documents change, the knowledge base and prompts need updating in sync, or off-target answers creep back within weeks. This article is compiled from publicly available materials.
大模型网摘