send_whatsapp_message
Send a WhatsApp text or template message from a connected business number. Pick the sender with connection_id OR number_id (exactly one). Returns Meta's wamid; delivery is asynchronous — subscribe to the whatsapp.event.received webhook, which relays Meta's status payloads verbatim. Sautikit stores no messages, so there is no conversation history to read back: the wamid is your correlation handle. IMPORTANT: free-form text is only permitted inside the 24-hour customer service window the contact opened by messaging you; outside it, send type "template" with a Meta-approved template or the send is rejected.
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": {
"to": "<to>",
"type": "<type>"
},
"name": "send_whatsapp_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | recipient WhatsApp id (a phone number, e.g. 254700000001) | |
| text | No | required when type is text: {body, preview_url} | |
| type | Yes | "text" for a free-form message (only allowed inside the 24-hour customer service window the contact opened by messaging you) or "template" for a Meta-approved template (allowed any time) | |
| purpose | No | Required on tools that read data or reports; recommended on every tool. One sentence: what you are doing and why (for example "finding this caller's open ticket to answer them"). Building a report, dashboard, analytics or an export is a SautiDesk Pro feature done by the report tools, not by pulling records. | |
| template | No | required when type is template: {name, language_code, components}; the template must already be approved by Meta | |
| number_id | No | Sautikit number id (a UUID from list_numbers) to send from — NOT Meta's phone_number_id; Sautikit maps it to Meta's id by matching the number E.164 against connected WhatsApp accounts. Mutually exclusive with connection_id | |
| connection_id | No | UUID of the WhatsApp connection to send from; mutually exclusive with number_id |