https://discord.gg/botpress logo
I need help regarding EXECUTE CODE CARD
# 🤝help
g
I need help regarding the execute code card. - is there any option we have to stop the execute code card to move forward until the response from user. - explain how wait for user input works. DM me.
b
you can simply place a wait for user input card after the execute code card
l
you can use "wait for user input" card to wait for any user input. in event.preview you will get the user input. the card will wait till a user provides an input and store that in event.preview and then move to the next card however, I am not sure why you want the wait on the execute code card?
g
@limited-pencil-78283 I'm using a execute code card to send a whatsapp flow from backend. i need to wait until the user fills the flow, after filling the flow i need to take those details entered by the user. Meta sends as a response_data to an webhook which we connected in the meta. After all these i'll routes to next nodes. suggest me a better way, if you have any. Thank you!
l
for this you will have to store the conversationId and from whatsapp number in a table to get the workflow continued when you receive the flow response
g
@limited-pencil-78283 how to handle nfm_reply in botpress? error: [whatsapp] Unhandled interactive type: "nfm_reply"
l
I thought you were handling it via webhooks. Botpress does not support nfm_reply. I solved it using my own custom development
g
@limited-pencil-78283 yes, i connected botpress whatsapp integration url in meta callback url. So, I'm receiving all the logs in botpress. - I faced an issue while integrating to WhatsApp through OAuth. So, i used manual integration. - first i developed a bot in an account and I connected it to WhatsApp through OAuth (No issues found at that time). Then i exported it and imported it in the current account(WhatsApp integration issue account). I used the same whatsapp business account for both bots. - before integrating whatsapp in the new account i uninstalled the connection in the old account.
l
g
@limited-pencil-78283 Okay. - do you have any tutorial for (nfm_reply) this? - can you tell about WhatsApp integration issue, why it is worked in one bot account and why the same business account is not working in new bot account. I disconnected the integration in previous one and then integrated in new one.
l
I do not have a tutorial, since it is a backend. the working i have explained above are you saying that flows worked perfectly when you integrated WhatsApp with Botpress using OAuth?
g
@limited-pencil-78283 Okay. Initially, I created and connected a bot to WhatsApp successfully using OAuth in Account A. Everything worked fine there. Later, I exported that bot and imported it into Account B, which is the account I actually wanted to use. Here’s what I did step by step: 1. I connected the bot in Account A to WhatsApp using OAuth, and it worked perfectly. 2. I then exported that bot from Account A and imported it into Account B. 3. I made sure to disconnect the WhatsApp integration from Account A before setting it up in Account B. 4. In Account B, I tried to integrate the same WhatsApp Business Account using OAuth — but this time, the experience was different. (check the attached image) Since the OAuth method wasn’t working in Account B, I eventually switched to manual integration, which worked. The Confusion: The exact same WhatsApp Business Account worked in Account A but didn’t work in Account B via OAuth — even though I uninstalled the integration from Account A before trying in Account B. https://cdn.discordapp.com/attachments/1364234922042069154/1364476221764800523/image.png?ex=6809cf02&is=68087d82&hm=0c14a4ecb4cbf22658f242042f9a26f05a133f45692307ee3491dda2bd9ca890&