AI Agent1 input → 1 output
AI Memory (In-Mem)
Stores AI conversation memories in volatile memory. Fast but data is lost on Node-RED restart.
Inputs
Outputs
Configuration
Memory Operations
- store (topic: "store")
-
{ "topic": "store", "payload": { "content": "Memory content", "type": "optional type", "metadata": { "any": "data" } } }Output:
{stored: true, memory: {...}} - search (topic: "search")
-
{ "topic": "search", "payload": "search term" }Output:
{results: [...], count: n} - count (topic: "count")
-
Output:
{count: n} - get all (no topic)
-
Output:
{memories: [...]}
Details
⚠️ Volatile Storage: All memories are lost when Node-RED restarts. Use File Memory for persistence.
When to Use
- Session-only conversation context
- High-performance scenarios
- Development/testing
- Temporary caching
Best Practices
- Set appropriate maxItems to prevent memory bloat
- Use File Memory if persistence is needed
- Clear memories periodically for long-running sessions