Skip to main content

2 posts tagged with "State Management"

Key topics and practices on State Management

View All Tags

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.