Hey folks, I’m stuck with my n8n project. Help!
I’m trying to get multiple responses from users through WhatsApp in my n8n workflow. Here’s what I’ve got so far:
- User sends a WhatsApp message
- Webhook catches it
- Code node cleans up the data
- Switch node picks a path based on user’s choice
- WhatsApp sends more options
The problem is, I can only grab the first message. I’m clueless about how to get the follow-up responses. I’ve tried a few things:
- Adding another webhook (didn’t work)
- Checking Meta’s API docs (only found push stuff)
- Trying to chain webhooks (Meta only lets you use one)
Here’s a bit of the JSON I’m working with:
[
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "",
"wa_id": ""
}
],
"messages": [
{
"id": "wamid.HBgNNTQ5MTE2NDU1ODczNhUCABEYEjZFRTIzNzc0MDQ0NTVEOTE3NwA="
}
]
}
]
Any ideas on how to grab that second response? I’m totally stumped!