Overview
Theadd
operation is how you store memory into Mem0. Whether you’re working with a chatbot, a voice assistant, or a multi-agent system, this is the entry point to create long-term memory.
Memories typically come from a user-assistant interaction and Mem0 handles the extraction, transformation, and storage for you.
Mem0 offers two implementation flows:
- Mem0 Platform (Managed, scalable, with dashboard + API)
- Mem0 Open Source (Lightweight, fully local, flexible SDKs)
Architecture

Architecture diagram illustrating the process of adding memories.
add
, Mem0 performs the following steps under the hood:
- Information Extraction The input messages are passed through an LLM that extracts key facts, decisions, preferences, or events worth remembering.
- Conflict Resolution Mem0 compares the new memory against existing ones to detect duplication or contradiction and handles updates accordingly.
- Memory Storage The result is stored in a vector database (for semantic search) and optionally in a graph structure (for relationship mapping).
Example: Mem0 Platform
Example: Mem0 Open Source
When Should You Add Memory?
Add memory whenever your agent learns something useful:- A new user preference is shared
- A decision or suggestion is made
- A goal or task is completed
- A new entity is introduced
- A user gives feedback or clarification