Zendesk automation · runs daily
Apply Zendesk macros to tickets automatically
You have macros for the answers that repeat, but each one still needs an agent to open the ticket, find the macro in a list and click it, ticket after ticket.
Cotlet does it in your own Zendesk account with list_macros, search_tickets, get_ticket and apply_macro, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can Zendesk do this on its own?
Zendesk applies a macro when an agent chooses it, one ticket or a bulk selection at a time, and on Support Professional and Enterprise it suggests macros based on similar past tickets (checked 16 Oct 2026). A suggested macro is only applied after the agent clicks and submits. Nothing picks and applies a macro by reading the ticket.
How you do it in Zendesk today
- In a ticket the agent clicks Apply macro in the bottom toolbar, or types a slash (/) in the comment to open the macro list.
- The list shows the most-used macros of the past week on top, can be filtered by typing the start of a name, and opens a preview of what the macro will change.
- The macro inserts its comment and updates ticket fields; the agent can edit the comment text and then submits the ticket.
- To apply one macro to many tickets, the agent selects them in a view and picks the macro from the Apply Macro menu.
- Matching a macro to a ticket is still a human read each time, and macros that look alike are easy to mix up.
How to apply Zendesk macros to tickets automatically
Look at open Zendesk tickets without a reply. Where a macro clearly fits, such as Downgrade and inform for feature requests, apply it. Show me the ticket and the macro for anything uncertain. - 01
Learn your macros
list_macros returns titles and descriptions once per run. The agent matches your rule (for example "feature requests get Downgrade and inform") to a macro that exists and is active.
- 02
Find the candidates
search_tickets lists open tickets with no public reply yet, so a ticket a colleague already answered is not touched.
- 03
Read before applying
get_ticket gives the description. A macro is applied only if the ticket clearly fits its description. Anything between two macros is listed for you with both names.
- 04
Apply and report
apply_macro applies the macro and saves the ticket, then returns what it changed. It asks for your OK first, because a macro that adds a public comment emails the requester.
- 05
Retry once on a stale ticket
If Zendesk refuses a macro because the ticket changed in the meantime, the agent reads the ticket again and retries once, then reports it.
What you get back
Open tickets with no reply: 12
Macro applied 7:
- 4 x Downgrade and inform (feature requests)
- 3 x Requester not responding
No clear macro, left for you 5:
- #48190 mentions both billing and a bug
- #48201 is a refund request Other ways to ask
- Every morning, apply Close and redirect to topics to tickets whose subject starts with "Re: Your newsletter" and show me the list.
- Suggest a macro for each of today's new tickets as a table and apply nothing.
- Apply the Take it! macro to unassigned tickets tagged vip for me.
What Zendesk allows, and what to know first
- A Zendesk macro that updates a ticket field only works if that field appears on the ticket form.
- If the account behind the job lacks permission for a change a macro makes, that action does not happen, so the user needs the right role.
- Zendesk macros cannot be set up for specific channels; the actions run on whichever ticket they are applied to.
- A macro with placeholders applied to a problem or incident ticket can fill in the wrong values, since placeholders may need escaping there.
- Applied macros show in the ticket's events log, and one macro can undo what another did, so two macros on one ticket need a deliberate order.
apply_macro asks for your OK by default. To run it daily without you, switch confirmation off for that tool in your dashboard.
Sources: Zendesk Help: Using macros to update tickets · Zendesk Help: Applying suggested macros to tickets · Zendesk Help: Managing tickets in bulk
Call apply_macro from a script
curl -X POST https://cotlet.dev/api/v1/zendesk/tickets/48177/macros/360011204873/apply \
-H "Authorization: Bearer $COTLET_API_KEY" {
"ticket_id": 48177,
"macro": {
"macro_id": 360011204873,
"title": "Downgrade and inform"
},
"changes": {
"priority": "low"
},
"comment": {
"public": true,
"body": "Thanks for the idea. We have lowered the priority of your request to low, so it may take longer to get to."
},
"updated_at": "2026-10-16T09:03:00Z"
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is zendesk_write → apply_macro. Example data.
Schedule it in n8n, Make, Zapier or cronZendesk tools this automation uses
| Tool | Parameters |
|---|---|
| list_macros | query, limit |
| search_tickets | query, sort_by, sort_order, limit, cursor |
| get_ticket | ticket_id |
| apply_macro | ticket_id, macro_id |
Frequently asked questions
Is it safe to connect Zendesk to Cotlet?
Yes. You sign in to Zendesk yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get Zendesk once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.
Give your agent access to Zendesk.
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with Zendesk.