Problem with “Send message to assistant” node — invalid thread_id

Hi everyone!

I’m getting an error when trying to send a message using the Message Assistant node in my workflow.


Flow structure

  1. Webhook – receives external data

  2. Code (JavaScript) – formats the message

  3. Redis Get – retrieves the thread_id for the contact

  4. Message Assistant – sends the message using that thread_id

  5. If the thread doesn’t exist → a new one is created in Redis


:cross_mark: 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 :folded_hands: