Zep

Long-term memory for AI agents

Enhance your AI agents with reliable long-term memory using Zep – the memory solution designed for LLM-based applications. Zep provides seamless storage, retrieval, and management of conversational context, allowing your agents to remember conversations and facts across sessions.

With the Zep integration, you can:

  • Store and retrieve chat history: Maintain detailed records of entire conversations with robust APIs for adding and retrieving messages.
  • Summarize conversations: Access AI-powered summaries of threads, helping agents recall key facts and context efficiently.
  • Extract and store structured facts: Automatically pull out and manage important facts from conversations for persistent memory and reference.
  • Enrich agent responses: Use stored knowledge to provide contextually aware interactions and decrease repetitive or irrelevant responses.
  • Centralize memory management: Sync memory data directly with your workflows and ensure your agents always have access to critical user information.
  • Scale with privacy and control: Manage memory for millions of users while maintaining control over data retention and access.

Zep empowers developers to build smarter, more contextual, and helpful AI applications. Focus on building great experiences—leave the memory to Zep.

Unlock richer conversations and more capable agents by integrating Zep into your automated workflows today!

Usage Instructions

Integrate Zep for long-term memory management. Create threads, add messages, retrieve context with AI-powered summaries and facts extraction.

Tools

zep_create_thread

Start a new conversation thread in Zep

Input

ParameterTypeRequiredDescription
threadIdstringYesUnique identifier for the thread (e.g., "thread_abc123")
userIdstringYesUser ID associated with the thread (e.g., "user_123")
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadIdstringThread identifier
userIdstringAssociated user ID
uuidstringInternal UUID
createdAtstringCreation timestamp (ISO 8601)
projectUuidstringProject UUID

zep_get_threads

List all conversation threads

Input

ParameterTypeRequiredDescription
pageSizenumberNoNumber of threads to retrieve per page (e.g., 10, 25, 50)
pageNumbernumberNoPage number for pagination (e.g., 1, 2, 3)
orderBystringNoField to order results by (created_at, updated_at, user_id, thread_id)
ascbooleanNoOrder direction: true for ascending, false for descending
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadsarrayArray of thread objects
threadIdstringThread identifier
userIdstringAssociated user ID
uuidstringInternal UUID
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)
projectUuidstringProject UUID
metadataobjectCustom metadata (dynamic key-value pairs)
responseCountnumberNumber of items in this response
totalCountnumberTotal number of items available

zep_delete_thread

Delete a conversation thread from Zep

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to delete (e.g., "thread_abc123")
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
deletedbooleanWhether the thread was deleted

zep_get_context

Retrieve user context from a thread with summary or basic mode

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to get context from (e.g., "thread_abc123")
modestringNoContext mode: "summary" (natural language) or "basic" (raw facts)
minRatingnumberNoMinimum rating by which to filter relevant facts
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
contextstringThe context string (summary or basic mode)

zep_get_messages

Retrieve messages from a thread

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to get messages from (e.g., "thread_abc123")
limitnumberNoMaximum number of messages to return (e.g., 10, 50, 100)
cursorstringNoCursor for pagination
lastnnumberNoNumber of most recent messages to return (overrides limit and cursor)
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
messagesarrayArray of message objects
uuidstringMessage UUID
rolestringMessage role (user, assistant, system, tool)
roleTypestringRole type (AI, human, tool)
contentstringMessage content
namestringSender name
createdAtstringTimestamp (RFC3339 format)
metadataobjectMessage metadata (dynamic key-value pairs)
processedbooleanWhether message has been processed
rowCountnumberNumber of rows returned
totalCountnumberTotal number of items available

zep_add_messages

Add messages to an existing thread

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to add messages to (e.g., "thread_abc123")
messagesjsonYesArray of message objects with role and content (e.g., [{"role": "user", "content": "Hello"}])
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadIdstringThread identifier
addedbooleanWhether messages were added successfully
messageIdsarrayArray of added message UUIDs

zep_add_user

Create a new user in Zep

Input

ParameterTypeRequiredDescription
userIdstringYesUnique identifier for the user (e.g., "user_123")
emailstringNoUser email address
firstNamestringNoUser first name
lastNamestringNoUser last name
metadatajsonNoAdditional metadata as JSON object (e.g., {"key": "value"})
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringUser identifier
emailstringUser email address
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp (ISO 8601)
metadataobjectUser metadata (dynamic key-value pairs)

zep_get_user

Retrieve user information from Zep

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to retrieve (e.g., "user_123")
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringUser identifier
emailstringUser email address
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)
metadataobjectUser metadata (dynamic key-value pairs)

zep_get_user_threads

List all conversation threads for a specific user

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to get threads for (e.g., "user_123")
limitnumberNoMaximum number of threads to return (e.g., 10, 25, 50)
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadsarrayArray of thread objects
threadIdstringThread identifier
userIdstringAssociated user ID
uuidstringInternal UUID
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)
projectUuidstringProject UUID
metadataobjectCustom metadata (dynamic key-value pairs)
totalCountnumberTotal number of items available

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