Customer and account context
An agent cannot understand a customer’s situation when account records, conversations, and events are separate. Zep can combine these sources into Context Graphs that preserve the correct user, customer, or account scope.
Choose the graph model
Use the graph scope that matches data ownership and access:
Do not copy shared account data into every user graph. Keep shared data in an account Context Graph and retrieve it only for authorized callers.
Implementation path
Create users for personal context
Create a Zep user for each application user whose conversations or activity must persist.
Ingest each source into the correct graph
Add conversations through threads. Add user-owned business data with user_id. Add shared records and events with the account graph_id.
Retrieve the context required for the task
Use thread.get_user_context for the user context. Use graph.search for account context, and combine the results in the application.
Apply access controls and preserve provenance
Use policy-based access control for shared graphs. Retain source episode references when the application must show where a retrieved fact came from.
See Add User-Specific Business Data and Share Context Across Users for implementation examples.
Application responsibilities
Zep controls access to context in Zep. Your application remains responsible for customer authorization, action permissions, model instructions, and the validation of changes in external systems.