Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

A short walkthrough of chat messages, conversations, and session identity.

Before you begin

A chat interface or supported API client with the required access.

Key concepts

Term
Definition

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

  1. Start a conversation through the intended interface.

  2. Retain its conversation identifier for related messages.

  3. 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.

Interface Inputs and Output Mapping

Was this helpful?