Image (IMAGE)
Image file message.
data schema
{
url: string;
mime: string;
path: string;
size: number;
fileName: string;
extension: string;
caption?: string;
}
| Field | Type | Description |
|---|---|---|
url | string | Displayable URL |
mime | string | MIME type (e.g. image/jpeg) |
path | string | Storage path |
size | number | Size (bytes) |
fileName | string | File name |
extension | string | Extension (e.g. jpg) |
caption | string? | Optional caption text |
Example
{
"id": "1929c87c-257f-4fb8-a28f-ca63464a6f55",
"createdAt": "2026-07-24T04:54:16.716Z",
"type": "IMAGE",
"nameOfSender": "Support Bot",
"isFromSupport": true,
"data": {
"url": "https://os.chatbot.aithinks.net/chat-assets/chats/53e06328-5d7e-4943-94f8-f74b5a9be6d7/3fb6f2-1784868856617.jpg",
"mime": "image/jpeg",
"path": "chats/53e06328-5d7e-4943-94f8-f74b5a9be6d7/3fb6f2-1784868856617.jpg",
"size": 74701,
"caption": "Barkod Yazıcı Tanımlama — Kullanıcı Adı/Müşteri Adı (pasif, otomatik gelir), Barkod Printer Tipi dropdown ve Kaydet butonu",
"fileName": "3fb6f2-1784868856617.jpg",
"extension": "jpg"
}
}
UI recommendation
- Display the image using
data.url. - If present, show the
captiontext below the image.