Skip to main content
Memory Stores provide persistent storage for agent memories, allowing agents to retain and retrieve information across conversations and sessions. Unlike Knowledge Bases, Memory Stores are entity-scoped: each Memory within a store is tied to a specific entity (a user, session, or any object the application defines), enabling personalized, per-entity recall. Only long-term memory is currently supported: stored information persists indefinitely with no automatic expiration. To use a Memory Store with an Agent, see Connect Memory Stores.

Connect Memory Stores to Agents

Give the agent persistent per-entity memory across conversations.

Use Cases

Memory Stores store arbitrary text per entity, such as a user or session. Documents accumulate over time and are retrieved semantically on each interaction. Use when an agent needs to remember what a specific person said or did in a previous conversation.

Architecture

Create a Memory Store

Head to a Project, use the button, and select Knowledge > Memory Store.
Creating Memory Stores

Select Knowledge > Memory Store.

The following modal opens:
Memory Store Create

Enter the Memory Store information.

Ensure the description is thorough, as Agents use it to identify the correct Memory Store:
  • Good example: “Customer communication preferences, contact times, and support tier information for personalized outreach”
  • Bad example: “Customer data”

Manage Memories and Documents

A Memory represents a specific entity within a Memory Store, identified by an entity_id. Each Memory holds Documents: the actual text content embedded for semantic search.
Create an EntityOnce a Memory Store is created, select Add Entity, enter an ID for the entity, and press Save.
Memory Add Entity Studio

Choose a clear identifier to find entities later.

View MemoriesSelect an entity to see all Memory Documents stored for it. Each document shows the date it was recorded. Use date filters to narrow results.
Memory Store Date Filter

Use the date filters to find memories in an entity.

Add a Memory DocumentUse Add Memory to manually add a Memory Document to an entity. Fill in the content and press Add Memory.
Memories are best managed dynamically through the API. See the API & SDK tab for programmatic access.

Best Practices

Entity ID strategy: Use consistent, unique identifiers. Prefix by type (e.g., user_123, session_456) and keep IDs stable across all services. Descriptions: Write exhaustive Memory Store descriptions. Agents use them to identify the correct store to query. Organization: Create separate stores for different contexts (customers, products, sessions). Use descriptive keys. Metadata: Use tags for filtering and categorization, not for storing large text content. Keep data types consistent per field.
See Memory Stores powering real agent applications. Read our cookbooks Multi-Agent HR System and Chat History.