##Hi guys, I’ve been encountering an issue for a couple of days. To give some context, I’m self-hosted, and I use Ngrok for my Webhook integration.
This is my workflow:
After several attempts, I can confirm that the issue lies with the session ID key in the memory tool. I’ve tried it with both Windows and PostgreSQL. I’m using this variable as the session ID key, is a phone number.:
{{ $(‘Webhook’).item.json.body.from }}
The first interaction works fine, but after that, I get an error:
Issues: * Bad request - please check your parameters (Invalid value for ‘content’: expected a string, got null.)
However, if I use this for the session ID key then, no error occurs.:
{{ $(‘Webhook’).item.json.body.from + ’ ’ + new Date().toISOString() }}
The problem with this approach is that it doesn’t remember anything, and the AI agent can’t perform its tasks properly.
I can confirm that it is happening on my end as well. In my case, it involves the Slack User ID, and it always fails on the second attempt.
I noticed that as long as the key exists in Redis (in my case), it will always fail.
If I replace the session ID with “client_msg_id,” which always changes, it will work; however, in that case, the chat memory won’t remember the previous messages per user.