AI Help
How do I keep chatbot memory separate for each user in n8n?
Give each authenticated conversation a distinct session key and use memory storage compatible with your n8n deployment.
Steps to follow
- Build the key from a verified tenant, channel and conversation or user identifier. Avoid a constant session ID shared by all requests.
- Pass the same key to the intended memory node and inspect it for two test users. Simple Memory is unsuitable for active production workflows in queue mode.
- Test isolation and intended persistence with separate users and sessions. Configure expiry and a reset path appropriate to the application.
Example in practice
Illustrative example. User A submits a test preference. User B's next request must not retrieve that preference from the shared memory backend.
Related AI help
- How do I stop an n8n AI agent from returning invalid JSON?
- Why does my AI workflow show success when a tool call failed?