Skip to main content

Chat Memory

Langflow allows every chat message to be stored, and a single flow can have multiple memory sessions. This enables you to create separate memories for agents to store and recall information as needed.

In any project, as long as there are Chat being used, memories are always being stored by default. These are messages from a user to the AI or vice-versa.

To see and access this history of messages, Langflow features a component called Chat Memory. It retrieves previous messages and outputs them in structured format or parsed.

To learn the basics about memory in Langflow, check out the Memory Chatbot starter example.

Memories can be visualized and managed directly from the Playground. You can edit and remove previous messages to inspect and validate the AI’s response behavior. You can remove or edit previous messages to get your models acting just right.

Modifying these memories will influence the behavior of the chatbot responses, as long as an agent uses them. Here you have the ability to remove or edit previous messages, allowing them to manipulate and explore how these changes affect model responses.

Session ID


Chat conversations store messages categorized by a Session ID. A a single flow can host multiple session IDs, and different flows can also share the same one.

The Chat Memory component also retrieves message histories by Session ID which users can change in the advanced settings.

By default, if the Session ID value is empty, it is set to match the the same value as the Flow ID.

You can also display all messages stored across every flow and session by going to Settings > Messages.

Hi, how can I help you?