Skip to main content
Zep logo
  • Category: artificial intelligence
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 41
  • Triggers: 0
  • Slug: ZEP
  • Version: 20260615_00

Tools

Slug: ZEP_ADD_FACT_TRIPLETool to add a manually specified fact triple (subject-predicate-object) to the Zep knowledge graph. Use when you need to add explicit relationships between entities. Returns a task_id to monitor processing status.

Input Parameters

string
required
The fact relating the two nodes that this edge represents
string
Add data to a user graph by providing a user_id
string
The graph ID to add data to (alternative to user_id/group_id)
string
Add data to a group graph by providing a group_id
string
The time when the fact becomes valid (ISO 8601 format)
string
required
The name of the edge to add. Should be all caps using snake case (e.g., RELATES_TO, WORKS_WITH)
string
The UUID of the edge to add
string
The timestamp when the edge was created (ISO 8601 format)
string
The time (if any) at which the edge expires (ISO 8601 format)
string
The time (if any) at which the fact stops being true (ISO 8601 format)
string
The name of the source node to add
string
UUID of the source node
string
required
The name of the target node to add
string
UUID of the target node
string
The summary of the source node to add
string
The summary of the target node to add

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_ADD_SESSION_MEMORYTool to add memory messages to a specified Zep session. Use when you need to store conversation history or context in a session.

Input Parameters

array
required
Collection of message objects to add to the session.
string
required
The ID of the session to which memory should be added.
array
Optional list of role types to ignore when adding messages.
boolean
When enabled, instructs the API to return memory context relevant to the most recent messages in the response.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_ADD_THREAD_MESSAGESTool to add chat messages to a thread in Zep and ingest them into the user knowledge graph. Use when you need to add conversation history to a thread - for best results, add messages on every chat turn in the order they were created.

Input Parameters

array
required
A list of message objects in chat message format to add to the thread. For best results, add chat history on every chat turn, including both AI and human messages in a single operation and in the order that the messages were created.
string
required
The ID of the thread to which messages should be added.
array
Optional list of role types to ignore when adding messages to graph memory. The message itself will still be added, retained and used as context for messages that are added to a user’s graph. Valid values: ‘user’, ‘assistant’, ‘tool’. Legacy values ‘ai’ and ‘human’ are also accepted.
boolean
Set to true to optionally return a context block relevant to the most recent messages. For latency sensitive applications, this makes the add operation return a context block in the same way that thread.get_user_context does.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CLONE_GRAPHTool to clone a user or group graph with new identifiers in Zep. Use when you need to create test copies of user data, migrate user graphs to new identifiers, or set up template graphs for new users. This is an asynchronous operation that returns a task_id for tracking progress.

Input Parameters

string
The user_id of the user whose graph is being cloned. Must point to an existing user. Required if source_graph_id is not provided. Either source_graph_id OR source_user_id must be provided, but not both.
string
The user_id to be set on the cloned user. Must not point to an existing user. Required if target_graph_id is not provided. Can be omitted for auto-generation. Either target_graph_id OR target_user_id must be provided, or both can be omitted for auto-generation.
string
The ID of the graph to be cloned. Required if source_user_id is not provided. Either source_graph_id OR source_user_id must be provided, but not both.
string
The ID to be set on the cloned graph. Must not point to an existing graph. Required if target_user_id is not provided. Can be omitted for auto-generation. Either target_graph_id OR target_user_id must be provided, or both can be omitted for auto-generation.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CREATE_GRAPHTool to create a new graph by adding data to Zep. Use when you need to add text, message, or JSON data to a user’s graph or a specific graph. The data is processed and an episode node is created in the graph.

Input Parameters

string
required
The content to add to the graph. Maximum 10,000 characters per request.
string ("message" | "text" | "json")
required
The data type - one of ‘message’, ‘text’, or ‘json’
string
The user ID to associate the data with a user graph. One of user_id or graph_id should be provided.
string
The graph ID to add data to a specific graph. One of user_id or graph_id should be provided.
string
ISO 8601 timestamp for when the data was created. Optional field.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CREATE_GROUPTool to create a new group in Zep for multi-user graph management. Use when you need to create a namespace for shared context across multiple users.

