Condition block does not seem to work

I'm working with Typebot to create a WhatsApp channel bot, with a scenario where if a customer wants to talk to a human agent, I'm connecting them through Chatwoot's API inbox.

Currently, what I'm doing is, I first create the user to generate the user ID (variable I called Chatwoot ID), using the HTTP call block.

Then, from the response I get from this, we capture a variable I called "Chatwoot ID", which is sourced from the data.payload.contact.id, and source_id, which is also named source_id from Chatwoot.

The next block will create the conversation and send a first outgoing and first incoming messages.

From this response, I'll set 3 more variables: Chatwoot Conversation ID (which is the ticket number from Chatwoot), last_message_id (which is set as 0), and loop_counter (which is also set as 0).

Then, I'll send the first incoming message (while not displaying it to the customer), using the same headers and URL as before, but using this as the body:
{
"content": "Olá, gostaria de ajuda",
"message_type": "incoming"
}

and I'll set this message content, as the first "customer_message".

picking anything as “outgoing” even though jt comes back on the HTTPs request and therefore, not displaying the agent messages.

Anyone have any ideas on how to get this to work?
cff1e1c9-b079-4cdb-b029-50df46b6bba5.jpg
310ad816-55b5-4bf9-873c-14c6502898ed.jpg
Was this page helpful?