Zendesk · Arazzo Workflow

Zendesk Find Macro and Apply to Ticket

Version 1.0.0

Search macros by text, preview the match against a ticket, then commit the changes.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ChatCRMHelp CenterSellSupportT1TalkTicketingTicketsArazzoWorkflows

Provider

zendesk

Workflows

find-macro-and-apply
Locate a macro by search and apply its changes to a ticket.
Searches macros by text, previews the first match against a ticket, and persists the resulting status and comment.
3 steps inputs: macroQuery, ticketId outputs: macroId, ticketId
1
searchMacro
Search macros for the supplied query text.
2
previewMacro
{$sourceDescriptions.macrosApi.url}#/paths/~1api~1v2~1tickets~1{ticket_id}~1macros~1{macro_id}~1apply/get
Preview the changes the matched macro would make to the ticket without persisting them. ShowTicketAfterChanges is non-unique across the sourced specs, so it is referenced by operationPath against the macros description.
3
commitChanges
Persist the macro's proposed status and comment to the ticket.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Zendesk Find Macro and Apply to Ticket
  summary: Search macros by text, preview the match against a ticket, then commit the changes.
  description: >-
    A find-then-act automation pattern for Zendesk Support. The workflow searches
    macros by query text, branches on whether a match was found, previews the
    matched macro against a ticket, and then commits the previewed status and
    comment back to the ticket. The commit body uses the documented
    {ticket:{...}} envelope and is spelled out inline.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-430.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-430.10
      capability_name: Customer Inquiry Management
      spec: zendesk-tickets-api-openapi.yml
      confidence: 0.92
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: macrosApi
  url: ../openapi/zendesk-macros-api-openapi.yml
  type: openapi
- name: ticketsApi
  url: ../openapi/zendesk-tickets-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-macro-and-apply
  summary: Locate a macro by search and apply its changes to a ticket.
  description: >-
    Searches macros by text, previews the first match against a ticket, and
    persists the resulting status and comment.
  inputs:
    type: object
    required:
    - macroQuery
    - ticketId
    properties:
      macroQuery:
        type: string
        description: The text query used to find the macro.
      ticketId:
        type: integer
        description: The id of the ticket to apply the matched macro to.
  steps:
  - stepId: searchMacro
    description: Search macros for the supplied query text.
    operationId: SearchMacro
    parameters:
    - name: query
      in: query
      value: $inputs.macroQuery
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      macroId: $response.body#/macros/0/id
    onSuccess:
    - name: macroFound
      type: goto
      stepId: previewMacro
      criteria:
      - context: $response.body
        condition: $.macros.length > 0
        type: jsonpath
  - stepId: previewMacro
    description: >-
      Preview the changes the matched macro would make to the ticket without
      persisting them. ShowTicketAfterChanges is non-unique across the sourced
      specs, so it is referenced by operationPath against the macros description.
    operationPath: '{$sourceDescriptions.macrosApi.url}#/paths/~1api~1v2~1tickets~1{ticket_id}~1macros~1{macro_id}~1apply/get'
    parameters:
    - name: ticket_id
      in: path
      value: $inputs.ticketId
    - name: macro_id
      in: path
      value: $steps.searchMacro.outputs.macroId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      proposedStatus: $response.body#/result/ticket/status
      proposedComment: $response.body#/result/ticket/comment/body
  - stepId: commitChanges
    description: Persist the macro's proposed status and comment to the ticket.
    operationId: UpdateTicket
    parameters:
    - name: ticket_id
      in: path
      value: $inputs.ticketId
    requestBody:
      contentType: application/json
      payload:
        ticket:
          status: $steps.previewMacro.outputs.proposedStatus
          comment:
            body: $steps.previewMacro.outputs.proposedComment
            public: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ticketId: $response.body#/ticket/id
      ticketStatus: $response.body#/ticket/status
  outputs:
    macroId: $steps.searchMacro.outputs.macroId
    ticketId: $steps.commitChanges.outputs.ticketId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/zendesk-find-macro-and-apply-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.