Draft a WhatsApp message
send_messageDraft WhatsApp text, media, polls, locations, or forwards from a chat and content, returning a preview and draft_id for confirmation before anything is sent.
Instructions
Drafts text, media, polls, locations, forwards; sends nothing. Call it as soon as you have recipient and text: it returns draft_id and preview (recipient, number, exact text). Show that preview; confirm_send only on a yes to this text and recipient — a send in the same request is that yes.
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": {
"chat_id": "<chat_id>",
"text": "<text>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Media: send as a document, voice note or GIF | |
| url | No | Media: public http(s) URL | |
| mime | No | ||
| text | Yes | The message, or caption, poll question, place name; "" for a forward, voice note or audio | |
| address | No | Location: shown under the name | |
| chat_id | Yes | Chat id, or a phone number | |
| forward | No | Forward this message; text "" | |
| options | No | Poll answers | |
| send_at | No | Send later: "2026-10-12T09:00" in time_zone, or with an offset | |
| filename | No | With data_base64 | |
| latitude | No | ||
| reply_to | No | ||
| file_path | No | Media: a path on wazap's machine | |
| longitude | No | ||
| time_zone | No | IANA zone for send_at; the server's by default | |
| account_id | No | ||
| data_base64 | No | Media: the file, base64, ≤5 MB | |
| mention_ids | No | Chat ids to @-mention; write @<number> in text for each | |
| multi_select | No | Poll: several answers allowed |