Send a reply to the customer
colliedesk_reply_sendSend a reply on a conversation. Colliedesk emails it to the customer (and to cc) through the workspace's email channel. It cannot be undone: an email that left cannot be called back. Before you call it, show the user what you will do and get their yes, unless they already told you to do exactly this. Each call sends one more email, so never call it again to retry a call that succeeded; read the conversation first. To have a person check the words first, or when you may not send (no messages:send), use colliedesk_reply_draft. The reply is recorded as written by you through your token (written_by_agent_token). delivery says whether the email is queued. Pass seen_reply_number, the latest_reply_number of the colliedesk_conversation_get you read: when someone replied since, nothing is sent and the error shows their reply; read the conversation again before you send. When a team member has a reply to this customer open and not sent yet, the result carries a warning; say so to the user. files attaches up to 10 files, 5 MiB in total per call (base64); they are emailed with the reply. Pass ai_draft_id when the reply is written from a draft (colliedesk_ai_draft_get, colliedesk_ai_drafts_list), so the draft records how close the reply stayed to it; a draft that is not this conversation's ready one is refused and nothing is sent. Without ai_draft_file_ids, every file of that draft is sent with the reply; ai_draft_file_ids names the ones to send (an empty list sends none). The draft's files and files count together toward 10 files and 10 MiB.
Needs: conversations:read, messages:note, messages:read, messages:send, team:read.
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": {
"conversation_id": "<conversation_id>",
"body": "<body>",
"seen_reply_number": "<seen_reply_number>"
},
"name": "colliedesk_reply_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Plain email addresses to copy, at most 10. The customer is always the recipient. | |
| body | Yes | The reply text (Markdown). | |
| files | No | Files to attach, at most 10 and 5 MiB in total (decoded) per call: about 7,000,000 characters of base64 for all files together. A larger call is refused before it reaches Colliedesk; send fewer files per call. | |
| ai_draft_id | No | The draft this reply was written from. Send token only. | |
| conversation_id | Yes | ||
| ai_draft_file_ids | No | With ai_draft_id: the ids of the draft's files to send (files of the draft). Leave it out to send every file of the draft; [] sends none. | |
| seen_reply_number | Yes | latest_reply_number from the colliedesk_conversation_get you based this reply on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| warning | No | A team member had a reply to this customer open and not sent yet. | |
| conversation_id | Yes |