Message → Add
AI-generatedSummary
Add one or more messages to a specified session in the Zep Memory system.
Inputs
- Session ID (required) — The unique identifier for the session to which messages will be added.
- Messages (required) — A list of messages to add, each containing a role (user, assistant, or system) and content text.
Output shape
a list of messages representing the newly added messages or the API response after adding messages to the session
The response data returns after successfully adding messages to the session. If the operation fails and continue on fail is enabled, the output includes an error message.
Examples
Example 1: Add multiple messages to an existing session
Provide the Session ID and an array of message objects with role and content to append to that session.