Hi everyone!
I’m getting an error when trying to send a message using the Message Assistant node in my workflow.
Flow structure
-
Webhook – receives external data
-
Code (JavaScript) – formats the message
-
Redis Get – retrieves the
thread_id
for the contact -
Message Assistant – sends the message using that
thread_id
-
If the thread doesn’t exist → a new one is created in Redis
Error message
400 Invalid ‘thread_id’:
'thread_AjefqZiux9ULIwkG2ezuuLv0, thread_WRY9FCRtHdOdPHUtV3ZvS6MS'
Expected an ID that contains letters, numbers, underscores, or dashes, but this value contained additional characters.
What I noticed
It seems that the value from Redis contains more than one thread ID, separated by a comma.
The Assistant node expects only one (e.g. thread_AjefqZiux9ULIwkG2ezuuLv0
).
Maybe Redis is storing multiple values, or I’m fetching it incorrectly (for example, using a list instead of a single value).
Any help or examples would be really appreciated