How to start a WhatsApp Conversation from a webHoo...
# 🤝help
e
I have to start a conversation from a WhatsApp template. My goal is to start a conversation from the user's reply on a whatsapp template. Problem: https://app.sendpotion.com/65c2826ce3a89414a9e54e9e Solution Part 1 - Webhook to Whatsapp template https://app.sendpotion.com/65c2a03dbf8603de2c1a9ac8
@worried-window-19446 can you explain here how to do that please?
So I have a bubble.io application. I will trigger a webhook event that should send a template. The answer to that template should start a flow.
f
e
All I have is the conversation ID from whatsapp. How can I start from there?
w
the way I am working is like this
e
I know I can use this to start the conversation.
w
i couldn't figure it out how to use this conversationId
e
I don't think that's going to work... i need the user to start a process with some predefined variables.
I'll try and send over the webhook
I was able to extract the webhook payload using {{event.payload}} Now I need to be able to extract information and use it
@fresh-fireman-491 any thoughts here?
Ok, so @fresh-fireman-491 helped me retrieving the variable from Json. You only need a code block to set the variable like this
f
I am guessing that your bot is dependent on retrieving a name from this right?
Might want to add a fallback name
workflow.Nome = event.payload.body.nome || "Default name here"
e
Hey @fresh-fireman-491 I got a little more complex and found a bug
Variables are declared
Foun the bug
Thanks man
f
You fixed it! Good work
e
Solution #1 - Webhook to Whatsapp Template https://app.sendpotion.com/65c2a03dbf8603de2c1a9ac8
Now I need to continue the conversation... next step.
Hey guys, still having trouble here.
w
Hey, what's the problem?
4 Views