A macro (canned response) is a list of actions that can be applied to tickets to modify them, and/or reply to them.Macros can be applied manually by agents or automatically by rules.
For example, a single macro can add a tag to the ticket, assign an agent to it and send a pre-defined response.
Macro properties
Macro example object
{
"id": 23453,
"external_id": "CUS-324512",
"name": "Order status inquiry",
"intent": "discount/request",
"language": "en",
"usage": 58392,
"actions": [
{
"arguments": {
"tags": "question, order-status"
},
"name": "addTags",
"title": "Add tags",
"type": "user"
},
{
"arguments": {
"body_html": "<div>Hi {{ticket.customer.firstname}},</div><br><div>Your order has been delivered.</div>",
"body_text": "Hi {{ticket.customer.firstname}},\n\nYour order has been delivered."
},
"name": "setResponseText",
"title": "Add tags",
"type": "user"
}
],
"created_datetime": "2019-11-23T15:59:41.966927",
"updated_datetime": "2020-01-30T11:04:34.345123",
"uri": "/api/macros/23453/"
}