Cross-session memory
Remembering things about a customer
A customer tells your agent they prefer deliveries after 6 PM. When they come back in a new chat, the agent should already know that. Cross-session memory is what your agent carries from one conversation to the next: preferences, constraints, and facts the customer shared. Parlant does not store these itself. Instead it gives you two connection points, one that saves facts after each reply and one that reads them back before the next reply, so you can plug in the memory service you prefer.
- The difference between session memory and cross-session memory
- How a hook saves the exchange after each reply, without delaying it
- How a retriever brings saved facts into the next reply
- A complete example built on mem0, with notes for production
This playbook shows how to save useful facts from one conversation and retrieve them in another.
But first, a note about how memory works in Parlant. There are two kinds.
Session memory is the running conversation: its history and, once it grows long, a summary. Parlant manages that automatically, so you do not need to think about it.
Cross-session memory is what the agent should carry from one conversation to the next, like a preferred delivery window, some communication preferences, or a product the customer showed interest in.
A new session does not automatically include the old session's history. To reuse selected facts about a customer, store them under the customer's ID and retrieve them when they matter. For such memories, Parlant does not ship its own memory store, but it makes it easy to connect the memory store of your choice.
The integration needs two connection points: an engine hook that sends the exchange to the memory layer, and a retriever to read saved facts before a reply.