create_button
Add a button beside the ticket that asks the integration's URL to do something to the customer's account. The URL receives type "action" with the button's key, and must do the work and answer {"ok": true}. Owner only, on a plan with buttons.
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": {
"integration_id": "<integration_id>",
"label": "<label>"
},
"name": "create_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The words on the button, like "Cancel subscription". Up to 40 characters. The URL receives a key made from it (cancel_subscription). | |
| extra_fields | No | Things to fill in before pressing, like a reason or an amount. Up to 10. | |
| word_to_type | No | The word a person types before the button runs. The default is "confirm". | |
| who_can_press | No | Who may press it besides the owner: any of "admin" and "agent". The default is both. | |
| integration_id | Yes | The integration the button belongs to (a uuid from list_integrations). | |
| cannot_be_undone | No | true if what it does cannot be undone: the button is shown in red with a warning. |