and embedding the chat trigger in a website. The OpenAI assistant is perfectly usable and has memory, but when the webpage is refreshed or a new page is loaded and the embed chat widget tries to retrieve past messages from ‘Window Buffer Memory’ is errors out.
NodeOperationError: Error in sub-node Window Buffer Memory at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1759:19 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at Object.getInputConnectionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1766:19) at Object.getInputConnectionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2507:24) at Object.webhook (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js:369:33) at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:665:15) at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:226:33)
Thanks for posting here and welcome to the community!
I just tried the template myself and I think you will have to just add in the newest node versions for the Window Buffer Memory. Unfortunately when you copy a template it will use the node versions of the time (which may have had some bugs). Let me actually raise this internally.
I had the timeout happening as well but then I changed the nodes (newest version), refreshed my browser and it worked.
Been trying to figure out what is going on but I am unable to get the chat to recall prior sessions using the window buffer memory without getting an error.
This first chat session works but when refreshing the page, or navigating to a different page on the site where the embedded chat widget has been placed, the recall of the past chats gives an error.