Skip to main content

5 posts tagged with "Multi-turn Dialogue"

Multi-turn dialogue, context memory and task state management

View All Tags

Why AI Customer Service Forgets in Long Conversations? Four Context Engineering Practices

· 7 min read
Jack Ning
Maintainer of Bytedesk

Every AI customer service deployment has a signature moment of failure: at turn 25 the user says "remember the order number I just gave you," and the bot answers off-topic — or worse, resurrects the old order number the user corrected back at turn 3. To the user, the bot "has amnesia." Inside the system, the real cause is usually one of two things: too much context stuffed in, diluting the key facts — or compression applied too aggressively, deleting them outright.

This post is part of the "AI Customer Service Product and Engineering Practices" experience-sharing series for product managers and developers. The material comes from a front-line team's retrospective, and the core question is single: in long conversations, how should context be organized so the model remembers and the cost stays down? The answer condenses into four practices: fix the order, compress history, use the cache, and pin the state.

Keeping Multi-turn Dialogue on Track: Conversation Memory, Task State, and Intent Changes

· 6 min read
Jack Ning
Maintainer of Bytedesk

Two turns ago the user asked "can I change the delivery address", and the bot explained the process clearly; a couple of turns later the user says "use the same shipment as before, forget the address, change the time instead"—and the bot replies "which order do you want to modify?" The user's temper flares instantly: we were just talking about it! Worse failures follow: some systems execute both the address change and the time change, or go ahead with the address change the user explicitly retracted. Context loss, intent changes, and duplicate execution are the three most frequent incidents in multi-turn service, and they share one root cause: the system only stores chat history, with no independent conversation memory or task state design.

This post is part of the "AI Customer Service Product and Engineering Practices" experience-sharing series, drawn from a practice review of an AI customer service product at a leading logistics company. In this post I want to share how to design conversation memory, task state tracking, and dynamic decision mechanisms that improve an AI agent's ability to handle complex issues continuously when it loses context, misses user intent changes, or repeatedly executes operations across multi-turn service. This is the foundation of multi-turn service—without solid memory and state design, every conversation afterward runs on luck.

Intent Recognition and Multi-turn Dialogue Design for Complex Scenarios

· 4 min read
Jack Ning
Maintainer of Bytedesk

A user sends "this one isn't like the last one right? then if I return it who pays shipping?"—mixed languages, three intents, plus a pronoun reference. A keyword-matching bot would answer in three different directions; a fully free-form LLM blows the latency and cost budget. Ambiguous phrasing, mixed intents, multi-turn follow-ups, and code-switching are the four problems that surface first after an AI support system goes live.

This post is part of an experience-sharing series on "AI customer service product and engineering practice", drawn from hands-on practice at a global fast-fashion cross-border e-commerce platform. In this post I want to share how to design intent recognition, entity extraction, context understanding, and multi-turn dialogue mechanisms for ambiguous expressions, mixed intents, multi-turn follow-ups, and multilingual mixing, and how to keep lifting recognition accuracy in complex consultation scenarios.

Multi-Intent Dialogue State Management: Task Stack, Context Isolation, and Idempotent Orchestration

· 5 min read
Jack Ning
Maintainer of Bytedesk

In one IM session a user says three things: "change my address to my office," "where is my order," and "I want a refund on that previous order." Many customer service systems fall apart right here: querying order A's status but applying it to order B, submitting the refund twice, or completely forgetting the address change when the user circles back.

This is the fifth article in an experience-sharing series on "AI customer service product and engineering practice," drawn from hands-on practice as an AI Product Manager focused on IM intelligent customer service at a local-life services platform. In this post I want to share how to design multi-turn dialogue state management, task switching, and tool orchestration when a user raises multiple requests in IM—order modification, delivery progress query, refund application—and the Agent must call different business systems, avoiding context confusion, duplicate execution, and task interruption.

This is where task-oriented Agents most often fail—single-task demos flow smoothly; concurrent tasks reveal the truth.

State Management in Multi-Turn Dialogue: Session State, Context Memory, and Persistence Design

· 4 min read
Jack Ning
Maintainer of Bytedesk

User: "Check my order." AI: "Sure, please provide the order number." User: "Did you find it?" AI: "Which order do you want to check?" — What this exchange exposes is not a dumb model but missing session state. The order number the user gave five minutes ago, the logistics issue they discussed — the model forgets instantly. Experience gaps in multi-turn dialogue come from state management far more often than from model capability.

This is the twelfth 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 design session state, context memory, key information extraction, and state persistence for multi-turn dialogue where a user first queries an order, then follows up on a logistics exception and refund conditions — avoiding context loss, repeated questions, and task-state confusion.