Input Parameters

string
required
Display name for the group
string
required
Unique identifier for the group. This is required to create a group.
string
required
Description of the group’s purpose
object
Model for fact rating instruction.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CREATE_SESSIONTool to create a new session in Zep for storing conversation memory. Use when you need to establish a new conversation context linked to an existing user. The user must be created first before creating a session.

Input Parameters

string
required
The unique identifier of the user associated with the session. The user must already exist before creating a session.
object
Deprecated. Additional metadata as key-value pairs.
string
required
The unique identifier of the session. Arbitrary identifier that you can map to relevant business objects in your app.
object
Deprecated. Contains instruction for rating facts and examples with high, medium, and low rating examples.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CREATE_THREADTool to create a new thread in Zep for a specific user. Use when you need to start a new conversation thread. The user must be created first before creating a thread. Zep automatically warms the cache for that user’s graph data in the background to improve query latency.

Input Parameters

string
required
The unique identifier of the user associated with the thread. The user must already exist before creating a thread.
string
required
The unique identifier of the thread. This is an arbitrary identifier that you can map to relevant business objects in your app.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_CREATE_USERTool to create a new user in Zep with properties like user_id, email, and metadata. Use when you need to add a new user to the system. It is recommended to provide at least first_name and ideally last_name for better user association.

Input Parameters

string
The email address of the user
string
required
The unique identifier of the user. This is required to create a user.
object
The metadata associated with the user. Supports any type of key-value pairs.
string
The last name of the user. Recommended to provide along with first_name for better user association.
string
The first name of the user. Recommended to provide to ensure Zep can correctly associate the user with references in the data.
object
Optional instruction for fact rating (includes instruction text and examples)
boolean
When enabled, disables default ontology for the user’s graph

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_DELETE_GRAPHTool to delete a graph from Zep. Use when you need to permanently remove a graph and all associated data.

Input Parameters

string
required
The unique identifier of the graph to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_DELETE_GROUPTool to delete a group from Zep. Use when you need to permanently remove a group and its associated data.

Input Parameters

string
required
The unique identifier of the group to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_DELETE_SESSIONTool to delete a session and its memory from Zep. Use when you need to permanently remove all memory data associated with a specific session.

Input Parameters

string
required
Identifier for the session whose memory should be deleted

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_DELETE_THREADTool to delete a thread and its messages from Zep. Note that deleting a thread removes the thread and its messages from the thread history but does not delete associated data in the user’s knowledge graph.

Input Parameters

string
required
The unique identifier of the thread to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_DELETE_USERTool to delete a user and all associated threads and artifacts from Zep. Use when you need to permanently remove a user and handle Right To Be Forgotten requests. Deleting a user will delete all threads and thread artifacts associated with that user.

Input Parameters

string
required
User ID to delete. This is the unique identifier for the user. Can be any string value such as a username, email address, or UUID.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_EDGETool to retrieve a specific edge by its UUID from the Zep knowledge graph. Use when you need to fetch detailed information about a relationship between nodes, including the semantic fact, connected nodes, and temporal metadata.

Input Parameters

string
required
The UUID of the edge to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_GRAPH_BY_IDTool to retrieve a graph by its unique identifier from Zep. Use when you need to fetch details about a specific graph including its name, description, and timestamps.

Input Parameters

string
required
The unique identifier of the graph to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_GROUPTool to retrieve a group by ID from Zep. Use when you need to fetch detailed information about a specific group including its configuration and metadata.

Input Parameters

string
required
The unique identifier of the group to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_NODE_EDGESTool to retrieve all entity edges for a specific node in the Zep knowledge graph. Use when you need to fetch relationship information, facts, and connections for a given node UUID.

Input Parameters

string
required
The UUID of the node for which to retrieve entity edges

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_PROJECT_INFOTool to retrieve project information based on the provided API key. Use when you need to fetch project details including UUID, name, description, and creation timestamp.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_SESSIONTool to retrieve a session by its unique identifier from Zep. Use when you need to fetch details about a specific session including user association, timestamps, classifications, and metadata.

Input Parameters

