Skip to main content

WA Quick Reply Button Message

In order to send the WA Quick Reply Button message (Non-Templated)- with or Without Mdia file- enterprises have to use the Card Message Object- The details for the same is mentioned below-

Card Message- Message containing text, media and choices.

It contains following Details-

Objects
ChoicesArray of objects (Choice message)
You may include choices in your Card Message. The number of choices is limited to 10
Descriptionstring
This is an optional description field that is displayed below the title on the card.
Heightstring (CardHeight)
You can set the desired size of the card in the message.
Enum: "UNSPECIFIED_HEIGHT" "SHORT" "MEDIUM" "TALL"
Media_messageobject (MediaCarouselMessage)
A message containing an image media component.
Titlestring
The title of the card message.

JSON Object Parameter in Choice Object to be used for Quick Reply Messages-

Objects
Text_messageobject (TextMessage)
A message containing only text.
postback_datastring
An optional field. This data will be returned in the ChoiceResponseMessage.
The default is message_id_text, title.

JSON Object Parameter in Text Message-

AttributeDescription
Text
Required
String
The text to be sent.

JSON Object Parameter in Media_Message Object-

AttributeDescription
Text
Required
String
Url to the media file.
CaptionString
Caption for the media on supported channels.
{
"app_id": "01E9AHW7C686SN0HZ595BH1YYY",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "WHATSAPP",
"identity": "91931XXXXXXX"
}
]
}
},
"message": {
"card_message": {
"title": "Sign up for our newsletter",
"description": "Our weekly newsletter with deals and extra content!",
"media_message": {
"url": "https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png"
},
"choices": [
{
"text_message": {
"text": "Sign up here"
}
}
]
}
}
}