Window Buffer Memory
ai.memory_buffer_window · version 1.3 · AI sub-node
Keeps recent chat history in process memory.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| output 0 | ai_memory |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
sessionIdType | options | "fromInput" | Session ID. One of fromInput, customKey. | ||
sessionKey | string | "={{ $json.sessionId }}" | sessionIdType = customKey | Session Key. | |
contextWindowLength | number | 5 | Context 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.memoryBufferWindow | 1 | unverified |