AI Workflow Tutorial: No sessionID error for Window Memory Buffer

Describe the problem/error/question

Hi, after completing the AI workflow tutorial https://docs.n8n.io/advanced-ai/intro-tutorial/ I receive an error that there is no sessionID for the Window Memory Node. I am aware of this solution https://community.n8n.io/t/generate-unique-sessionid-key-if-parameter-is-blank-and-pass-from-window-buffer-memory-to-webhook-response/41049, but I think it is problematic in my case. Wouldn’t the chat node reset the sessionID each execution? Also, in my case I need to access the specific Window Memory Node from several different workflows/sub-workflows, so I need a better understanding of how to generate, persist and destroy sessionIDs. I could not find the help I needed searching online, so any pointers/suggestion/examples would be great.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

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 @Jonathan_Sherman,

I think you will be better of just using a proper memory store like Zep or Redis. You can have a more custom interaction with your session IDs.

Have a look in our documentation on these nodes:

At some point in the future, I’m sure you are right. However, for now I would like to use n8n solutions. Thinking it through more, I suppose I can modify the solution I reposted above to fit most my needs.

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