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

Redis Chat Memory

ai.memory_redis · version 1.4 · AI sub-node

Stores chat history in Redis.

Ports

PortKindLabelRequiredMax connections
output 0ai_memory

Credentials

SlotAccepted kindsRequired
redisproto.redis, redisyes

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.
sessionTTLnumber0Session Time To Live. Seconds until an idle session expires; 0 keeps it forever.

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