I'm new to n8n and I'm facing an issue while capturing multiple responses from a user in a workflow.
Context: I have a workflow where:
- A user sends a message via WhatsApp.
- A webhook (POST) receives the message.
- A code node filters out unnecessary data.
- A switch node makes a decision based on the option selected by the user (e.g. "a", "b", "c", "d").
- WhatsApp sends a message with sub-options (e.g. "a1", "a2", "a3").
Issue: Although the flow works fine for the first response, I'm not able to capture the second response from the user. The initial webhook receives the first message, but I don't know how to handle subsequent responses.
What I've tried:
- Using a second webhook to get additional responses (didn't work).
- Trying with HTTPS in the Facebook Developer Meta API for WhatsApp, but only found push methods.
- Trying to sequence two webhooks, but Meta Developer only allows binding to a single webhook node.
Sample JSON code:
[
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "",
"wa_id": ""
}
],
"messages": [
{
"id": "wamid.HBgNNTQ5MTE2NDU1ODczNhUCABEYEjZFRTIzNzc0MDQ0NTVEOTE3NwA="
}
]
}
]
Question: How can I capture the second user response in n8n using the Meta WhatsApp API?