Cutting AI Customer Service Conversation Costs: Small-Large Model Collaboration and Full-Link Savings
Three months after the AI agent launches, finance comes knocking: per-conversation cost is 20% of a human agent's, but volume is ten times higher — the total bill doesn't save money. This is no outlier. Most teams waste AI customer service spend in three places: routing every question to the large model, carrying full context indiscriminately, and repeatedly retrieving and generating for identical questions. Cost reduction is not about cutting quality — it is about spending every cent of inference where it matters.
This is the eleventh post in an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an AI product manager at a Southeast Asian cross-border e-commerce platform. In this post I want to share how to control cost while preserving answer quality and task completion through small-large model collaboration, prompt optimization, context trimming, retrieval caching, and invocation strategies — for when the average cost per AI conversation runs too high.

Three Key Points in Cost Optimization
- Cost structure analysis: decompose conversation cost into input tokens, output tokens, call counts, and retrieval/tool overhead, and find the biggest slice.
- Small-large model collaboration and caching strategy: how split ratios are decided and how caches invalidate — with evidence.
- Quantified quality-cost trade-off thinking: every optimization must answer "how much saved, how much quality lost," inside a quality budget.
The Overall Design
1. Cost attribution first: read the bill before optimizing
Decompose per-conversation cost: input tokens (system prompt + history + retrieved content), output tokens, call counts, retrieval and tool overhead. For most teams the biggest slice is input tokens — because history and retrieved chunks are stuffed in wholesale every turn. Optimize the largest component first for maximum leverage.
2. Small-large model collaboration: 60% of traffic never needs the large model
- Intent recognition, language detection, query rewriting, simple FAQs go to small models or rule engines; only complex reasoning and generation uses the large model;
- Simple questions take the "small model + cache/script library" fast lane; the large model handles only long-tail complexity — this split typically covers 60%+ of traffic.
3. Prompt optimization: every token must earn its keep
- Compress the system prompt: trim instructions, keep few-shot examples to the minimum necessary, and compress retrieved content with prompt-compression techniques;
- Limit output length: require concise answers and cut formatting bloat — output tokens usually cost several times more than input;
- Establish a cost regression: every prompt change is evaluated for both quality and token consumption, preventing "slightly better but twice as expensive."
4. Context trimming: longer history is not better
- Keep only a summary relevant to the current task + the most recent N turns verbatim in multi-turn conversations; replace historical detail with summaries;
- After reranking, keep only the top 3–5 retrieved chunks and drop duplicates.
5. Retrieval caching and invocation strategy: don't call what you don't need to
- Return cached answers directly for identical or semantically similar questions (invalidate caches in lockstep with knowledge updates);
- Don't re-retrieve the same knowledge within a session; avoid redundant model calls — merge multiple clarification questions into one call.
6. Quality assurance loop: saving money must not hurt experience
Before shipping each optimization, verify on the evaluation set that accuracy and task completion do not drop (set an acceptable quality budget, e.g., ≤1%); monitor handoff rate online as the quality sentinel — when handoffs climb, the optimization probably hurt experience.
How This Maps to Weiyu
The Weiyu open-source customer service system (GitHub: https://github.com/bytedesk/bytedesk , website: https://www.weiyuai.cn ) natively supports this cost-cutting combo: multi-model integration lets teams configure tiered strategies like "small model for intent and simple Q&A, large model for complex generation"; FAQ and knowledge base capabilities absorb high-frequency standard questions, reducing model calls; the handoff path for AI misses or low confidence reserves the most expensive resource — human agents — for the conversations that need them most; conversation statistics track resolution and handoff rates as the quality sentinel throughout cost reduction.
Key Takeaways
- Attribute before optimizing: decompose cost to the token level; input tokens are usually the biggest slice.
- Small-large model split: 60%+ of traffic takes the small model + cache fast lane.
- Leaner prompts + shorter outputs: output tokens cost more per token — verbosity is burning money.
- Context trimming: summary + recent N turns + top 3–5 chunks is enough.
- Quality budget as the backstop: verify quality impact for every saving; handoff rate is the most sensitive alarm.
