Use Zep to manage users, conversation threads, messages, and retrieved context across workflow runs. Add messages after an interaction, then retrieve user context for a later agent step.
Integrate Zep for long-term memory management. Create threads, add messages, retrieve context with AI-powered summaries and facts extraction.
Start a new conversation thread in Zep
Inputs and outputsParameter Type Required Description threadIdstring Yes Unique identifier for the thread (e.g., "thread_abc123") userIdstring Yes User ID associated with the thread (e.g., "user_123") apiKeystring Yes Your Zep API key
Parameter Type Description threadIdstring Thread identifier userIdstring Associated user ID uuidstring Internal UUID createdAtstring Creation timestamp (ISO 8601) projectUuidstring Project UUID
List all conversation threads
Inputs and outputsParameter Type Required Description pageSizenumber No Number of threads to retrieve per page (e.g., 10, 25, 50) pageNumbernumber No Page number for pagination (e.g., 1, 2, 3) orderBystring No Field to order results by (created_at, updated_at, user_id, thread_id) ascboolean No Order direction: true for ascending, false for descending apiKeystring Yes Your Zep API key
Parameter Type Description threadsarray Array of thread objects ↳ threadId string Thread identifier ↳ userId string Associated user ID ↳ uuid string Internal UUID ↳ createdAt string Creation timestamp (ISO 8601) ↳ updatedAt string Last update timestamp (ISO 8601) ↳ projectUuid string Project UUID ↳ metadata object Custom metadata (dynamic key-value pairs) responseCountnumber Number of items in this response totalCountnumber Total number of items available
Delete a conversation thread from Zep
Inputs and outputsParameter Type Required Description threadIdstring Yes Thread ID to delete (e.g., "thread_abc123") apiKeystring Yes Your Zep API key
Parameter Type Description deletedboolean Whether the thread was deleted
Retrieve user context from a thread with summary or basic mode
Inputs and outputsParameter Type Required Description threadIdstring Yes Thread ID to get context from (e.g., "thread_abc123") modestring No Context mode: "summary" (natural language) or "basic" (raw facts) minRatingnumber No Minimum rating by which to filter relevant facts apiKeystring Yes Your Zep API key
Parameter Type Description contextstring The context string (summary or basic mode)
Retrieve messages from a thread
Inputs and outputsParameter Type Required Description threadIdstring Yes Thread ID to get messages from (e.g., "thread_abc123") limitnumber No Maximum number of messages to return (e.g., 10, 50, 100) cursorstring No Cursor for pagination lastnnumber No Number of most recent messages to return (overrides limit and cursor) apiKeystring Yes Your Zep API key
Parameter Type Description messagesarray Array of message objects ↳ uuid string Message UUID ↳ role string Message role (user, assistant, system, tool) ↳ roleType string Role type (AI, human, tool) ↳ content string Message content ↳ name string Sender name ↳ createdAt string Timestamp (RFC3339 format) ↳ metadata object Message metadata (dynamic key-value pairs) ↳ processed boolean Whether message has been processed rowCountnumber Number of rows returned totalCountnumber Total number of items available
Add messages to an existing thread
Inputs and outputsParameter Type Required Description threadIdstring Yes Thread ID to add messages to (e.g., "thread_abc123") messagesjson Yes Array of message objects with role and content (e.g., [{"role": "user", "content": "Hello"}]) apiKeystring Yes Your Zep API key
Parameter Type Description threadIdstring Thread identifier addedboolean Whether messages were added successfully messageIdsarray Array of added message UUIDs
Create a new user in Zep
Inputs and outputsParameter Type Required Description userIdstring Yes Unique identifier for the user (e.g., "user_123") emailstring No User email address firstNamestring No User first name lastNamestring No User last name metadatajson No Additional metadata as JSON object (e.g., {"key": "value"}) apiKeystring Yes Your Zep API key
Parameter Type Description userIdstring User identifier emailstring User email address firstNamestring User first name lastNamestring User last name uuidstring Internal UUID createdAtstring Creation timestamp (ISO 8601) metadataobject User metadata (dynamic key-value pairs)
Retrieve user information from Zep
Inputs and outputsParameter Type Required Description userIdstring Yes User ID to retrieve (e.g., "user_123") apiKeystring Yes Your Zep API key
Parameter Type Description userIdstring User identifier emailstring User email address firstNamestring User first name lastNamestring User last name uuidstring Internal UUID createdAtstring Creation timestamp (ISO 8601) updatedAtstring Last update timestamp (ISO 8601) metadataobject User metadata (dynamic key-value pairs)
List all conversation threads for a specific user
Inputs and outputsParameter Type Required Description userIdstring Yes User ID to get threads for (e.g., "user_123") limitnumber No Maximum number of threads to return (e.g., 10, 25, 50) apiKeystring Yes Your Zep API key
Parameter Type Description threadsarray Array of thread objects ↳ threadId string Thread identifier ↳ userId string Associated user ID ↳ uuid string Internal UUID ↳ createdAt string Creation timestamp (ISO 8601) ↳ updatedAt string Last update timestamp (ISO 8601) ↳ projectUuid string Project UUID ↳ metadata object Custom metadata (dynamic key-value pairs) totalCountnumber Total number of items available