Send WhatsApp text
gambot_send_textSend a free-text WhatsApp message to a customer within the 24-hour service window. For messages outside that window, use the template tool instead.
Instructions
Send a free-text WhatsApp message. Only works inside the 24-hour customer service window; outside it, use gambot_send_template.
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>",
"text": "<text>"
},
"name": "gambot_send_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Phone number, ideally E.164 international format (country code, digits only, no leading 0), e.g. 972501234567 or 12025551234. A local/national number (e.g. leading 0) is accepted when a country is provided — or when the organization has a saved country from onboarding; otherwise it's rejected as ambiguous. | |
| text | Yes | Message body | |
| country | No | ISO-3166 alpha-2 (e.g. 'US','IL') to internationalize a local/national number in `to`. Optional if the organization has a saved country (set at onboarding). |