Lewati ke konten utama

WabaInteractiveBtnReply

Requirement

To send this type of (just like Reply) message, you must first establish a Conversation room with the recipient. In other word, your recipient must sent a message to your gateway.

Introduction​

Interactive Button Reply message allow you to send up to three predefined replies for users to choose from.

Json Request Components​

  • header: Available types: text, document, image, and video
    optional
    Example:

    • text: {"type": "text", "text": "Your Text Header"}
    • document: {"type": "document", "link": "YOUR_DOC_URL", "filename": "document.pdf"}
    • image: {"type": "image", "link": "IMAGE_URL"}
    • video: {"type": "video", "link": "VIDEO_URL"}

    Media extensions

    • document: pdf, doc, docs, ppt, pptx, txt, xls and xlsx
    • image: jpeg and png
    • video: 3gp and mp4
  • body: Message text body
    required, max 1024 characters

  • footer: Foot note message
    optional, max 60 characters

  • buttons: Reply buttons
    max 3 items

    • button_id: the button identifier. Must be unique.
      max 256 characters
    • title: Button label text.
      max 20 characters
{
"gateway_id": "YOUR_GATEWAY_ID",
"recipient": "RECIPIENT_NUMBER",
"header": {
"type": "image",
"link": "https://api-doc.nusasms.com/slate/img/logo.png"
},
"body": {
"text": "This is the main text.\nMake it sounds cool\n😁"
},
"footer": {
"text": "A little note on the footer"
},
"buttons": [
{
"button_id": "BTN ID 1",
"title": "This is"
},
{
"button_id": "BTN ID 2",
"title": "some"
},
{
"button_id": "BTN ID 3",
"title": "cool buttons"
}
]
}

Preview​

Here is the preview when you got this type of message.

Received Message​

Message preview

Send Reply on Click / Touch​

On click/touch