Set the details the chat collects
set_chat_details_to_collectSet the details a site's chat collects from visitors (up to 8, e.g. "Car model", "Preferred date"): what to ask for each, and whether it is needed before the chat saves the lead, books or calls a function. The chat asks one at a time and never asks what it already knows; what visitors say is added to the contact when the lead is saved. Replaces the whole list, as a new version.
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>",
"details": "<details>"
},
"name": "set_chat_details_to_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | Yes | The whole list (at most 8): it replaces the saved one. An empty list collects nothing. | |
| 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. | |
| expected_version | No | The `version` get_chat_playbook returned. When given, the save is refused if someone saved since. |