Switch the bot on or off in one dialog
dosai_toggle_bot_in_conversationFLIPS the bot in one dialog: on becomes off, off becomes on. Read dosai_get_conversation first (field ai_on) so you flip in the right direction; the answer returns the new ai_on. Switching off is how an owner takes a client over personally. For staff who must NEVER get bot replies (teachers, managers), use dosai_add_never_bot_numbers instead: it also covers numbers that have not written yet. Switching the bot ON in a dialog whose number is on that list takes the number off the list (answer: removed_from_never_bot_list). Requires editor role.
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": {
"project_id": "<project_id>",
"conversation_id": "<conversation_id>"
},
"name": "dosai_toggle_bot_in_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | From dosai_list_projects. | |
| conversation_id | Yes | From dosai_list_conversations. |