Message Received

This event is fired whenever a contact sends a message to your Viber Bot account.

📘

Amio Persists Message Files

All incoming messages having a file url attachments (i.e. Image Message, Video Message , etc.) are persisted on Amio servers due to expiration reasons.

{
  "event": "message_received",
  "timestamp": "2016-10-06T13:42:48Z",
  "data": {
    "id": "6456078996108088196",
    "channel": {
      "id": "6456078759331238786",
      "type": "viber"
    },
    "contact": {
      "id": "6456078781510718339"
    },
    "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. Different type of messages can be received (text, image, etc.). 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.