Turn WhatsApp orders on or off
configure_whatsapp_ordersLet buyers send their cart to the store's WhatsApp from the cart and checkout ("Order on WhatsApp"), or stop it. Works alongside card payments and cash on delivery: buyers choose. Turning it off is final until turned on again; the store keeps the number. Needs a WhatsApp number with country code when none is saved on the site.
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": {
"site_id": "<site_id>",
"enabled": "<enabled>"
},
"name": "configure_whatsapp_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | The WhatsApp number orders go to, exactly as the owner gave it, with its country code. Omit to keep the saved number, or use the site's own WhatsApp number. | |
| enabled | Yes | true = buyers can tap Order on WhatsApp in the cart and checkout and send the store their order; false = stop offering it (final: the cart never falls back to it) | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |