Short-Term Memory, Dialogue State, and Context Compression: Engineering Long Conversations That Don't Break
After-sales conversations fail in a characteristic way: the user first gives a wrong order number and corrects it two turns later; mid-way they say "change the refund to a return"; the next day they come back asking "how did yesterday's case go?" If the system just dumps the whole chat history into the LLM, three accidents are likely: acting on the pre-correction order number, blending the refund and the return into one muddle, and starting from zero when they return the next day.
This post is part of an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an intelligent service product manager at a large general e-commerce platform. In this post I want to share how to design short-term memory, dialogue state management, context compression, and information verification for complex after-sales scenarios where users modify needs mid-conversation, correct earlier information, switch topics, or re-enter after an interruption — avoiding context pollution, information loss, and wrong reasoning.
This is context engineering — the most underrated hard skill for product managers in the LLM era.
