Skip to content

More Integrations Fresh

Additional Mem0 integrations for various platforms and tools.


Dify

Mem0 functions as a memory layer for Dify AI, enabling persistent storage and retrieval of conversations.

Setup

  1. Install the Mem0 plugin from the Dify Marketplace
  2. Create or open a Dify project workspace
  3. Add the Mem0 plugin to your project
  4. Configure Mem0 settings (storage preferences, search parameters)
  5. Implement Mem0 in your workflow to store conversation turns

Agents can store every conversation turn and retrieve previous interactions for multi-turn dialogues.


Flowise

Mem0 adds persistent memory capabilities to Flowise chatflows.

Setup

  1. Install Flowise (NodeJS >= 18.15.0)
  2. Replace default Buffer Memory with Mem0 Memory node in your canvas
  3. Enter your Mem0 API key and optional user ID, project ID, organization ID
  4. Configure advanced settings including search-only mode

Supports configurable entities: user_id, run_id, app_id, agent_id.


LangChain Tools

Build structured LangChain tools powered by Mem0 for add, search, and get_all operations.

Installation

bash
pip install langchain_core mem0ai

ADD Tool

python
from langchain_core.tools import StructuredTool
from mem0 import MemoryClient

client = MemoryClient(org_id="your_org_id", project_id="your_project_id")

def add_memory(messages, user_id, metadata=None):
    message_dicts = [msg.dict() for msg in messages]
    return client.add(message_dicts, user_id=user_id, metadata=metadata)

add_tool = StructuredTool(
    name="add_memory",
    description="Add new messages to memory",
    func=add_memory,
    args_schema=AddMemoryInput
)

SEARCH Tool

python
def search_memory(query, filters):
    return client.search(query=query, filters=filters)

search_tool = StructuredTool(
    name="search_memory",
    description="Search through memories",
    func=search_memory,
    args_schema=SearchMemoryInput
)

GET_ALL Tool

python
def get_all_memory(filters, page=1, page_size=50):
    return client.get_all(filters=filters, page=page, page_size=page_size)

get_all_tool = StructuredTool(
    name="get_all_memory",
    description="Retrieve all memories matching filters",
    func=get_all_memory,
    args_schema=GetAllMemoryInput
)

AgentOps

Automatic monitoring, analytics, and real-time tracking of memory operations.

Installation

bash
pip install mem0ai agentops python-dotenv

Wrap memory operations with agentops.start_trace() and agentops.end_trace() for automatic tracking of add, search, delete operations with performance metrics.


Keywords AI

Combine Mem0's persistent memory with Keywords AI's LLM observability platform.

Installation

bash
pip install mem0 keywordsai-sdk

Configure Keywords AI as the LLM provider by setting the base URL to https://api.keywordsai.co/api/ with your KEYWORDSAI_API_KEY.


Raycast

A Mem0 extension for Raycast providing intelligent memory management.

Setup

  1. Search "Mem0" in the Raycast Store
  2. Create an account at app.mem0.ai
  3. Copy your API key
  4. Enter the key in extension preferences

Store memories, retrieve context-aware information, manage preferences, and search through stored memories.

SOP Documentation Site for Mem0