Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Window Buffer Memory

ai.memory_buffer_window · version 1.3 · AI sub-node

Keeps recent chat history in process memory.

Ports

PortKindLabelRequiredMax connections
output 0ai_memory

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
sessionIdTypeoptions"fromInput"Session ID. One of fromInput, customKey.
sessionKeystring"={{ $json.sessionId }}"sessionIdType = customKeySession Key.
contextWindowLengthnumber5Context Window Length. How many past exchanges are given to the model.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.memoryBufferWindow1unverified