Memory Buffer Window
Conversation memory for AI agents. 1-hour TTL, KV-backed, blockchain-scoped.
Written By pvdyck
Last updated 21 minutes ago
Memory Buffer Window
The Memory Buffer Window stores recent conversation history for AI agents, enabling multi-turn conversations where the agent remembers previous messages.
How It Works
The node maintains a sliding window of the last N message pairs (human + AI). When the window is full, the oldest messages are dropped. Memory is persisted in Cloudflare KV and automatically expires after 1 hour of inactivity.
Parameters
Technical Details
Connects To
Limitations
- 1-hour TTL β Memory is lost after 1 hour of inactivity. No way to extend.
- Cannot persist memory across different service contracts.
- Higher context windows increase token costs with every request.
- Not compatible with queue mode -- in n8n queue mode, multiple Simple Memory calls may not route to the same worker, causing memory loss. (This is an n8n-level limitation; indie.money uses KV-backed storage which avoids this issue.)
Tips
- Start with a Context Window Length of 3-5 for most use cases. Only increase if the agent needs extensive conversation history.
- Use a fixed Session ID (e.g., user wallet address) to maintain conversation continuity across separate workflow executions.
- For longer-lived memory, use an external key-value store via HTTP Request node.