Thread id request for openai assistant with memory connection

i have a standard n8n memory connection to “message an assistant” node, when executing all workflow, I get " Problem in node ‘Message an assistant‘
400 Invalid ‘thread_id’: ‘undefined’. Expected an ID that begins with ‘thread’."
I have no idea how to extract and pass this thread id to the memory.
when removing the memory connection, all is working fine.

Describe the problem/error/question

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:

I am having the same issue. If I remove memory than the there is no memory for chat workflows.

SO if the chat asks for my name, it does not retain that info

Happen the same to me. Even if the workflow was working perfectly before. So or is some new change on OpenIA assistants or n8n Nodes.

My solution was just put the thread id option and leave it empty but because I don’t need “memory”.