https://discord.gg/botpress logo
Whatsapp Botpress some components are not working
# 🤝help
m
Some components are not being processed by the flow—for example, quick replies. Expected behavior: The flow sends a WhatsApp template and then ends. When Botpress receives a reply from WhatsApp, the flow should capture that message, process it, and continue. Current behavior (issue): The WhatsApp message is received and displayed, but the flow does not trigger. As shown in the attachment, the message arrives correctly, yet the flow never starts. In other similar cases, we expect the flow to be activated by a message, but instead it just stays stuck on “Waiting for user input.” https://cdn.discordapp.com/attachments/1407402355753750578/1407402355967791114/Screenshot_2025-08-19_at_9.24.22_AM.png?ex=68a5f915&is=68a4a795&hm=be5d45758ebcb3433072b1aa658d355a8fe09c4dc93582746df5c2329b907c25&
p
Could you share a screenshot of your workflow?
in the code 'start_capture' I send the template to whatsapp, in SEND_CAPTURE Metadata there just a insert in a table
and I wait for the button action or any response from the user
p
I'm not sure I understand still. Could you send a report id, a detailed explanation of the expected behaviour and an example conversation?
m
4d6f5e707d
The flow works with the WhatsApp integration as follows: The flow starts when the user sends a greeting message. After receiving this text, we run several validations through "Execute code" calling APIs to our internal services. Once a validation is successful, the flow state moves to a node called send_start_capture.* (here everything is working)* In this node, we make an API call to WhatsApp to send an interactive message TO FOLLOW THE CONVERSATION THAT STARTED BEFORE WITH THE USER INPUT (quick reply/button). Inside this node, there is also a card set to wait for the user’s input. (HERE the flow gets stuck) In the same node after Wait for Message, we have an "Execute code" that gets the values received from whatsapp.
Copy code
conversation.conversationId = event.conversationId
conversation.currentPayload = event.payload
conversation.type = event.type
and then a Transition conversation.currentPayload.value === "start_capture" and if this is not success we have a AI tratition Example of the WhatsApp message sent:
Copy code
{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "type": "interactive",
  "to": user.phone,
  "interactive": {
    "type": "button",
    "body": {
      "text": "Estamos listos para ayudarte con tu captura."
    },
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "start_capture",
            "title": "Iniciar captura"
          }
        }
      ]
    }
  }
}
Additionally, we have some hooks. In the logs, we can see that we do receive the user’s response from WhatsApp, for example:
Copy code
{
  "value": "start_capture",
  "text": "Iniciar captura"
}
From my understanding, after the hook captures this response, the flow should continue and move to the next card inside the "send_start_capture" node. However, this does not happen. Instead, the flow remains stuck in “Waiting for user input.”
l
the expectation is incorrect - even if botpress allowed it, meta may block your message. please read meta developer documentation. template message do not open a conversation window with the user. If you send normal workflow messages following a template message, it wont be delivered. Unless, the user has responded to your template message
m
What do you mean? The error has nothing to do with Windows of meta, in this part of the flow the windows with whatsapp session is open!!
The error is in the waiting for user input...
l
after the send send_start_capture you have 2 execute code cards followed by a wait for user input. the flow will wait here, are you saying it not waiting?
m
if you look the node send_start_capture there are: 1. Log 2. Execute code (start_capture), here the interactive message is send 3. Execute code (SEND_CAPTURE Metadata) , here just insert in a table 4. waiting for user input, here should wait for the response of the step 2 5. execute code (get event send_start_capture), get the event 6. Transition, validate the event. payload 7. Ai Transition https://cdn.discordapp.com/attachments/1407402355753750578/1407428996584444076/Screenshot_2025-08-19_at_10.46.04_AM.png?ex=68a611e5&is=68a4c065&hm=e2b4bb74e010ed795845c9fdcf17bd675f2c699b390309b06f8bca3a4261da34&
In the step 4. I can see in logs the response of the user, but the state of the flow never change, that means that no continue with step 5
And this happens sometimes not with all the users
with other user the flow works fine
l
from this log it is unclear that the bot has actually surpassed step1, 2,3 and is actually at step4 of this node, since between the user response and wait for user input are hook execution logs and not of execute card
m
But hook logs can happen without the message from step 2 being sent, since the button is only sent in that step, why would WhatsApp send a message action that was not sent?
I still don't understand the problem! After submitting steps 2 and 3, the flow should wait for user input. But it seems like step 3 takes longer, and when the message is sent and responded to, the flow hasn't reached step 4 yet. Could this be the case?
And as mentioned, this does not happen with all users/conversations, some remain waiting for user input, another the flow continue step 5 and so
l
the only way to figure out is examining the logs, there could be a possibility that the user responded before reaching step4. can you try replacing it with a raw input instead?
m
Sure, but what should the differences be?
l
let me know if it worked or still the same
m
It seems to work, but there's a warning associated with that button. Should I be concerned that this warning could cause other problems? No Botpress message was found for the WhatsApp message mentioned with message ID wamid.HBgLNTAyNTAxOTI0MzUVAgARGBJFQTEwQTQ3NDZDM0NCRDk1ODkA. The bot may be unable to retrieve the context. https://cdn.discordapp.com/attachments/1407402355753750578/1407479450232426516/Screenshot_2025-08-19_at_2.31.45_PM.png?ex=68a640e2&is=68a4ef62&hm=f781149a17f7ce64a520e1d90a6680298495290f7cb8d0d2d6bf63280533ea21&
I have a lot of waiting for input in the flow To conclude @limited-pencil-78283 , should I change the waiting for input with the raw input?
3 Views