string
required
The unique identifier of the session to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_SESSION_MEMORYTool to retrieve memory for a given session including relevant facts and entities. Use when you need contextual information and historical data from a session.

Input Parameters

integer
The number of most recent memory entries to retrieve
number
The minimum rating by which to filter relevant facts
string
required
The ID of the session for which to retrieve memory

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_SESSION_MESSAGETool to retrieve a specific message by UUID from a Zep session. Use when you need to fetch a single message’s details by its unique identifier from a particular session.

Input Parameters

string
required
The unique identifier of the session containing the message
string
required
The UUID of the specific message to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_SESSION_MESSAGESTool to retrieve messages for a given session from Zep. Use when you need to fetch the message history for a specific session with optional pagination support.

Input Parameters

integer
Controls the number of messages to return
integer
Enables pagination through message sets
string
required
The unique identifier of the session for which to retrieve messages

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_TASK_STATUSTool to check the status of asynchronous operations in Zep. Use when monitoring batch adds, clone operations, or fact triple additions. Returns comprehensive task information including status, progress, timestamps, and error details if applicable.

Input Parameters

string
required
The unique identifier of the task to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_THREAD_MESSAGESTool to retrieve conversation history for a specific thread from Zep. Use when you need to fetch the chat message history with optional pagination support via limit, cursor, or lastn parameters.

Input Parameters

integer
Number of most recent messages to return. When provided, this parameter overrides both limit and cursor parameters
integer
Limit the number of results returned for pagination
integer
Cursor value for pagination to retrieve the next set of results
string
required
The unique identifier of the thread to retrieve messages from

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_THREAD_USER_CONTEXTTool to retrieve the most relevant user context from the user graph based on thread messages. Use when you need to get context including memory from past threads that is most relevant to the current thread.

Input Parameters

string ("summary" | "basic")
Context retrieval mode. ‘summary’ (default) returns summarized natural language context. ‘basic’ returns raw facts and entities with faster response time (P95 < 200ms)
string
required
The unique identifier of the thread for which context is being retrieved
string
Optional template ID to use for custom context rendering
number
The minimum rating by which to filter relevant facts

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_USERTool to retrieve a user by their user ID from Zep. Use when you need to fetch detailed information about a specific user including their profile, metadata, and configuration settings.

Input Parameters

string
required
The user_id of the user to get. This is the unique identifier for the user.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_USER_NODETool to retrieve a user’s graph node and summary from Zep. Use when you need to access the user summary generated from instructions, build custom context blocks, or retrieve facts and information associated with a specific user.

Input Parameters

string
required
The user_id of the user to get the node for. This is a path parameter that must be included in the URL.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_USER_NODESTool to retrieve all nodes for a specific user from their graph in Zep. Use when you need to fetch entity information, preferences, and knowledge graph data for a user. Supports pagination via limit and uuid_cursor parameters.

Input Parameters

integer
Maximum number of items to return for pagination
string
required
The user ID to retrieve nodes for
string
UUID based cursor for pagination, should be the UUID of the last item in the previous page

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_USER_SESSIONSTool to retrieve all sessions for a user from Zep. Use when you need to fetch session history for a specific user ID. Returns an array of session objects with metadata, classifications, and timestamps.

Input Parameters

string
required
User ID for sessions

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GET_USER_THREADSTool to retrieve all threads for a specific user from Zep. Use when you need to fetch thread history for a specific user ID. Returns an array of thread objects with identifiers and timestamps.

Input Parameters

string
required
User ID to retrieve threads for

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_GRAPH_SEARCHTool to perform hybrid graph search combining semantic similarity and BM25 full-text search across the Zep knowledge graph. Use when you need to search for entities, relationships, or episodes within a user, group, or specific graph. Supports various reranking methods and filtering options.

Input Parameters

