create_custom_attribute
Create custom attribute definitions for contacts or conversations to capture and store structured data in Chatwoot.
Instructions
Create a new custom attribute definition for contacts or conversations.
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": {
"attribute_display_name": "<attribute_display_name>",
"attribute_display_type": "<attribute_display_type>",
"attribute_key": "<attribute_key>",
"attribute_model": "<attribute_model>"
},
"name": "create_custom_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Chatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var. | |
| attribute_key | Yes | Unique key identifier (snake_case) | |
| default_value | No | Default value | |
| attribute_model | Yes | Model to apply attribute to | |
| attribute_values | No | Possible values (for list type) | |
| attribute_description | No | Description of the attribute | |
| attribute_display_name | Yes | Display name for the attribute | |
| attribute_display_type | Yes | UI display type |