Automation Error Handling Design

A retry, dead-letter, alerting, and manual recovery design for an automation.

Advanced · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Design error handling for this automation.

What the automation does and where it can fail:
{{AUTOMATION}}

What happens today when it fails (if anything):
{{CURRENT_HANDLING}}

For each failure point, say whether it should retry automatically (and with what backoff), go to a dead letter queue for manual review, or alert immediately. Keep the number of moving parts to the minimum that actually handles these failure modes — don't add a queue or alert for a failure that can't realistically occur here.

Why this prompt works

Requiring each piece of error-handling machinery to map to a real failure mode keeps the design from over-engineering retries and queues nothing will use.

How to customize it

  • Describe actual observed failures, not hypothetical ones
  • Specify retry limits and backoff, not just 'retry on failure'

Common mistakes

  • Adding a dead letter queue with no process to actually review it
  • Retrying indefinitely on errors that will never succeed on retry

Example

Input

Automation description: Nightly job pulls orders from an API and writes them to a warehouse table

What a good answer looks like

A table of failure points each mapped to retry/DLQ/alert with the specific rule.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts