Create Macro
gorgias_create_macroCreate a reusable macro that applies a set of actions to tickets, such as modifying ticket fields or sending canned replies, to standardize support workflows.
Instructions
POST /api/macros — Create a new macro (canned response). A macro is a list of actions that can be applied to tickets to modify them and/or reply to them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the macro. Choose a name that can be easily searched. | |
| intent | No | The intended use case of the macro. | |
| actions | No | A list of actions to be applied on tickets. Each action object should have 'name', 'title', 'arguments', and optionally 'type' and 'description'. | |
| language | No | The language of the macro in ISO 639-1 format (e.g. 'en', 'fr'). | |
| external_id | No | External ID of the macro in a foreign system. Not used by Gorgias; set to any custom value. |