create_custom_filter
Create a custom filter for conversations, contacts, or reports by specifying a name, target type, and query conditions.
Instructions
Create a new custom filter for conversations, contacts, or reports.
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>",
"filter_type": "<filter_type>",
"query": "<query>"
},
"name": "create_custom_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Filter name | |
| query | Yes | Filter query object with conditions (e.g., {"attribute_key":"status","filter_operator":"equal_to","values":["open"]}) | |
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. | |
| filter_type | Yes | Filter type |