Skip to content

Guide · Zendesk automation

Let’s talk about Advanced action flows in Zendesk

Published6 min read

In this article, I’ll explain what Zendesk advanced action flows are, how they differ from regular action flows, and when it makes sense to use them. I’ll walk you through two examples so you can see where they could help in your own Zendesk setup.

Technologies in this example:

  • Zendesk
  • Advanced action flows
  • Action flows
  • Automation
  • AI agents

First, understand what an action flow is and what it is for

An action flow is a sequence of steps that Zendesk runs when a condition is met. It is useful when the same process repeats and someone has to do several things to get it done. For example, when an incident comes in, the flow can raise the ticket’s priority, create a Jira issue and save its link in Zendesk.

The Create workflow screen of Advanced action flows in Admin Center, with the box to describe what you want to automate and templates to start from
To get started, go to Admin Center, under Apps and integrations → Actions → Advanced action flows. That is where this feature lives.

Two types of action flows in Zendesk, why?

In a traditional action flow you build the process in Action Builder with visual steps. You can add conditions, branches and actions from Zendesk or from connected systems. You can also ask Admin Copilot to prepare a visual draft for you.

In an advanced action flow you describe what you want and Zendesk generates editable JavaScript and a diagram. Useful when you need to query an internal API directly, cross several responses or control what happens in each exception. AI helps you build the flow. While it runs, you can call a model if you add a step such as agents.run().

AspectTraditional action flowAdvanced action flow
What you editSteps in the visual editor.JavaScript code and its configuration. The diagram is generated from the code.
How you integrate other systemsConnectors or API actions configured in Action Builder.Direct calls to REST APIs, with the authentication and permissions that apply.
When I would use itUpdating a ticket, opening an issue and notifying a team with defined steps.Querying several APIs, applying rules to their responses and deciding what to do if data is missing or a lookup fails.

Let’s look at a couple of A.A.F. examples

Advanced action flows can be used in cases like these:

Use caseWhat the flow can do
Employee serviceRetrieve live HR or IT information and coordinate approvals, onboarding and off-boarding across systems.
PDF and document processingRead and classify attachments, extract relevant details and save them on the ticket.
Order and booking managementValidate bookings, link tickets to order records and flag shipment delays or other exceptions.
External system integrationRetrieve or update records in connected systems and trigger actions based on what happens in the ticket.
IT asset lifecycleProvision, replace or reclaim devices when a ticket changes or an employee event is recorded.
Ticket classification and routingReview new tickets, classify them by category or severity and update the fields or tags that omnichannel routing uses.

Follow this structure when you write the prompt

  • Write it the way you would explain it to another admin. Use short sentences and ask for concrete actions.
  • Start with the trigger. Say which event starts the flow, what it must check, what it has to update and who it must notify.
  • Give it context. Say which team handles the process, which systems it uses and what information each one can be asked for.
  • Ask for one thing at a time. Start with the main path. Then add branches, approvals or integrations and test each change.
  • Give an example with data. If an order has three shipments and one is late, explain whether you want one notice per shipment or a single notice per ticket.
  • Specify the exceptions. “If the ID is missing, send the ticket to manual review” tells the generator exactly what to do.

One ticket, one order and several shipments

When a tracking ticket comes in, the flow looks up the order in the order system and queries its shipments in the logistics API. It links the order to the ticket and, if any of the shipments is late, notifies Logistics once. If the lookup fails or the ID is missing, it leaves the case for manual review.

Flow of a tracking ticket with one order and several shipmentsA new tracking ticket comes in and the flow looks up the order and its shipments. If the lookup is not valid, it sends the ticket to manual review. If it is valid, it links the order to the ticket and checks whether any shipment is late. If one is, it flags the delay and notifies Logistics. If not, it leaves the ticket updated.New tracking ticketLook up order and shipmentsIs the lookup valid?Send tomanual reviewNoYesLink the order to the ticketIs any shipment late?YesNoFlag the delay andnotify LogisticsLeave the ticket updated
Example prompt to copy
When a ticket is created with the “Order tracking” form, read the “Order ID” field. Use the order system connection to look it up and the Logistics connection to query all its shipments.

Save the order link and status on the ticket. If any shipment has the status “delayed”, add the tag “delayed_shipment” and notify Logistics only once per ticket. If none is delayed, leave the ticket updated without sending a notice.

If the ID is missing, the order does not exist or any lookup fails, assign the ticket to the “Manual review” group and leave an internal note with the reason. Add these branches to the diagram so I can review them before publishing.

A PDF that already arrives by email

If Billing receives an attached invoice, the flow can extract the number, the currency and the total with an AI step, and save that data on the ticket. If a required field is missing, it sends the ticket to the team for review.

Things to keep in mind

The trigger decides when the flow starts. The actions are annotated sections of the code that you see as steps in the diagram and in the execution history. A pause action lets the flow continue later, after a delay, an event, an approval or the completion of another flow.

To set up the trigger, describe how the process starts in the first sentence of the prompt. Zendesk chooses the type based on your description. For example, “When a ticket is created with the Order tracking form” or “Every Monday at 14:00 UTC”.

Start typeWhen it runs
Zendesk eventWhen a ticket, user, organization, asset or custom object is created, updated or deleted. Use filters so the flow only runs in the cases you care about.
ScheduleOn a recurring schedule, in UTC.
ManualWhen an admin or agent starts the flow. It is the default type if you leave out the start, and it is used to test any flow.
Incoming webhookWhen an external system calls the flow’s URL.
AI Agent or another flowWhen an AI agent or another flow invokes it as a tool.

These are the five limits I would check first if you are going to connect systems or work with many records.

LimitWhat Zendesk allows
Execution time5 minutes by default. Configurable from 1 second to 10 minutes. pause() does not count toward that time.
Pause durationUp to 30 days.
Memory128 MB per execution.
Concurrent HTTP requestsUp to 8 within a single execution.
Size of a stored valueUp to 4 KB per value in storage.

See the rest of the limits in Zendesk’s documentation

If you want to try an advanced action flow or read more, these are Zendesk’s guides.

If you have questions or need help with advanced action flows, write to me by DM on LinkedIn or send me an email at jzabalacx@gmail.com.

Jhoan Zabala

Project Manager / Product Owner / CX Consultant and Zendesk Admin.

Share on LinkedIn

Want something like this for your team?

The first meeting is on me, no charge. Tell me about your case and we’ll see what makes sense to automate.