Attachments

Support attachments in messages sent with the Flow Socket API.

Flow provides support for sending attachments like files or events instead of simple text messages.

📘

Note

Flow supports only event attachments. Image and file attachments are coming soon.

ParameterDescriptionRequired
typeAttachment type. The default value is eventYes
payloadAttachment objectYes
{
  "type": "message.send",
  "payload": {
    "threadId": "EXAMPLE27348ed3bd1439e7b",
    "traceId": 1111111111111,
    "speech": "event attachment",
    "attachment": {
      "type": "event",
      "payload": {
        "name": "INTRO"
      }
    }
  }
}

Attachment object

ParameterDescriptionRequired
nameName of the event to triggerYes