Hello,
Despite looking online I could not find a solution for the error below:
Error in sub-node ‘Simple Memory‘
connect “Simple Memory” to “WhatsApp Trigger”
The problem occurs in the AI agent.
Does anyone have a clue of the reason of this error ?
Thank you for your help
try this for your AI Agent on the prompt (user message)
{{ $node["WhatsApp Trigger"].json.messages[0].text.body }}
and try this on your simple memory Key value
{{ $node["WhatsApp Trigger"].json.metadata.phone_number_id }}
because i think the error is caused by how you call this 2 value
Thank you for your help.
I try this and it worked: {{ $(“WhatsApp Trigger”).item.json.contacts[0].wa_id }}
What I do not understand is why while I copye and paste the item path : {{ $item(“0”).$node[“WhatsApp Trigger”].json[“contacts”][“0”][“wa_id”] }}
It display the error where as I can see the ID
Do you have any idea ?
how do you copy and paste it? i usually just drag and drop the field that i want and it usually automatically be filled with something like this
{{ $(“WhatsApp Trigger”).item.json.contacts[0].wa_id }}
and if you can, to mark my answer as the solution as it would greatly help the community
system
Closed
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.