Gorgias Apply Macro

A macro in Gorgias is a reusable set of actions that can be applied to one or more tickets at once — for example, adding tags, changing status, replying with a predefined message, or assigning a ticket to a team.
This action allows you to apply a Gorgias macro asynchronously to one or more existing tickets using the Gorgias Jobs API.

When triggered, the action will create a background job in Gorgias that runs the specified macro on the selected tickets.
The job will execute independently of the flow and process all the listed tickets.
If the job is successfully created, the action will return the job object with its ID and metadata. You can later use this ID to track the job’s progress or verify completion via the Gorgias API.

If a rate limit (HTTP 429) is hit, the action will automatically retry after a short delay before failing gracefully.


Action Inputs

NameTypeDescription
DomainStringYour Gorgias sub-domain (without https://). Example: mycompany for mycompany.gorgias.com.
UserStringEmail of the Gorgias agent whose credentials are used to authenticate the API request.
KeyStringThe Gorgias API key associated with the user. Learn how to find it.
Macro IDStringThe unique ID of the macro you want to apply. You can find it in your Gorgias dashboard under Macros → Edit Macro → URL.
Ticket IDsArray of StringsA list of ticket IDs to which the macro should be applied.

Action Outputs

NameTypeDescription
SuccessBooleanWhether the macro job was successfully created in Gorgias.
JobObjectThe full Gorgias Job object returned by the API, including job ID, type, and ticket references.