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

Conversation Memory and Context Windows

Conversation memory makes earlier exchanges available to later requests. The model still has a finite context window, so retained history and context sent for one response are not identical.

A short walkthrough of conversation memory and context windows.

Before you begin

A memory-enabled node and a consistent conversation or memory identifier for related requests.

How conversation memory works

Term
Definition

Conversation memory

Earlier exchanges made available for later requests in the configured scope. Saved messages and the context used for an individual response are not identical.

Context window

The amount of information a model can consider for a request. Instructions, history, source passages, and tool results compete for this capacity.

Sliding window

A memory configuration that retains a bounded portion of recent conversation history for use. Older material can leave the active context as new exchanges are added.

Token

A unit used by a model to process text or other supported input and output. Token counts do not map to a fixed number of words across content and models.

Memory settings

Setting
What it does

Memory

Includes conversation history in later requests within the configured memory scope.

Source of User Messages

Selects the input used as the user message in the saved conversation.

View Memory

Opens the retained conversation messages for inspection.

Clear

Removes memory in the selected scope. It does not remove instructions or knowledge sources.

Configure conversation memory

  1. Open the node’s settings and expand Conversation Memory. Enable Memory and select the memory configuration.

  2. Set Source of User Messages to the input that contains the user’s message. Use the same intended memory scope for related requests.

  3. Send related requests, then select View Memory to inspect the retained messages. Check the response to confirm that the required earlier information is available.

Conversation memory controls in StackAI
Enable Memory to include conversation history in later requests. Source of User Messages selects the input used as the user message in that history. Use View Memory to inspect the retained messages. Clear removes memory in the selected scope; it does not remove the workflow’s instructions or its knowledge sources.

Later responses can use relevant earlier exchanges in the same scope.

Behavior and limitations

Older exchanges can be omitted from a request when the conversation exceeds the model’s context limit. Retained conversation history is not a guarantee that every earlier detail remains available to the model. Keep durable business records in an appropriate data source rather than relying only on chat memory.

Model Settings and Supported Capabilities

Was this helpful?