create_automation_rule
Create a Chatwoot automation rule with an event trigger, conditions, and actions to automate conversation workflows.
Instructions
Create a new automation rule with event trigger, conditions, and actions.
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": {
"name": "<name>",
"event_name": "<event_name>",
"conditions": "<conditions>",
"actions": "<actions>"
},
"name": "create_automation_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name | |
| actions | Yes | Array of action objects (e.g., [{"action_name":"assign_agent","action_params":[1]}]) | |
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. | |
| conditions | Yes | Array of condition objects (e.g., [{"attribute_key":"status","filter_operator":"equal_to","values":["open"]}]) | |
| event_name | Yes | Event that triggers the rule | |
| description | No | Rule description |