Sim Studio

Mem0

Agent memory management

Mem0 is a powerful memory management system designed specifically for AI agents. It provides a persistent, searchable memory store that enables agents to remember past interactions, learn from experiences, and maintain context across conversations and workflow executions.

With Mem0, you can:

  • Store agent memories: Save conversation history, user preferences, and important context
  • Retrieve relevant information: Use semantic search to find the most relevant past interactions
  • Build context-aware agents: Enable your agents to reference past conversations and maintain continuity
  • Personalize interactions: Tailor responses based on user history and preferences
  • Implement long-term memory: Create agents that learn and adapt over time
  • Scale memory management: Handle memory needs for multiple users and complex workflows

In Sim Studio, the Mem0 integration enables your agents to maintain persistent memory across workflow executions. This allows for more natural, context-aware interactions where agents can recall past conversations, remember user preferences, and build upon previous interactions. By connecting Sim Studio with Mem0, you can create agents that feel more human-like in their ability to remember and learn from past experiences. The integration supports adding new memories, searching existing memories semantically, and retrieving specific memory records. This memory management capability is essential for building sophisticated agents that can maintain context over time, personalize interactions based on user history, and continuously improve their performance through accumulated knowledge.

Usage Instructions

Add, search, retrieve, and delete memories using Mem0. Store conversation history, user preferences, and context across workflow executions for enhanced AI agent capabilities.

Tools

mem0_add_memories

Add memories to Mem0 for persistent storage and retrieval

Input

ParameterTypeRequiredDescription
apiKeystringYesYour Mem0 API key
userIdstringYesUser ID associated with the memory
messagesjsonYesArray of message objects with role and content
versionstringNoAPI version to use (v1 or v2). Use v2 if unsure.

Output

ParameterType
memoriesstring

mem0_search_memories

Search for memories in Mem0 using semantic search

Input

ParameterTypeRequiredDescription
apiKeystringYesYour Mem0 API key
userIdstringYesUser ID to search memories for
querystringYesSearch query to find relevant memories
limitnumberNoMaximum number of results to return
versionstringNoAPI version to use (v1 or v2). Use v2 if unsure.

Output

ParameterType
searchResultsstring
idsstring

mem0_get_memories

Retrieve memories from Mem0 by ID or filter criteria

Input

ParameterTypeRequiredDescription
apiKeystringYesYour Mem0 API key
userIdstringYesUser ID to retrieve memories for
memoryIdstringNoSpecific memory ID to retrieve
startDatestringNoStart date for filtering by created_at (format: YYYY-MM-DD)
endDatestringNoEnd date for filtering by created_at (format: YYYY-MM-DD)
limitnumberNoMaximum number of results to return
versionstringNoAPI version to use (v1 or v2). Use v2 if unsure.

Output

ParameterType
datastring

Block Configuration

Input

ParameterTypeRequiredDescription
operationstringYesOperation

Outputs

OutputTypeDescription
responseobjectOutput from response
idsanyids of the response
memoriesanymemories of the response
searchResultsanysearchResults of the response

Notes

  • Category: tools
  • Type: mem0
On this page

On this page