Automation Guide

Next Gen Zaps for Complex Workflows: Branching, Logic, and Dynamic Execution

Branch and rejoin, nest loops, keep going on errors, and pause and resume, all in one workflow.

Next Gen ZapsWorkflow LogicZapier

By Troy Tessalone · · 8 minutes

Next Gen Zaps

A practical field guide from Automation Ace.

Short answer: Next Gen Zaps suit complex workflows because they are written as code: branches can split and rejoin, loops can nest and process full lists, errors can be handled per item so one failure does not stop the run, and the workflow can pause for a person or a date and resume with its context. You describe that logic in plain language; the agent writes it; you review and test it.

Short answer

  • Branch and rejoin instead of duplicating Path endings.
  • Nested loops and full-list processing in one workflow.
  • Per-item error handling for resilient runs.
  • Run-time decisions and pause-and-resume for long processes.

Why complex workflows strain classic Zaps

Classic Zaps are excellent for straight lines. Complex processes push them into workarounds: duplicated steps across Paths, Code steps for nested data, the 500-item Looping cap, chains of Zaps linked by webhooks, and delays that split one process across several Zaps. Each workaround works, but together they make systems harder to read and maintain; see multi-step Zap design and chaining Zaps with webhooks.

Six patterns for complex logic

PatternClassic Zap workaroundIn a Next Gen Zap
Route, then shared endingDuplicate the ending steps in every PathBranch, then rejoin for one shared ending
Nested data (orders → line items)Code step or a second ZapNested loops in one workflow
Large listsSplit files, self-looping Zaps, webhook relaysProcess the full list
Partial failuresError handling per step, often stopping the runCatch errors per item, log, and continue
Wait for a person or a dateDelay steps, Human in the Loop, or chained ZapsPause and resume with context
Decide steps at run timeMany Paths and filtersConditional logic in code driven by the data

Branching and rejoining

Route items by type, priority, or customer status, then bring every branch back together for shared steps such as logging, notifications, and summaries. That removes duplicated endings and keeps branches consistent when you change the shared steps.

Loops, nested loops, and full lists

Real data is nested: customers with orders, orders with line items, projects with tasks. Next Gen Zaps can loop inside loops and process complete lists rather than stopping at a cap. Design for volume anyway: think about rate limits and how long a run should take; see rate limit errors and processing large lists for the same principles in another tool.

Per-item error handling

In a 2,000-record sync you want 1,999 successes and one logged failure, not a halted run. Tell the agent exactly what to do when an item fails: log it where, notify whom, and whether to retry. Then make the error log part of someone's routine; see reprocessing failed records without duplicates.

Dynamic execution and pause-and-resume

  • Run-time decisions: the path depends on the data, such as expanding bundles or skipping steps for certain customers.
  • Pause for a person: wait for a reply or approval, then continue with full context.
  • Pause for time: follow up after days, without splitting the process into separate Zaps.

For when long waits belong in a dedicated tool instead, see long-running automations and durable workflows explained.

An example spec

Every hour, get new orders from the store.
For each order:
  - If the customer is new: create them in the CRM.   (branch A)
  - If existing: update their lifetime value.          (branch B)
  Then (both branches rejoin):
  - For each line item:                                (nested loop)
      - If SKU is a bundle, expand into components.
      - Reserve inventory for each component.
      - If reservation fails, log to "Inventory Errors"
        and continue with the next item.               (per-item errors)
  - If any item is backordered:
      - Email the customer and pause up to 3 days for a reply. (pause/resume)
      - If they reply "cancel", cancel those items; otherwise ship partial.
At the end, post a summary: orders processed, errors, backorders.

Review and testing for complex logic

  • Ask the agent to explain the logic back in plain language and compare it with your spec.
  • Check the read-only diagram for every branch and loop you expected.
  • Test each branch, an empty list, a very large list, and a forced failure.
  • Verify outputs in the destination apps, not just run status; see why a run can succeed while nothing happens.
  • Keep the spec with each version.

Limits to design around

  • At the time of writing, Sub-Zaps were not supported and one Next Gen Zap could not call another, so design each workflow to be self-contained or hand off through apps or tables.
  • The workflow code has a documented size limit; very large systems may need splitting.
  • Early-access guidance advised keeping your most sensitive workflows out for now.

For the basics, start with Next Gen Zaps explained and 7 things Next Gen Zaps can do.

Frequently asked questions

Can Next Gen Zaps handle branching logic?

Yes. Next Gen Zaps can split into branches and rejoin them for shared steps such as logging and notifications, unlike classic Paths, which run each branch to the end.

Do Next Gen Zaps support nested loops?

Yes. They can loop inside loops, such as orders and their line items, and process entire lists rather than stopping at the classic 500-item Looping cap.

How do Next Gen Zaps handle errors?

Errors can be handled per item so one failure is logged and the rest of the run continues. Specify where to log failures, who to notify, and whether to retry.

What is dynamic execution in Next Gen Zaps?

Because the workflow is code, the steps taken can depend on the data at run time, and the workflow can pause for a person’s reply or a scheduled follow-up and resume with its context.

What limits should I design around?

At the time of writing, Sub-Zaps were not supported, one Next Gen Zap could not call another, the workflow code had a size limit, and Zapier advised keeping the most sensitive workflows out during early access.

Next Gen ZapsWorkflow LogicZapier

Disclaimer: Next Gen Zaps were in early access at the time of writing, by request on paid plans; capabilities, limits, and pricing after early access may change, so confirm current details in Zapier's help center. This article may include links to apps, products, or services; some links may be affiliate links, which means Automation Ace may earn a commission at no extra cost to you.

Build Better Systems

Ready to automate with confidence?

Share your tools, process, and goals. Automation Ace can design the Zapier, AI, and automation setup that fits your business.

Start a Project →