Can I start 5 parallel WhatsApp conversations
# 🤝help
t
Hi guys, I'm working on a project where the client has asked me to set up automated messaging to artists for an event. We want to message 5 artists at a time to check for availability. I'm able to successfully message one whatsapp phone number using 'Start Conversation'. I wanted to check if there is a way I can loop (Array.map) through the data object I've filtered from my KB table and message 5 artists using whatsApp 'Start Conversation'
f
Hello @thankful-insurance-9424 a few things to consider. First, for the integration to work properly you must have a WhatsApp Business platform account, this is different from a WhatsApp Business Account. Second, in order to send a Business-initiated message (outside of a conversation that a user started) the user first must opt in to receive messages from the phone number associated with the bot. Third, the messages must be pre-approved templates. The bot is capable of having multiple conversations running at the the same time. Each conversation will be its own unique session in Botpress. Here is some additional documentation to help you. https://botpress.com/docs/cloud/channels/whatsapp/#starting-a-conversation-proactively https://business.whatsapp.com/products/business-platform https://developers.facebook.com/docs/whatsapp/message-templates/guidelines/ Please let me know if you have any additional questions
I do want add if you are not a Meta Verified business then you can use one of the integrations with brokers like Twilio or Vonage to interact with WhatsApp
t
@flat-plumber-75402 thanks a whole lot for taking the time to help out. I have completed all the steps required to successfully to send to message to just one whatsApp number from the my botpress bot. I've created a template and gotten it approved too and it's all working perfectly. Problem is...my implementation is currently for just one whatsapp number I'm a little stuck when it comes to sending out more than one WhatsApp message. I have an array of objects, each object contains a name and WhatsApp number. Its saved in a variable called kbAnswerObj (please refer to the screenshot above for my implementation). I want to send a whatsapp message (using my approved template) to all the numbers in this array. Is there any way I can implement this? I've looked through the documentation, youtube vids and googled it but wasn't able to find a similar implementation. I apologize if there's something I missed but if you can point me in the right direction I would really appreciate it.
f
@thankful-insurance-9424 Let's take a step back. Botpress is as studio for conversation design. This means 1 conversation. To trigger the conversation with 5 people means you are starting 5 separate conversations. This needs be done on the WhatsApp side not on the Botpress side.
t
@flat-plumber-75402 so it cant be done directly with botpress, Got it. Do you know if there's any way to connect another app to botpress to do this? Like pass on the data I pulled the continue the messaging flow there?
f
So a key piece is WhatsApp policies in regards to chatbot use here are some articles that can help you gain a better understanding. IN short promotional notifications which is what you are describing above are not allowed to be done by chatbots on WhatsApp's platform. My understanding from reading WhatsApps documentation, which I recommend you take sometime do as well, is that such messages need to be sent from the platform by a human. So I do not believe there is going to be way outside WhatsApp to send promotional / Marketing notifications that will be able to tie into the phonenumber associated with the bot. Here is some docs that you may find helpful https://botscrew.com/blog/a-step-by-step-guide-to-create-chatbot-for-whatsapp-for-business/#:~:text=The%20most%20critical%20limitation%20is,to%20get%20WhatsApp%20API%20access. https://www.whatsapp.com/policies/business-policy https://www.whatsapp.com/legal
Also I do strongly recommend the WhatsApp Business Management API cours offered by Meta, it only takes about 1.5 hours and is excellent at helping you understand the capabilities and limitations of the WhatsApp Business API, which is what the WhatsApp integration on Botpress is built to use. https://www.facebookblueprint.com/student/collection/409587
t
Thanks again @flat-plumber-75402, I'll go through these links
f
My pleasure @thankful-insurance-9424 I hope it helps.
e
Hi. I was wondering the same thing. And I'm thankful. So, in a nutshell: - We can't trigger a conversation with multiple WhatsApp from Botpress studio - We can't use the same WhatsApp number to send messages from another service meanwhile it is used by Botpress That's right? So, @flat-plumber-75402, I was wondering if we can use another solution like Botpress Client as says this fragment of documentation: https://botpress.com/docs/whatsapp#creating-the-conversation-using-the-botpress-client? ...or, if there is some way to use the Botpress API? I appreciate in advance, your answers. Regards
10 Views