Message Received

This event is fired whenever a reply from a contact is received.

{
  "event": "message_received",
  "timestamp": "2016-10-06T13:42:48Z",
  "data": {
    "id": "6456078996108088196",
    "channel": {
      "id": "6456078759331238786",
      "type": "rbm"
    },
    "contact": {
      "id": "6456078781510718339",
      "phone_number": "15558576309"
    },
    "content": {
      "type": "text",
      "payload": "That's really nice that I can write you here. You guys rock!"
    },
    "nlp": {...}
  }
}

Parameter

Type

Description

data

object

Object representing message received. The structure matches Send Message response structure except for the nlp key which is valid only for received messages.

data.nlp

object

See NLP documentation.