Start a conversation by email
colliedesk_conversation_startOpen a new conversation with a customer and email them its first message (and cc) in one step. 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. If the email is refused (no email channel, the channel is off, trial rules, cc rules) nothing is stored. The customer's answer joins the same conversation. A workspace with several email channels starts from channel_id, or from its default one. During the trial a new conversation reaches someone who never wrote in, so it is refused until the sending domain is verified or a plan is chosen. Each call opens one more conversation and sends one more email, so never repeat a call that succeeded; after a dropped connection, look for it with colliedesk_contact_get first. Give contact_id for a customer found with colliedesk_contacts_find, or new_contact to add the customer in the same step (an address that is already a customer is refused and the error names that customer). To open a conversation without emailing, use colliedesk_conversation_create. files attaches up to 10 files to the first message, 5 MiB in total per call (base64).
Needs: messages:read, messages:send.
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": {
"subject": "<subject>",
"body": "<body>"
},
"name": "colliedesk_conversation_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Plain email addresses to copy, at most 10. | |
| body | Yes | The first message (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. | |
| subject | Yes | ||
| channel_id | No | The email channel it starts from (colliedesk_channels_list), which its replies keep leaving from. Leave out for the default one. | |
| contact_id | No | The customer; give this or new_contact. | |
| new_contact | No | A customer to add with the conversation; give this or contact_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| conversation | Yes |