Before linking my memory node, the workflow can run successfully. After linking there is an error saying: ‘Bad request - please check parameter, Invalid value for ‘content’: expected a string, got null.’ Error is on both the ai agent model and open ai chat model. How can I fix this?
Make sure you pass the sessionId to the Simple Memory node. You can take it from the trigger (e.g., {{ $('Telegram Trigger').item.json.message.chat.id }}) and define it with a Set/Edit node before the Simple Memory node.
Update the Simple Memory node, delete the current node, and reinsert it to ensure you’re using the latest version.
Check the input fields properly. Don’t pass numbers or null values; sessionId must be a valid string or expression. Make sure the AI Agent node is properly connected to the Memory node, receiving both context and the chat model.
Can you share the output of the whatsapp trigger node. You’re supposed to use an id tied to the conversation so that the memory can reference conversation secific context
I wanted to build by work flow to process text prompt only but using ‘edit field (set)’ node.
whatapp cloud trigger
edit field (set) → manual mapping {{ $json.messages[0].text.body }}
ai agent
simple memory → {{ $(‘WhatsApp Trigger’).item.json.contacts[0].wa_id }}
open ai chat model
I’m guessing during my test, when I trigger whatsapp prompt with an image upload, it may have affected simple memory. So when I tried sending text again, it did not work