User messages

A user message can either be 'text' or 'postback'.

Text

A 'text' message is sent when sending text from the text input or when the user clicks a quickreply. Either of these events will send the following message (see right pane):

{
  "type": "text",
  "payload": {
    "value": "I would like more information please"
  }
}

Payload value parameters:

Parameter Type Description
value String A string containing the message.

Postback

A 'postback' message is sent when clicking an Action button of type 'postback'. It will send back the same payload.value as the Action (see right pane for an example):

{
  "type": "postback",
  "payload": {
    "value": {
      "customKey": "customValue"
    }
  }
}

Payload value parameters:

Parameter Type Description
value Object A object representing the postback to send to the bot.