Sim

Memory

Add memory store

Usage Instructions

Integrate Memory into the workflow. Can add, get a memory, get all memories, and delete memories.

Tools

memory_add

Add a new memory to the database or append to existing memory with the same ID.

Input

ParameterTypeRequiredDescription
conversationIdstringNoConversation identifier (e.g., user-123, session-abc). If a memory with this conversationId already exists for this block, the new message will be appended to it.
idstringNoLegacy parameter for conversation identifier. Use conversationId instead. Provided for backwards compatibility.
rolestringYesRole for agent memory (user, assistant, or system)
contentstringYesContent for agent memory
blockIdstringNoOptional block ID. If not provided, uses the current block ID from execution context, or defaults to "default".

Output

ParameterTypeDescription
successbooleanWhether the memory was added successfully
memoriesarrayArray of memory objects including the new or updated memory
errorstringError message if operation failed

memory_get

Retrieve memory by conversationId, blockId, blockName, or a combination. Returns all matching memories.

Input

ParameterTypeRequiredDescription
conversationIdstringNoConversation identifier (e.g., user-123, session-abc). If provided alone, returns all memories for this conversation across all blocks.
idstringNoLegacy parameter for conversation identifier. Use conversationId instead. Provided for backwards compatibility.
blockIdstringNoBlock identifier. If provided alone, returns all memories for this block across all conversations. If provided with conversationId, returns memories for that specific conversation in this block.
blockNamestringNoBlock name. Alternative to blockId. If provided alone, returns all memories for blocks with this name. If provided with conversationId, returns memories for that conversation in blocks with this name.

Output

ParameterTypeDescription
successbooleanWhether the memory was retrieved successfully
memoriesarrayArray of memory objects with conversationId, blockId, blockName, and data fields
messagestringSuccess or error message
errorstringError message if operation failed

memory_get_all

Retrieve all memories from the database

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
successbooleanWhether all memories were retrieved successfully
memoriesarrayArray of all memory objects with key, conversationId, blockId, blockName, and data fields
messagestringSuccess or error message
errorstringError message if operation failed

memory_delete

Delete memories by conversationId, blockId, blockName, or a combination. Supports bulk deletion.

Input

ParameterTypeRequiredDescription
conversationIdstringNoConversation identifier (e.g., user-123, session-abc). If provided alone, deletes all memories for this conversation across all blocks.
idstringNoLegacy parameter for conversation identifier. Use conversationId instead. Provided for backwards compatibility.
blockIdstringNoBlock identifier. If provided alone, deletes all memories for this block across all conversations. If provided with conversationId, deletes memories for that specific conversation in this block.
blockNamestringNoBlock name. Alternative to blockId. If provided alone, deletes all memories for blocks with this name. If provided with conversationId, deletes memories for that conversation in blocks with this name.

Output

ParameterTypeDescription
successbooleanWhether the memory was deleted successfully
messagestringSuccess or error message
errorstringError message if operation failed

Notes

  • Category: blocks
  • Type: memory
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started