Change the chat's situations
update_chat_situationsSave the chat's situations, or bring back an earlier version. save: send the WHOLE set (from get_chat_situations, edited: each situation has a short key, title, when it applies and direction for what to do) with expected_version from that read and a one-line summary; a save made after someone else's is refused, so read again. restore: version to bring back, with expected_version. Every save is a new version and can be restored. Test an answer afterwards with test_chat_answer. The chat's moves and details to collect are not situations: they are kept as they are (change them with set_chat_moves and set_chat_details_to_collect).
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>",
"action": "<action>",
"expected_version": "<expected_version>"
},
"name": "update_chat_situations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | save: the whole set of situations ({ playbooks, audiences?, defaultDirection?, ... }) | |
| action | Yes | ||
| site_id | Yes | The site, from list_sites | |
| summary | No | save: what changed, in one line | |
| version | No | restore: the version to bring back | |
| 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. | |
| override_reason | No | save: only when told the change breaks a required conversation and the owner still wants it, their reason | |
| expected_version | Yes | The version from get_chat_situations |