Description
n8n-nodes-memory-redis-isolated
This is an n8n community node that provides Redis-based chat memory for AI agents in n8n queue mode with multiple workers. Simple in-memory chat history does not work reliably in queue mode because different workers cannot share memory. This node uses Redis as persistent storage to ensure chat history is accessible across all workers.
n8n is a fair-code licensed workflow automation platform.
- Installation
- Features
- Operations
- Credentials
- Compatibility
- Usage
- How User Isolation Works
- Resources
Installation
Community Nodes (Recommended)
1. In n8n, go to Settings > Community Nodes
2. Select Install
3. Enter n8n-nodes-memory-redis-isolated
4. Accept the installation
Manual Installation (Local Development)
For n8n v1.0+:
cd ~/.n8n/custom-nodes
npm install n8n-nodes-memory-redis-isolated
For n8n v2.0+ (Docker/Self-hosted):
1. Mount the volume to /home/node/.n8n/custom-nodes
2. Install the package inside that directory
Development
1. Clone the repository
2. Install dependencies: npm install
3. Start n8n with the node loaded:
npm run dev
4. The node will appear as Redis Chat Memory (Isolated) in the AI Agent node’s Memory selector.
Troubleshooting
npm run dev fails, check if another n8n instance is running on port 5678.Features
KEYS * or GET commands to list and read other workflows’ chat history. The built-in Redis Chat Memory shares credentials with Redis operation nodes, creating a potential security risk.Operations
This node provides a single operation: Redis Chat Memory (Isolated)
The node stores and retrieves chat history for AI agents with the following parameters:
Credentials
This node uses a dedicated Redis Memory (Isolated) credential type that is NOT shared with the standard Redis operation node.
Use Queue Redis (Default)
By default, the node has “Use Queue Redis” enabled, which automatically uses your n8n queue Redis configuration without requiring any credentials. This is the recommended setup for queue mode deployments.
When enabled, the node uses these environment variables:
QUEUEBULLREDIS_HOSTQUEUEBULLREDIS_PORTQUEUEBULLREDIS_DB (the node uses this + 1 to avoid conflicts)QUEUEBULLREDIS_USERNAMEQUEUEBULLREDIS_PASSWORDCustom Redis Credentials
To use a different Redis instance, disable “Use Queue Redis” and configure custom credentials:
1. In n8n, go to Credentials → New
2. Search for “Redis Memory (Isolated)”
3. Configure the following:
– Host: Redis server hostname (default: localhost)
– Port: Redis server port (default: 6379)
– Password: Redis password (if required)
– User: Redis username (leave blank for password-only auth)
– Database Number: Redis database number (default: 0)
– SSL: Enable SSL/TLS connection
– Disable TLS Verification: Only for self-signed certificates (insecure)
Azure Cache for Redis
When using Azure Cache for Redis, configure the credentials as follows:
yourname.redis.cache.windows.net)6380 (Azure uses SSL by default)Prerequisites:
Compatibility
Usage
Basic Setup
1. Add an AI Agent node to your workflow
2. Add the Redis Chat Memory (Isolated) node
3. Connect it to your AI Agent’s memory input
4. Configure the credentials
5. Set the Session ID parameter
Example Configuration
// Session ID - can be conversation-specific or user-specific
{{ $json.sessionId }}
// or
{{ $json.conversationId }}
Queue Mode
This is the primary use case for this node. In n8n queue mode deployments:
How Workflow Isolation Works
The node adds a workflow-specific prefix to the session key to ensure isolation:
1. Hashing: The workflow ID is hashed using SHA-256
2. Prefix: Only the first 10 characters of the hash are used as a prefix
3. Key Format: Redis keys are stored as {workflowHash}:{sessionId}
The workflow ID prefix is added to your session key, creating a unique Redis key per workflow.
Example:
Workflow ID: "abc123xyz"
SHA-256 Hash: "96cae35ce8a9b0244178bf28e4966c2ce1b8385723a96a6b838858cdd6ca0a1e"
Prefix (first 10 chars): "96cae35ce8"
Session ID: "conv456" (your input)
Final Redis Key: "96cae35ce8:conv456"