Save a draft in a conversation's draft box
compose_draftSaves a message as a draft in a conversation's draft box, as the draft box and /drafts New draft do: give conversationId, or clientId to use that contact's one conversation. channel 'email' with a subject, a picked recipient or replyToEmailId makes an email reply; otherwise it is a text. whyNote is the line shown above the draft. Nothing is sent; a person reviews the exact text and presses Send. For a plain text draft the Sergio card's own create_draft does the same. Pass the same idempotency_key when retrying; a repeat returns the original draft.
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": {
"body": "<body>",
"idempotency_key": "<idempotency_key>"
},
"name": "compose_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| channel | No | ||
| subject | No | ||
| whyNote | No | ||
| clientId | No | ||
| recipient | No | ||
| conversationId | No | ||
| replyToEmailId | No | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |