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!
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
| Parameter | Type | Required | Description |
|---|
threadId | string | Yes | Unique identifier for the thread |
userId | string | Yes | User ID associated with the thread |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
threadId | string | The thread ID |
userId | string | The user ID |
uuid | string | Internal UUID |
createdAt | string | Creation timestamp |
projectUuid | string | Project UUID |
List all conversation threads
| Parameter | Type | Required | Description |
|---|
pageSize | number | No | Number of threads to retrieve per page |
pageNumber | number | No | Page number for pagination |
orderBy | string | No | Field to order results by (created_at, updated_at, user_id, thread_id) |
asc | boolean | No | Order direction: true for ascending, false for descending |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
threads | array | Array of thread objects |
responseCount | number | Number of threads in this response |
totalCount | number | Total number of threads available |
Delete a conversation thread from Zep
| Parameter | Type | Required | Description |
|---|
threadId | string | Yes | Thread ID to delete |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
deleted | boolean | Whether the thread was deleted |
Retrieve user context from a thread with summary or basic mode
| Parameter | Type | Required | Description |
|---|
threadId | string | Yes | Thread ID to get context from |
mode | string | No | Context mode: "summary" (natural language) or "basic" (raw facts) |
minRating | number | No | Minimum rating by which to filter relevant facts |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
context | string | The context string (summary or basic mode) |
Retrieve messages from a thread
| Parameter | Type | Required | Description |
|---|
threadId | string | Yes | Thread ID to get messages from |
limit | number | No | Maximum number of messages to return |
cursor | string | No | Cursor for pagination |
lastn | number | No | Number of most recent messages to return (overrides limit and cursor) |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
messages | array | Array of message objects |
rowCount | number | Number of messages in this response |
totalCount | number | Total number of messages in the thread |
Add messages to an existing thread
| Parameter | Type | Required | Description |
|---|
threadId | string | Yes | Thread ID to add messages to |
messages | json | Yes | Array of message objects with role and content |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
threadId | string | The thread ID |
added | boolean | Whether messages were added successfully |
messageIds | array | Array of added message UUIDs |
Create a new user in Zep
| Parameter | Type | Required | Description |
|---|
userId | string | Yes | Unique identifier for the user |
email | string | No | User email address |
firstName | string | No | User first name |
lastName | string | No | User last name |
metadata | json | No | Additional metadata as JSON object |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
userId | string | The user ID |
email | string | User email |
firstName | string | User first name |
lastName | string | User last name |
uuid | string | Internal UUID |
createdAt | string | Creation timestamp |
metadata | object | User metadata |
Retrieve user information from Zep
| Parameter | Type | Required | Description |
|---|
userId | string | Yes | User ID to retrieve |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
userId | string | The user ID |
email | string | User email |
firstName | string | User first name |
lastName | string | User last name |
uuid | string | Internal UUID |
createdAt | string | Creation timestamp |
updatedAt | string | Last update timestamp |
metadata | object | User metadata |
List all conversation threads for a specific user
| Parameter | Type | Required | Description |
|---|
userId | string | Yes | User ID to get threads for |
limit | number | No | Maximum number of threads to return |
apiKey | string | Yes | Your Zep API key |
| Parameter | Type | Description |
|---|
threads | array | Array of thread objects for this user |
totalCount | number | Total number of threads returned |