integer
Maximum number of results to return (default: 10, max: 50)
string
required
The search text/query string (max 256-400 characters)
string ("edges" | "nodes" | "episodes")
Search target scope - ‘edges’ (relationships and facts, default), ‘nodes’ (entities), or ‘episodes’ (individual messages/chunks)
string
Search within a specific user’s graph. One of user_id, group_id, or graph_id must be provided.
string
The graph_id to search in. One of user_id, group_id, or graph_id must be provided.
string
Search within a group graph. One of user_id, group_id, or graph_id must be provided.
string ("rrf" | "mmr" | "node_distance" | "episode_mentions" | "cross_encoder")
Reranking method - ‘rrf’ (Reciprocal Rank Fusion, default), ‘mmr’ (Maximal Marginal Relevance), ‘node_distance’, ‘episode_mentions’, or ‘cross_encoder’
number
Diversity vs relevance balance for MMR reranker (required when using mmr reranker)
object
Model for search filters.
number
Minimum fact rating filter (edges scope only, 0.0-1.0)
string
Center node UUID for distance-based reranking (required when using node_distance reranker)
array
Node UUIDs for breadth-first search seeding

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_LIST_GROUPS_ORDEREDTool to retrieve all groups from Zep with pagination support. Use when you need to fetch a list of groups with optional pagination via pageNumber and pageSize parameters.

Input Parameters

integer
Number of groups per page
integer
Page number, starting from 1

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_LIST_SESSIONS_ORDEREDTool to retrieve all sessions from Zep with pagination and ordering support. Use when you need to fetch a list of sessions with optional pagination via page_number and page_size parameters.

Input Parameters

integer
Number of sessions per page
integer
Page number, starting from 1

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_LIST_THREADSTool to retrieve all threads from Zep with pagination support. Use when you need to fetch a list of threads with optional pagination and sorting via page_number, page_size, order_by, and asc parameters.

Input Parameters

boolean
Order direction - true for ascending, false for descending
string
Field to order results by. Options: created_at, updated_at, user_id, thread_id
integer
Number of threads to retrieve per page
integer
Page number for pagination, starting from 1

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_LIST_USERS_ORDEREDTool to retrieve all users from Zep with pagination support. Use when you need to fetch a list of users with optional pagination via pageNumber and pageSize parameters.

Input Parameters

integer
Number of users per page
integer
Page number, starting from 1

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_UPDATE_GRAPHTool to update graph information in Zep including name and description. Use when you need to modify graph properties after creation.

Input Parameters

string
The updated name for the graph. Optional field to update.
string
required
The unique identifier of the graph to update
string
The updated description for the graph. Optional field to update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_UPDATE_GROUPTool to update group information in Zep including name, description, and fact rating instructions. Use when you need to modify an existing group’s properties.

Input Parameters

string
New name for the group
string
required
The unique identifier of the group to update
string
New description for the group
object
Model for fact rating instruction.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_UPDATE_MESSAGETool to update a message in a Zep thread. Use when you need to modify message content, metadata, role, or other properties of an existing message. Particularly useful for adding or modifying metadata after a message has been created.

Input Parameters

string
Customizable name of the sender of the message.
string ("user" | "system" | "assistant")
The role of message sender.
string
The content of the message to update.
object
The metadata associated with the message as key-value pairs.
string
The timestamp of when the message was created in RFC3339 format.
string
required
The UUID of the message to update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_UPDATE_SESSIONTool to update session metadata in Zep. Use when you need to modify or add metadata to an existing session. Metadata is merged, so existing keys are preserved unless explicitly overwritten.

Input Parameters

object
required
Session metadata as key-value pairs. Metadata is merged with existing metadata, so only provided keys will be updated. To delete a key, set its value to None or empty string.
string
required
The unique identifier of the session to update
object
Optional instruction to use for fact rating. This field is deprecated. Note: Fact rating instructions cannot be unset once set.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: ZEP_UPDATE_USERTool to update an existing user’s information in Zep including email, metadata, and ontology settings. Use when you need to modify user properties after creation.

Input Parameters

string
The email address of the user. Optional field to update.
string
required
The unique identifier of the user to update (max 500 characters). This is the user that will be modified.
object
A map of key-value pairs for storing additional user information. Optional field to update.
string
The last name of the user. Optional field to update.
string
The first name of the user. Optional field to update.
object
Optional instruction to use for fact rating. Can include instruction text and examples.
boolean
When true, disables the use of default/fallback ontology for the user’s graph. Optional field to update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not