Topic 5 of 6 · 4 min read
Retries, fallbacks and failure alerts in workflows
Goal: Add an error path to a workflow that retries short outages, catches malformed AI output and alerts a named person.
Plan for failure on purpose: retry the problems that pass by themselves, route the rest to an error path, and tell a named person. A workflow with no error plan fails quietly, and you find out when a customer complains.
Check yourself · 1 of 3
Which failure is most likely to be fixed by retrying a few times with a short pause?
Why it matters
Workflows depend on other services. An app may be down for a minute, a model may be busy, a field may be empty, or a model may reply in a form your next step cannot read. Each tool has settings for this. Make has error handlers such as ignore, resume, rollback, break and commit. n8n has retry on fail, continue on error and a separate error workflow. Zapier lets you replay failed runs. You still have to choose what happens.
Three kinds of failure
- Short outages. The app was unavailable, or you hit a rate limit. Waiting a little and trying again usually works. Set a few retries with a pause between them. Do not retry forever, because that can pile up runs and costs.
- Bad AI output. The model returned text where you needed JSON, or a value outside your allowed list. Retrying once can work, since the model's answers vary. Then check the shape with a fixed step. If it is still wrong, do not push it forward.
- Bad or missing data. A required field is empty, or an ID does not exist. Retrying will never fix this. Send it down a different path.
The error path
Build it as a branch the run takes when something fails:
- Hold the item. Save the original input and the error text somewhere a person can see, such as a "needs attention" sheet.
- Alert a named person. A message to one person or a small channel, with the workflow name, the step that failed, a short reason and a link to the run. An alert sent to "everyone" is read by nobody.
- Do not continue as if it worked. Never let a run end as successful when its key step failed.
Before and after
Before: The AI step fails on a customer email. The run stops. Nobody is told. The customer waits three days.
After: The AI step is retried twice, 1 minute apart. A check confirms the reply has category and needs_review. If the check still fails, the email is added to the "Needs attention" sheet, and Maya gets a chat message with a link to the failed run.
What goes wrong
- Retrying a data problem, which only repeats the same failure.
- Setting a step to "ignore errors" to get green runs, which hides lost work.
- Alerts with no detail, so the receiver cannot act.
- An alert that goes to a mailbox nobody reads.
- No limit on retries, so one outage creates a wave of repeated runs.
Examples
Error path for a reply workflow
Step 3 (AI classify): retry up to 2 times, 60 seconds apart. Step 4 (check): continue only if the reply has a category from the allowed list. On failure: append the email and error text to the Needs attention sheet, then message Maya with the run link. The customer's email is never lost.
Ignore is not a fix
A team sets a step to ignore errors because failed runs annoy them. A week later they find 40 invoices were never filed. The dashboard showed all runs as successful because the error was hidden, not handled.
Key points
- Retry short outages and rate limits with a few tries and a pause, never endlessly.
- Check AI output with a fixed step, and send it down an error path when the shape is wrong.
- Retrying cannot fix missing or invalid data, so route that to a different path.
- An error path should hold the original item, alert a named person and not report success.
- Alerts need the workflow name, the failed step, a short reason and a link to the run.
Common mistakes
- Retrying errors that are caused by bad data.
- Using an ignore-errors setting to make runs look green.
- Sending alerts to a shared mailbox nobody owns.
- Leaving retries unlimited, so an outage causes a flood of repeated runs.
Check yourself · 2 of 3
An AI step sometimes returns a category that is not in your allowed list. What is the best next step in the workflow?
Check yourself · 3 of 3
Which alert will let its recipient act fastest?
Practice items, not counted towards your mastery.
Start here
- Zapier Help Center (opens in a new tab)DocsFree
Official guides to Zaps, triggers, actions, filters, testing and task usage.
- n8n Advanced AI documentation (opens in a new tab)DocsFree
How n8n adds model, agent and structured-output nodes to a workflow.
- Make Help Center: error handling (opens in a new tab)DocsFree
Make's error handlers: ignore, resume, rollback, break and commit.
More for this topic
- n8n: handle errors gracefully (opens in a new tab)DocsFree
Error workflows and per-node settings such as retry on fail and continue on error.