New274+ blocks and 249+ tools are now fully documented
Search & Research
Block

Zep Block

Long-term agent memory

The Zep block gives your AI agents long-term memory using Zep. Create users and threads, add and read messages, list threads, and retrieve the synthesized memory context block that keeps agents grounded across workflow executions.

Overview

PropertyValue
Typezep
Categorytools
Color#0E9F6E

When to Use

  • Persist conversation history on a thread so an agent remembers prior turns across runs
  • Create users and scope memory (threads, messages, facts) to a specific user ID
  • Retrieve a compact, prompt-ready memory context block instead of replaying every message
  • List a user's threads or all threads to build memory-management or admin flows
  • Clean up stale conversations by deleting threads and their messages

Configuration

Operation

Dropdown that selects which action to perform. Defaults to add_messages.

LabelID
Add Messagesadd_messages
Get Messagesget_messages
Get Contextget_context
Create Threadcreate_thread
Delete Threaddelete_thread
Get Threadsget_threads
Add Useradd_user
Get Userget_user
Get User Threadsget_user_threads

Thread ID

Required for add_messages, get_messages, get_context, create_thread, and delete_thread. Identifies the conversation thread.

User ID

Required for create_thread, add_user, get_user, and get_user_threads. Scopes memory to a specific user.

Messages

Shown only when operation is add_messages. Required. A non-empty JSON array of message objects, each with role and content (e.g. [{"role": "user", "content": "Hi, my name is Ada"}]).

Email / First Name / Last Name / Metadata

Shown only when operation is add_user. All optional. Metadata is arbitrary JSON attached to the user.

Message Limit

Shown only when operation is get_messages. Optional. Caps the number of messages returned.

Minimum Fact Rating

Shown only when operation is get_context. Optional. Filters out facts below the given confidence rating (0–1).

Page Number / Page Size

Shown only when operation is get_threads. Optional pagination controls for listing threads.

API Key

Required for all operations. Your Zep API key, entered as a password field. Also available as the ZEP_API_KEY environment variable.

Outputs

FieldTypeDescription
successbooleanWhether a mutating operation succeeded
messagesjsonMessages returned by the API
contextstringSynthesized memory context block
threadjsonThread object
threadsjsonList of threads
userjsonUser object
total_countnumberTotal count for list operations
row_countnumberNumber of rows returned

Example

Workflow:

[Starter] → [Zep: Get Context] → [Agent: Reply with memory] → [Zep: Add Messages]

Pull the memory context for a thread, let an Agent respond with that context in its prompt, then write the new turn back to the thread so the memory stays current.