Send a photo or file as operator
dosai_send_operator_mediaSend a client a photo, video or document, with a caption. Give exactly one source: media_id (a file from the project's media library, see list_media; uploaded once in the cabinet, sent to as many dialogs as you like) or media_url (a direct public https link to the file itself, up to 16 MB: the platform downloads it, checks what it really is and keeps a copy, so the link may die afterwards). A link to a web page, a Google Drive preview or anything behind a login is refused with a plain reason. Same rules as send_operator_message: real people see it, it cannot be unsent, confirm the wording with the user first; delivered: "unknown" means WhatsApp did not confirm in time and the file may have gone out. For a whole list of clients, send one by one with a pause of 8-10 seconds, or ask the owner to run a broadcast.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"conversation_id": "<conversation_id>"
},
"name": "dosai_send_operator_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | Optional with media_url: the file type, e.g. application/vnd.openxmlformats-officedocument.wordprocessingml.document. The bytes decide anyway. | |
| caption | No | Text under the file, exactly as the client will see it. | |
| media_id | No | File id from list_media. Give this OR media_url. | |
| file_name | No | Optional with media_url: document name the client sees, e.g. Афиша.pdf. | |
| media_url | No | Direct https link to the file (jpg, png, pdf, mp4...), up to 16 MB. Give this OR media_id. | |
| project_id | Yes | From dosai_list_projects. | |
| conversation_id | Yes | From dosai_list_conversations. |