Support attachments in messages sent with the Flow Socket API.

Instead of simple text messages, Flow also supports sending attachments like files or events.

📘

We currently only support sending event attachments. Image and file attachments will follow soon.

ParameterDescriptionRequired
typeAttachment type. Currently this has to be eventRequired
payloadAttachment objectRequired
{
  "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 triggerRequired