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.
Parameter | Description | Required |
---|---|---|
type | Attachment type. The default value is event | Yes |
payload | Attachment object | Yes |
{
"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 | Yes |
Updated 3 days ago