For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
      • PUTSet graph ontology
      • GETList graph ontology
      • POSTAdd Data
      • POSTAdd Data in batch mode
      • POSTAdd Fact Triple
      • POSTClone graph
      • POSTCreate Graph
      • GETList all graphs.
      • POSTDetect Patterns (Experimental)
      • POSTSearch Graph
      • GETGet Graph
      • DELDelete Graph
      • PATCHUpdate Graph.
        • GETList Custom Instructions
        • POSTAdd Custom Instructions
        • DELDelete Custom Instructions
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceGraphCustom Instructions

Add Custom Instructions

POST
https://api.getzep.com/api/v2/custom-instructions
POST
/api/v2/custom-instructions
1from zep_cloud import CustomInstruction, Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.graph.add_custom_instructions(
7 instructions=[
8 CustomInstruction(
9 name="name",
10 text="text",
11 )
12 ],
13)
1{
2 "message": "string"
3}

Adds new custom instructions for graphs without removing existing ones. If user_ids or graph_ids is empty, adds to project-wide default instructions.

Was this page helpful?
Previous

Delete Custom Instructions

Next
Built with

Request

The instructions to add
instructionslist of objectsRequired
Instructions to add to the graph.
graph_idslist of stringsOptional

Graph IDs to add the instructions to. If empty, the instructions are added to the project-wide default.

user_idslist of stringsOptional

User IDs to add the instructions to. If empty, the instructions are added to the project-wide default.

Response

Instructions added successfully
messagestring

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error