Turn on the chat widget
enable_chat_widgetTurn on a site's chat widget — the AI assistant that answers visitors, captures leads and can take booking requests. Creates it when the site has none (with a brief drafted from the site), switches it on, and installs it on the site, all in one call. If switching on works but installing fails, the result says so (code: "embed_install_failed") and the widget stays on: tell the owner it is not yet on the site. Visitors see it after the next publish. Appearance, chat flows and knowledge are set in the editor.
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>"
},
"name": "enable_chat_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| welcome_message | No | The first line the widget greets visitors with. Omit to keep the current one, or the default for a new widget. |