docs/versioned_docs/version-1.9.0/Components/bundles-mem0.mdx
import Icon from "@site/src/components/icon"; import PartialParams from '@site/docs/_partial-hidden-params.mdx';
<Icon name="Blocks" aria-hidden="true" /> Bundles contain custom components that support specific third-party integrations with Langflow.
This page describes the components that are available in the Mem0 bundle.
The Mem0 Chat Memory component retrieves and stores chat messages using Mem0 memory storage.
| Name | Display Name | Info |
|---|---|---|
| mem0_config | Mem0 Configuration | Input parameter. The configuration dictionary for initializing the Mem0 memory instance. |
| ingest_message | Message to Ingest | Input parameter. The message content to be ingested into Mem0 memory. |
| existing_memory | Existing Memory Instance | Input parameter. An optional existing Mem0 memory instance. |
| user_id | User ID | Input parameter. The identifier for the user associated with the messages. |
| search_query | Search Query | Input parameter. The input text for searching related memories in Mem0. |
| mem0_api_key | Mem0 API Key | Input parameter. The API key for the Mem0 platform. Leave empty to use the local version. |
| metadata | Metadata | Input parameter. The additional metadata to associate with the ingested message. |
| openai_api_key | OpenAI API Key | Input parameter. The API key for OpenAI. Required when using OpenAI embeddings without a provided configuration. |
The Mem0 Chat Memory component can output either Mem0 Memory (Memory) or Search Results (JSON).
You can select the output type near the component's output port.
Use Mem0 Chat Memory for memory storage and retrieval operations with the Message History component.
Use the Search Results output to retrieve specific memories based on a search query.