Sending a simple text message

Simple text message

Below is an aexample of a simple text message

Copy
Copied
{
   "to":"441234567890",
   "message":{
      "type":"text",
      "text":"Hello World!"
   }
}

Rendered message

Simple text message with suggestions

Below is an aexample of a simple text message

Copy
Copied
{
   "to":"441234567890",
   "message":{
      "type":"text",
      "text":"Hello World with suggestions!"
   },
   "suggestions":[
      {
         "type":"reply",
         "display_text":"Like",
         "postback":{
            "data":"reply_tapped"
         }
      },
      {
         "type":"reply",
         "display_text":"Stop please",
         "postback":{
            "data":"stop_tapped"
         }
      },
      {
         "type":"action",
         "display_text":"Call us",
         "postback":{
            "data":"call_us_tapped"
         },
         "action":{
            "type":"dial_phone_number",
            "phone_number":"+1234567890"
         }
      }
   ]
}

Rendered message

Was this page helpful?