Skip to content

Skip to main content

Mem0 home pagelight logodark logo

Search...

Ctrl KAsk AI

Search...

Navigation

Developer Tools

Flowise

Welcome Mem0 Platform Open Source Cookbooks Integrations API Reference Release Notes

Overview
Agent Frameworks
Voice & Real-time
Cloud & Infrastructure
Developer Tools

On this page

The Mem0 Memory integration with Flowise enables persistent memory capabilities for your AI chatflows. Flowise is an open-source low-code tool for developers to build customized LLM orchestration flows & AI agents using a drag & drop interface.

Overview

  1. Provides persistent memory storage for Flowise chatflows
  2. Seamless integration with existing Flowise templates
  3. Compatible with various LLM nodes in Flowise
  4. Supports custom memory configurations
  5. Easy to set up and manage

Prerequisites

Before setting up Mem0 with Flowise, ensure you have:

  1. Flowise installed (NodeJS >= 18.15.0 required):
npm install -g flowise
npx flowise start
  1. Access to the Flowise UI at http://localhost:3000
  2. Basic familiarity with Flowise’s LLM orchestration concepts

Setup and Configuration

1. Set Up Flowise

  1. Open the Flowise application and create a new canvas, or select a template from the Flowise marketplace.
  2. In this example, we use the Conversation Chain template.
  3. Replace the default Buffer Memory with Mem0 Memory.

Flowise Memory Integration

2. Obtain Your Mem0 API Key

  1. Navigate to the Mem0 API Key dashboard.
  2. Generate or copy your existing Mem0 API Key.

Mem0 API Key

3. Configure Mem0 Credentials

  1. Enter the Mem0 API Key in the Mem0 Credentials section.
  2. Configure additional settings as needed:
{
  "apiKey": "m0-xxx",
  "userId": "user-123",  // Optional: Specify user ID
  "projectId": "proj-xxx",  // Optional: Specify project ID
  "orgId": "org-xxx"  // Optional: Specify organization ID
}

Memory Features

1. Basic Memory Storage

Test your memory configuration:

  1. Save your Flowise configuration
  2. Run a test chat and store some information
  3. Verify the stored memories in the Mem0 Dashboard

Flowise Test Chat

2. Memory Retention

Validate memory persistence:

  1. Clear the chat history in Flowise
  2. Ask a question about previously stored information
  3. Confirm that the AI remembers the context

Testing Memory Retention

Advanced Configuration

Memory Settings

Mem0 SettingsAvailable settings include:

  1. Search Only Mode: Enable memory retrieval without creating new memories

  2. Mem0 Entities: Configure identifiers:

    • user_id: Unique identifier for each user
    • run_id: Specific conversation session ID
    • app_id: Application identifier
    • agent_id: AI agent identifier
  3. Project ID: Assign memories to specific projects

  4. Organization ID: Organize memories by organization

Platform Configuration

Additional settings available in Mem0 Project Settings:

  1. Custom Instructions: Define memory extraction rules
  2. Expiration Date: Set automatic memory cleanup periods

Mem0 Project Settings

Best Practices

  1. User Identification: Use consistent user_id values for reliable memory retrieval
  2. Memory Organization: Utilize projects and organizations for better memory management
  3. Regular Maintenance: Monitor and clean up unused memories periodically

LangChain Integration \ \ Build LangChain-powered flows with memory

Dify Integration \ \ Create AI workflows with Dify platform

Was this page helpful?

YesNo

Suggest edits Raise issue

Dify\ \ Previous Langchain Tools\ \ Next

Ctrl+I

Assistant

Responses are generated using AI and may contain mistakes.

Suggestions

How do I configure Mem0 credentials?What are the prerequisites needed?How do I set up Mem0 in Flowise?

Contact support

Flowise Memory Integration

Mem0 API Key

Flowise Test Chat

Testing Memory Retention

Mem0 Settings

Mem0 Project Settings

SOP Documentation Site for Mem0