Draft a reply with AI
message_draft_ai_replyAsk a connected AI provider to draft a reply for a thread, given a prompt. Returns the draft only and sends nothing. Show it to the user; they can send it from the web app, or approve it for message_send, which delivers immediately and cannot be recalled — so only on an explicit yes for that exact text. This is a one-off draft from a prompt. A configured agent that replies on its own is agent_upsert plus campaign_update; to see how such an agent would answer, agent_query. Requires an AI provider connected in the web app under Settings - Integrations.
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": {
"conversationId": "<conversationId>",
"provider": "<provider>",
"prompt": "<prompt>"
},
"name": "message_draft_ai_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What the reply should do, e.g. "propose three times next week for a 20-min call". | |
| provider | Yes | Which connected provider to use. Providers are connected in the web app. | |
| conversationId | Yes | Conversation id, from `conversation_list`. |