I am trying to add buttons in my chatbot over the WhatsApp channel, Ref: Interactive Message Templates - WhatsApp Business API - Documentation - Facebook for Developers. But it seems like Twilio and rasa interface is not updated for this, or at least I am not able to find that. before I try some custom code I wanted to confirm if someone has done this before. am I in the right direction? if I develop custom code will it work on the Twilio server or my extra payload will filter out. any help here will be appreciated, I really think this is a good to have feature on our bot.
I Think Twilio have updated the UI where you can add WhatsApp buttons, you have to create templates in the dashboard and submit it for approval, once approved when you will send the exact message Twilio will append the buttons.
And to understand the buttons on the rasa end I had to create a custom channel. All you have to add is one if condition in the existing Twilio channel and rename it. if Rasa haven’t updated it yet.
text = request.form.get("Body", None)
if not text:
text = request.form.get("ButtonText", None)
Is there a specific reason you are using twilio? You can switch to the new WhatsApp Cloud API directly from meta. There the endpoints have more options and buttons are possible without approval.
But Rasa does not have a connector for the WhatsApp Cloud API yet. But a custom connector should not be super complicated.
It’s ideal to have sharing icons, like whatsapp for sites and apps. Like celebrity site, pkbiography has social media sharing icons. To check the code go to inspect and view source code,