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

  1. Build the key from a verified tenant, channel and conversation or user identifier. Avoid a constant session ID shared by all requests.
  2. 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.
  3. 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

Official guidance

n8n documentation