Prompt
How do I route failed automation steps to a human?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
To route failed automation steps to a human, set up a failure-handling path in your workflow that does three things:
-
Detect the failure
- Catch exceptions, non-200 responses, timeouts, validation errors, etc.
- Treat “business failures” separately from “system failures” if needed.
-
Escalate with context
- Send the failed item to a human queue, inbox, Slack channel, ticket, or approval step.
- Include:
- what step failed
- error message
- input data
- timestamps
- correlation/run ID
- retry count
- suggested next action
-
Pause or branch the workflow
- Stop further automated steps for that item until a human resolves it.
- After review, allow one of:
- retry
- skip
- edit and continue
- mark as permanently failed
Common patterns
-
Try/catch + escalation
- Wrap each step in error handling.
- On failure, create a human task and mark the job “waiting for review.”
-
Dead-letter queue / exception queue
- Put failed messages/jobs into a separate queue for manual processing.
-
Human-in-the-loop approval step
- Route only edge cases or uncertain outcomes to a person.
-
Fallback workflow
- If the primary automation fails, trigger an alternate manual process.
Best practices
- Use idempotent steps so retries don’t duplicate work.
- Set retry limits before escalating.
- Log enough context to reproduce the issue.
- Define SLA/ownership for who handles the human queue.
- Add notifications for urgent failures.
Example flow
Trigger → Automate step 1 → Automate step 2 → if error → create ticket + notify human → wait for resolution → resume or close
If you tell me what platform you’re using (e.g., Zapier, Make, n8n, Power Automate, AWS Step Functions, Airflow, custom code), I can show the exact way to implement it.