Save comment automation
save_comment_automationCreates a comment automation, or changes one when automationId is given. When a new comment matches all conditions (text, tags, sentiment, platform, language, post, author, rating, AI recommendation), the actions run in order after the wait time (hide, like, delete, block, reply with an AI suggestion or custom text, private message, tags, email or webhook notification, mark done). Validated before saving; errors are returned and nothing is saved. A new automation is saved INACTIVE with the next execution order number, as the editor does; once active it runs only for comments that no automation earlier in the order catches. A change replaces the rules (the rules as get_automation returns them, edited) and/or the name and settings; active stays active, inactive stays inactive. A change is refused when the stored automation has parts the model cannot represent, unless overwriteUnsupported is true. May first return a confirmation summary and token instead of acting.
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": {
"brand": "<brand>"
},
"name": "save_comment_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required when creating. | |
| brand | Yes | ||
| rules | No | The complete rules. Required when creating; when changing, omit to change only name or settings. | |
| automationId | No | Id of the automation to change. Omit to create one. | |
| expectedVersion | No | Changes only: the version from get_automation; a mismatch refuses the change. | |
| confirmationToken | No | ||
| applyBusinessHours | No | Delay actions outside the brand's business hours. New automations: false. | |
| triggerOncePerUser | No | Run at most once per comment author. New automations: false. | |
| overwriteUnsupported | No | Changes only: replace stored rules that have parts the model cannot represent (listed in notEditableParts). Those parts are lost. |