"Just plug an AI into customer service"-that's the biggest illusion of 2026. Put a raw LLM in front of customers and it'll cheerfully fabricate return policies, confidently promise features that don't exist, and keep apologizing while being chewed out. The core of a deployable AI support agent is never how strong the model is-it's whether you got three things right: knowledge base, safety backstop, and human handoff. This SOP builds a bot that can actually take customers, using the VPN-free domestic tools Coze / Dify.
Reality Check: AI Support Isn't "Wire Up an API and Go Live"
Hanging an LLM on the support window crashes in three ways:
- Hallucinated promises: a customer asks "can I return this," and the model, eager to please, invents a return policy you then have to clean up.
- Missing the point: a customer asks "where's my order," and the model lectures on logistics fundamentals because it has no order data.
- No stop condition: an angry customer berates it and it keeps politely apologizing, spiraling worse.
Root cause: the model knows "language," not "your business" or "when to shut up." The whole SOP is about filling those two gaps.
Architecture: Three Layers + One Backstop
A deployable AI support agent looks like this:
- Intent layer: first judge what the customer wants (check order / ask policy / complain / chitchat), and route accordingly.
- Knowledge layer: order checks hit the business-system API; policy questions hit the knowledge base (RAG); chitchat gets a lightweight reply.
- Reply layer: generate a response from retrieved results + persona.
- Backstop: detect emotion, repeated failures, or out-of-scope questions, and proactively hand off to a human.
Remember one line: half the work of a good AI support agent is "make it able to answer," the other half is "make it know when not to."
Step 1: Feed It the "Support Brain" (Knowledge Base)
The knowledge base is the agent's lifeblood. Without it, the model falls back on training-time general knowledge.
Prepare materials (the most common pitfalls live here):
- Return policy, warranty terms, shipping SLAs-organize as Q/A pairs, don't dump whole PDFs.
- Product specs, prices-structured tables, easier for the model to retrieve.
- Common troubleshooting-write as step-by-step docs.
Pitfall 1: uploading entire official docs whole-the model gets led astray by irrelevant paragraphs during retrieval. The right way is to split into "one topic per doc," each < 2000 words.
Chunking strategy (the make-or-break of RAG):
- For content with tables, chunk by "paragraph + whole table," don't slice tables mid-row.
- Overlap chunks 10-15% so key sentences aren't cut off.
- Add a reranker (BGE-Reranker); recall accuracy jumps immediately.
Pitfall 2: without a reranker, 3 of the top-5 recalled chunks are irrelevant and the model answers wrong anyway. Reranking is the leap from "retrieved" to "retrieved accurately."
Step 2: Build the Workflow (Coze Walkthrough)
Using Coze as the example (Dify is similar), the core nodes:
user input -> intent classification (LLM) -> routing -> [order API / knowledge retrieval / light reply] -> generate reply (LLM + persona) -> output
Intent classification prompt (copy directly):
You are a support intent classifier. Judge the intent of the user's message and output only one category:
- query_order: check order / shipping status
- ask_policy: ask about return / warranty / shipping policy
- complaint: complaint / emotional / requesting a human
- chitchat: small talk / greeting
Basis: the user's raw words. If the tone is heated or words like "human, complaint, refund" appear, classify as complaint.
User input: {{user_input}}Order checks go through the business-system API (Coze uses "plugins"), pulling the order status into the reply context. Note desensitization-filter by the current session user's identity so you don't leak another customer's order.
Step 3: Persona and Backstop (Human Handoff)
Support persona prompt (copy directly):
You are the support agent for "{{brand_name}}". Style: professional, concise, warm.
Rules (do not break):
1. Answer only from "knowledge base retrieval results" and "order data"-never fabricate.
2. If retrieval is empty or uncertain, say "let me confirm that for you" and trigger a human handoff.
3. Never promise policies outside the knowledge base (e.g., specific compensation amounts, shipping times).
4. If the user is emotional or asks for a human twice, hand off immediately.
Knowledge base retrieval results: {{retrieved_context}}
Order data: {{order_data}}
User input: {{user_input}}Pitfall 3: without an explicit "if uncertain, hand off" instruction, the model would rather fabricate than concede. This rule is the last line of defense against a major incident.
Handoff trigger: intent classification returns complaint, or the persona reply contains a "handoff" marker-the workflow jumps to the human node and notifies an agent.
Step 4: Test and Launch
Don't go full-volume on day one. Follow this cadence:
- Shadow mode: the AI runs alongside without replying to customers; humans compare and check whether the AI answered correctly, for 3 days.
- After-hours托管: first let the AI take over only when humans are off-duty-smaller scope, controllable risk.
- Grayscale rollout: route 20% of daytime traffic to the AI; monitor handoff and complaint rates.
- Full volume + continuous tuning: review the AI's wrong answers weekly and add them to the knowledge base.
Core metric: not "AI resolution rate," but "handoff rate + re-contact rate after AI resolution." High AI resolution with customers coming back means it answered wrong-worse than not answering.
Pitfall Log
- Pitfall 4 (data overreach): letting the AI query the full order database once returned customer A's order to customer B. Filter strictly by the current session user's identity-row-level permissions.
- Pitfall 5 (over-apologizing): the AI looped "we're very sorry," annoying customers more. Limit the persona to "at most one apology per session; give solutions, not apologies."
- Pitfall 6 (boundary overreach): when customers ask something entirely absent from the knowledge base (e.g., competitor comparisons), don't let the AI opine; standard reply "let me transfer you to a human colleague on this one" to avoid foot-in-mouth.
- Pitfall 7 (compliance marking): don't forget AIGC labeling-domestic rules require AI-generated content to be identifiable. The support opener should say "an AI agent is serving you."
Wrap-up
A deployable AI support agent is 30% model, 30% knowledge base, and 40% backstop and engineering. Nail "intent routing + knowledge retrieval + persona constraints + human-handoff backstop" and even a mediocre model is fine; skip these and even a top model is a ticking bomb. Run shadow mode first, then scale-never test on real customers.
References
- Coze official docs: www.coze.cn/docs
- Dify official docs: docs.dify.ai
- BGE Reranker model: huggingface.co/BAAI/bge-reranker-v2-m3