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.

Parameter

Description

Required

type

Attachment type. Currently this has to be event

Required

payload

Attachment object

Required

{
  "type": "message.send",
  "payload": {
    "threadId": "EXAMPLE27348ed3bd1439e7b",
    "traceId": 1111111111111,
    "speech": "event attachment",
    "attachment": {
      "type": "event",
      "payload": {
        "name": "INTRO"
      }
    }
  }
}

Attachment object

Parameter

Description

Required

name

Name of the event to trigger

Required