I have an AI agent that passes a conversation to a “call_n8n_workflow_tool” .
This conversation comes from the integrated chat in n8n, which is
{{ $json.chatInput }}
.I store this conversation in a Windows Memory Buffer , which assigns an ID using the variable
{{ $json.sessionId }}
.However, when calling the workflow_tool , the AI agent only sends
{{ $json.chatInput }}
, even though I explicitly instruct it in the system prompt to send {{ $json.chatInput }} + {{ $json.sessionId }}
to the workflow_tool .I have attached an image showing what the workflow_tool receives when a message is sent from the chat. As we can see, there is no reference to the memory ID.
This is necessary because, in order to implement memory in the workflow_tool , I need to provide the sessionId from the parent node.
Any help with this would be greatly appreciated!