twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 462 forks source link

WhatsApp call to action button with Dynamic URL suffix #624

Closed mahkhaledm closed 1 year ago

mahkhaledm commented 1 year ago

WhatsApp business platform allows to send a message with interactive call of action buttons with dynamic URL suffix. https://developers.facebook.com/docs/whatsapp/api/messages/message-templates/interactive-message-templates

I created a template in whatsApp template with a dynamic URL but can't pass this suffix variable using Twilio-ruby gem.

rakatyal commented 1 year ago

Hi @mahkhaledm, this should be supported. Have you tried these instructions? There is also a support article with some FAQs on this topic. Please let us know if this doesn't work for you.

mahkhaledm commented 1 year ago

yes, this is OK for static URL type. But WhatsApp supports dynamic URL type where you can pass a variable to personalize this button URL https://business.facebook.com/business/help/2055875911147364?id=2129163877102343

Screenshot 2022-12-12 at 10 38 38 PM
rakatyal commented 1 year ago

I see. I don't think Twilio supports creating dynamic url for buttons. This is what I see in my console

image

How were you able to create a dynamic URL template?

mahkhaledm commented 1 year ago

Yes, it seems Twilio interface doesn't support it yet. I created it from WhatsApp templates directly.

rakatyal commented 1 year ago

Yes. This is outside the scope of the helper libraries. In order to properly track this feature request, please file a support ticket.