How to ensure Chat with openai assistant workflow starts a new session each time?

I’m using Chat with open ai assistant by adding memory workflow, on the front end chatting with the widget, if I refresh the screen or close the window and open again, it still remembers previous conversations and prompts.

It seems like it’s stuck on the same session. How do I ensure the session is fresh when I refresh the screen?

I changed the chat trigger to not remember previous sessions but it’s still doing it.

Any ideas please?

Self hosted Postgres v 1.68


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hi @jakeThai

Has this workflow behaved that way from the beginning, or was there a time when this was working properly? I’m trying to figure out if we introduced any regressions lately.

Are you able to share the workflow so I can play around with it on my end?

Thanks!

Can you also please confirm if you’re not setting a specific session in the window memory buffer node?

Hey @gualter thanks very much for looking at this.

I’ve been using this workflow for many demo’s where I have it embedded on a landing page. But seems now that with this one it’s remembering the chat history even when you refesh which never used to happen. here is the workflow below

This exact workflow you mean? Could be a version issue then, when was the last time you ran this successfully and which version did it ran? are you using cloud or local instance?

Are you able to test the workflow on those same conditions now?

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.