This event is fired whenever a contact sends a message to your dedicated phone number or replies to you in case of shared number.
{
"event": "message_received",
"timestamp": "2016-10-06T13:42:48Z",
"data": {
"id": "6456078996108088196",
"channel": {
"id": "6456078759331238786",
"type": "mobile"
},
"contact": {
"id": "6456078781510718339",
"phone_number": "15558576309"
},
"content": {
"type": "text",
"payload": "That's really nice that I can write you back. 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. |