Twilio/call-to-action buttons let recipients tap to trigger actions such as launching a website, copying a coupon code, or making a phone call.
If you are using a URL button and want to submit the template for WhatsApp approval, the URL must resolve to a publicly accessible website. If there is a variable, a valid path sample should be included in the variables array. The combined URL should resolve to a publicly accessible website.
Example:
"url": ["https://www.twilio.com/{{1}}"] would include a path sample in the variables definition. "variables": {"1": "docs"}
(warning)
Warning
Twilio/call-to-action templates can be sent via WhatsApp for out of session messages with variables. If the template's body starts or ends with a variable or has two variables next to each other, the template will not be approved by WhatsApp without a sample variable. For additional information about variables see Using Variables with Content Templates.
Supported Channels
WhatsApp, Facebook Messenger
Message Preview
Data Parameters
body:
Type:
string
Required:
yes
Variable Support:
yes
Description: The text of the message you want to send. This is included as a regular text message.
Maximum 640 characters
actions:
Type:
array
Required:
Yes
Variable Support:
Yes
Description:
Call to action templates support URL, PHONE, COPY_CODE, and VOICE_CALL buttons.
(information)
Info
Limitations -
Only 1 of the 2 call options can be on a template: PHONE or VOICE_CALL.
Up to 2 URL buttons are allowed.
VOICE_CALL is currently a private beta in select regions.