Chat Messages, Conversations, and Session Identity
A chat conversation contains related messages. Keep its identity consistent when the user continues a conversation, and separate it when they start a new one.
Before you begin
A chat interface or supported API client with the required access.
Key concepts
Conversation
Related messages grouped into one interaction history. Several runs can belong to one conversation.
Session
A context maintained by an interface or browser for related activity. Its meaning depends on the feature; do not treat every session ID as a user credential.
User identity
The authenticated person or application acting on a resource. It determines access; a display name or conversation ID does not authenticate a caller.
Run
One execution of a project. Use its run ID to retrieve that execution’s state, input, output, and errors.
Memory scope
The project, node, and conversation context in which earlier exchanges can be reused. Keep unrelated users and conversations separate using the supported identity fields.
Maintain a conversation across messages
Start a conversation through the intended interface.
Retain its conversation identifier for related messages.
Start a separate conversation when the user requests a new context. Inspect run history for individual executions.
Messages remain associated with the intended conversation.
Behavior and limitations
A conversation ID does not authenticate a user. Shared identifiers can mix context when memory is enabled. One message can create a separate workflow run, so conversation and run counts are different. Follow the selected interface’s supported identity configuration rather than inventing a user ID to bypass access checks.
Related resources
Was this helpful?

