Types

Facebook Messenger types are used to explicitly specify the purpose of a message and ensure that given message complies with Facebook policies. Amio handles message types automatically so you don't have to care about setting this attribute. However, you can specify a message type for custom scenarios.

To send a message type, you can use type reserved keyword in metadata attribute:

{
  "channel": { ... },
  "contact": { ... },
  "content": { ... },
  "metadata": {
    "type": "response"
  }
}
ParameterTypeDescription
typestringMessage type: response, update. Type can be set only if Tags are not used.


response (default): Message is in response to a received message. This includes promotional and non-promotional messages sent inside the 24-hour standard messaging window. For example, use this tag to respond if a person asks for a reservation confirmation or an status update.


update: Message is being sent proactively and is not in response to a received message. This includes promotional and non-promotional messages sent inside the the 24-hour standard messaging window.