Sim

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
userIdstringYesUser ID associated with the thread
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadIdstringThe thread ID
userIdstringThe user ID
uuidstringInternal UUID
createdAtstringCreation timestamp
projectUuidstringProject UUID

zep_get_threads

List all conversation threads

Input

ParameterTypeRequiredDescription
pageSizenumberNoNumber of threads to retrieve per page
pageNumbernumberNoPage number for pagination
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
responseCountnumberNumber of threads in this response
totalCountnumberTotal number of threads available

zep_delete_thread

Delete a conversation thread from Zep

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to delete
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
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
limitnumberNoMaximum number of messages to return
cursorstringNoCursor for pagination
lastnnumberNoNumber of most recent messages to return (overrides limit and cursor)
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
messagesarrayArray of message objects
rowCountnumberNumber of messages in this response
totalCountnumberTotal number of messages in the thread

zep_add_messages

Add messages to an existing thread

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to add messages to
messagesjsonYesArray of message objects with role and content
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadIdstringThe thread ID
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
emailstringNoUser email address
firstNamestringNoUser first name
lastNamestringNoUser last name
metadatajsonNoAdditional metadata as JSON object
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringThe user ID
emailstringUser email
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp
metadataobjectUser metadata

zep_get_user

Retrieve user information from Zep

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to retrieve
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringThe user ID
emailstringUser email
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
metadataobjectUser metadata

zep_get_user_threads

List all conversation threads for a specific user

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to get threads for
limitnumberNoMaximum number of threads to return
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadsarrayArray of thread objects for this user
totalCountnumberTotal number of threads returned
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