BroxiAI
  • Welcome
  • Account
    • Quickstart
    • Password
    • Team
      • Create team
      • Join team
      • Payment & Billing
      • Payment Policy
    • Global Variables
    • API Keys
  • Workflow
    • Overview
    • Quickstart
    • Components
    • Playground
    • Publish Workflow
    • File Manager
    • Webhook
  • Components
    • Input & Output
    • Agents
    • AI Models
    • Data
    • Embeddings
    • Helper
    • Loader
    • Logic
    • Memories
    • Processing
    • Prompt
    • Tools
    • Vector database
  • Advanced
    • Use Agent in flow
    • MCP Connect
    • MCP Astra DB
  • Integration
    • Apify
    • AssemblyAI
    • Composio
    • Google
      • Google Auth
      • Vertex AI
    • Notion
      • Setup
      • Notion Conversational Agent
      • Notion Meeting Notes Agent
Powered by GitBook
On this page
  • Use a memory component in a flow​
  • AstraDBChatMemory Component​
  • CassandraChatMemory Component​
  • Mem0 Chat Memory​
  • Redis Chat Memory​
  • Legacy components​
  1. Components

Memories

PreviousLogicNextProcessing

Last updated 13 days ago

Memory components store and retrieve chat messages by session_id.

They are distinct from vector store components, because they are built specifically for storing and retrieving chat messages from external databases.

Memory components provide access to their respective external databases as memory. This allows Large Language Models (LLMs) or to access external memory for persistence and context retention.

Use a memory component in a flow

This example flow stores and retrieves chat history from an Astra DB Chat Memory component with Store Message and Chat Memory components.

The Store Message helper component stores chat memories as objects, and the Message History helper component retrieves chat messages as objects or strings.

Sample Flow storing Chat Memory in AstraDB

This component creates an AstraDBChatMessageHistory instance, which stores and retrieves chat messages using Astra DB, a cloud-native database service.

Name
Type
Description

collection_name

String

Name of the Astra DB collection for storing messages. Required.

token

SecretString

Authentication token for Astra DB access. Required.

api_endpoint

SecretString

API endpoint URL for the Astra DB service. Required.

namespace

String

Optional namespace within Astra DB for the collection.

session_id

MessageText

Chat session ID. Uses current session ID if not provided.

Name
Type
Description

message_history

BaseChatMessageHistory

An instance of AstraDBChatMessageHistory for the session.

This component creates a CassandraChatMessageHistory instance, enabling storage and retrieval of chat messages using Apache Cassandra or DataStax Astra DB.

Name
Type
Description

database_ref

MessageText

Contact points for Cassandra or Astra DB database ID. Required.

username

MessageText

Username for Cassandra (leave empty for Astra DB).

token

SecretString

Password for Cassandra or token for Astra DB. Required.

keyspace

MessageText

Keyspace in Cassandra or namespace in Astra DB. Required.

table_name

MessageText

Name of the table or collection for storing messages. Required.

session_id

MessageText

Unique identifier for the chat session. Optional.

cluster_kwargs

Dictionary

Additional keyword arguments for Cassandra cluster configuration. Optional.

Name
Type
Description

message_history

BaseChatMessageHistory

An instance of CassandraChatMessageHistory for the session.

The Mem0 Chat Memory component retrieves and stores chat messages using Mem0 memory storage.

Name
Display Name
Info

mem0_config

Mem0 Configuration

Configuration dictionary for initializing Mem0 memory instance.

ingest_message

Message to Ingest

The message content to be ingested into Mem0 memory.

existing_memory

Existing Memory Instance

Optional existing Mem0 memory instance.

user_id

User ID

Identifier for the user associated with the messages.

search_query

Search Query

Input text for searching related memories in Mem0.

mem0_api_key

Mem0 API Key

API key for Mem0 platform (leave empty to use the local version).

metadata

Metadata

Additional metadata to associate with the ingested message.

openai_api_key

OpenAI API Key

API key for OpenAI. This item is required if you use OpenAI embeddings without a provided configuration.

Name
Display Name
Info

memory

Mem0 Memory

The resulting Mem0 Memory object after ingesting data.

search_results

Search Results

The search results from querying Mem0 memory.

This component retrieves and stores chat messages from Redis.

Name
Display Name
Info

host

hostname

IP address or hostname.

port

port

Redis Port Number.

database

database

Redis database.

username

Username

The Redis user name.

password

Password

The password for username.

key_prefix

Key prefix

Key prefix.

session_id

Session ID

Session ID for the message.

Name
Display Name
Info

memory

Memory

The Redis chat message history object

Legacy components are available to use but no longer supported.

This component creates a ZepChatMessageHistory instance, enabling storage and retrieval of chat messages using Zep, a memory server for Large Language Models (LLMs).

Name
Type
Description

url

MessageText

URL of the Zep instance. Required.

api_key

SecretString

API Key for authentication with the Zep instance.

api_base_path

Dropdown

API version to use. Options: "api/v1" or "api/v2".

session_id

MessageText

Unique identifier for the chat session. Optional.

Name
Type
Description

message_history

BaseChatMessageHistory

An instance of ZepChatMessageHistory for the session.

AstraDBChatMemory Component

Inputs

Outputs

CassandraChatMemory Component

Inputs

Outputs

Mem0 Chat Memory

Inputs

Outputs

Redis Chat Memory

Inputs

Outputs

Legacy components

ZepChatMemory Component

Inputs

Outputs

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
agents
​
Data
Data