Memory Buffer Window

Conversation memory for AI agents. 1-hour TTL, persistent storage, blockchain-scoped.

Written By pvdyck

Last updated 18 days ago

Memory Buffer Window

⚠️ Limitations β€” Works with known restrictions, see details below

What It Does

Gives AI agents short-term conversation memory. Connected to an Agent node, it stores recent messages so the agent can reference earlier parts of the conversation.

How It Works on indie.money

On indie.money, conversation memory works differently from standard n8n:

  • Persistent storage β€” Memory is stored on the platform and survives between executions. In standard n8n, memory is lost when the workflow stops
  • Automatic expiry β€” Sessions expire after 1 hour of inactivity. This prevents unbounded storage growth
  • Scoped per workflow instance β€” Each deployed agent has its own isolated memory. Different users calling the same agent get separate conversation histories
  • Distributed β€” Memory works correctly even when your agent scales across multiple instances

Configuration

ParameterDescription
Session IDIdentifies the conversation. Use a unique ID per user/chat session. If not set, a default session is used
Context Window LengthNumber of recent messages to keep (the k parameter). Default: 5. Higher values give more context but use more tokens

Compatibility

FeatureStatus
Session-based conversation memorySupported
Context window length (k parameter)Supported
Persistent storage with auto-expirySupported β€” 1 hour TTL
Connect to Agent nodeSupported
Input/output key customizationNot supported β€” uses standard keys
Human/AI prefix customizationNot supported
Return messages format toggleNot supported

Tips

  • Set a meaningful Session ID (e.g., user wallet address or chat room ID) so conversations persist across multiple calls
  • Keep the Context Window Length reasonable (5–10) β€” too many messages increase token costs without adding much value
  • Sessions auto-expire after 1 hour of inactivity β€” no cleanup needed

Status

This integration works on indie.money with known restrictions. See the details above for specifics.