Automation Workflow Prompts

Automation Failure Monitoring & Recovery

Create an observability and incident-recovery design for business automations, including logs, alerts, retry policy, ownership, replay, and post-incident review.

FreeClaudeChatGPT
Best for

Operations, automation, and engineering teams responsible for production workflows that need reliable monitoring and safe recovery.

Suitable LLM groups
FrontierReasoning
Download Prompt.md
Prompt
You are a senior workflow automation designer. Your task is to design monitoring, alerting, incident response, and recovery for an existing or planned automation workflow.

Design the workflow so it can be implemented in Zapier, Make, n8n, a native integration, or custom code. Do not pretend that you have connected to, configured, tested, or deployed any system. Do not invent field names, API capabilities, permissions, prices, limits, credentials, business rules, or approval authority.

USER INPUT
Workflow purpose and business impact: {{workflow_purpose}}
Automation platform and connected systems: {{tools}}
Trigger and major steps: {{workflow_steps}}
Expected frequency and volume: {{volume}}
Known failure modes: {{known_failures}}
Owners and support hours: {{owners_support}}
Service-level and recovery targets: {{service_targets}}
Sensitive-data constraints: {{data_constraints}}
Existing logs, alerts, and dashboards: {{existing_monitoring}}
Manual fallback process: {{manual_fallback}}

DESIGN METHOD
1. Identify the business outcome and critical path of the workflow.
2. Define a run ID that links trigger, steps, external records, retries, and final status.
3. Specify structured log events without storing unnecessary sensitive content.
4. Define operational metrics for success rate, latency, queue depth, retries, skipped items, duplicates, and stale runs.
5. Classify errors as transient, permanent, data-quality, permission, dependency, logic, or human-review failures.
6. Define retry limits, backoff, timeout, circuit breaking, and dead-letter handling.
7. Create alert severity levels, thresholds, channels, owners, deduplication, and escalation.
8. Design a safe replay process that does not repeat completed external actions.
9. Document manual continuity and recovery procedures.
10. Create an incident template and post-incident improvement process.

REQUIRED OUTPUT
A. Critical path and failure-impact map
B. Run-status and error taxonomy
C. Structured logging specification
D. Metrics and dashboard design
E. Retry, timeout, and circuit-breaker rules
F. Alert matrix with severity, threshold, owner, and channel
G. Dead-letter and replay procedure
H. Manual fallback and recovery runbook
I. Incident report template
J. Monitoring test cases
K. Implementation checklist

CORE RELIABILITY RULES
1. Separate confirmed requirements from assumptions and unresolved questions.
2. Define one precise trigger and the conditions that should block false or duplicate runs.
3. Identify the system of record for every important field.
4. Map data explicitly between source and destination fields.
5. Validate required fields before taking downstream actions.
6. Use a stable unique identifier or idempotency key to prevent duplicate records and repeated messages.
7. Add human approval before external messages, publishing, payments, deletion, permission changes, or other difficult-to-reverse actions.
8. Define retries, timeouts, error logging, alert ownership, and a manual fallback.
9. Minimize movement and storage of personal or sensitive data.
10. Keep secrets in the automation platform's secure credential manager. Never request real API keys, passwords, access tokens, or webhook secrets.
11. Include test cases for the happy path, missing data, duplicates, invalid data, unavailable services, permission failures, and partial completion.
12. End with a clear list of items that require human confirmation before implementation.
13. Do not log raw secrets, full message bodies, payment details, private documents, or unnecessary personal data.
14. Do not replay an entire workflow when only one failed step needs recovery.

How to use

  1. Describe the workflow, business impact, run volume, systems, owners, and known failures.
  2. Define acceptable delay, recovery, and alert expectations.
  3. Review logging fields for privacy and operational usefulness.
  4. Test alerting, retry, dead-letter, replay, outage, and duplicate-prevention behavior.

Example input

An n8n workflow receives paid-order webhooks, creates an ERP order, updates the CRM, and posts a fulfillment alert. It runs about 500 times per day. Duplicate ERP orders are high impact. Owners are Operations during business hours and Engineering on call after hours. Logs must not contain payment details or full customer addresses.

Example output

Run tracking:
Generate one run ID from the verified order event ID.
Record each step as Pending, Running, Succeeded, Failed, Skipped, or Awaiting Review.

Critical control:
Before ERP creation, search by paid-order ID.
After creation, store the ERP order ID.
Retries must reuse the same paid-order ID and never create a second ERP order.

Alerts:
Critical: possible duplicate ERP order or confirmed data corruption → page Engineering and notify Operations.
High: ERP creation failed after safe retries → notify Operations and Engineering.
Medium: CRM update failed after ERP success → create recovery item and notify Operations.
Low: temporary notification failure → retry and include in daily report.

Privacy:
Log record IDs, timestamps, step status, and error codes.
Do not log payment credentials or complete addresses.

Customization tips

  • Use correlation IDs across the automation platform and connected systems.
  • Separate customer-impact alerts from internal technical warnings.
  • Create daily summaries for low-severity failures instead of alerting on every event.
  • Run periodic recovery drills using safe sample data.

Tags

#automation monitoring#incident response#workflow reliability#error handling#observability

FAQ

What should an automation log?
Log run IDs, record IDs, timestamps, step status, error types, retries, and outcomes while minimizing sensitive content.
When should a failed step retry?
Retry only transient and replay-safe failures according to a defined limit and backoff policy.
What is a dead-letter queue?
It stores failed items that need investigation or controlled replay after automatic processing stops.
How can replay avoid duplicate actions?
Track completed steps, use idempotency keys, and replay only the failed or incomplete operation.
Should every failure trigger an alert?
No. Use severity, thresholds, grouping, and ownership to avoid alert fatigue while still surfacing business impact.
Free

Cross-App Data Sync & Deduplication

Design reliable one-way or two-way synchronization between business apps with field ownership, conflict rules, deduplication, replay safety, and reconciliation.

ClaudeChatGPT
#data sync#deduplication#integration workflow
Free

End-to-End Process Automation Blueprint

Design a complete automation blueprint for a manual business process, including trigger logic, tool selection, exception handling, and rollback plans.

ClaudeChatGPT
#automation#workflow design#process optimization
Free

Approval Request Routing Automation

Design multi-step approval routing with thresholds, evidence, reminders, delegation, expiry, escalation, and a complete audit trail.

ClaudeChatGPT
#approval workflow#routing automation#business process

Related Skills

Testing & Quality ChecksFree

Observability and Incident Diagnostics Designer

Design logs, metrics, traces, alerts, dashboards, SLOs, and runbooks that support fast diagnosis and reliable incident response.

ClaudeChatGPTCursor
#observability#incident response#metrics
Automation FlowsFree

Automation Flow Reliability Designer

Design reliable business automations with triggers, conditions, safeguards, retries, ownership, monitoring, and recovery procedures.

ClaudeChatGPTCursor
#workflow automation#process automation#reliability
Automation FlowsFree

Cross App Automation Workflow Designer

Design reliable cross-app automations with triggers, actions, conditions, data mapping, retries, approvals, and monitoring.

ClaudeChatGPT
#workflow automation#Zapier#Make

Related Articles

Article · Automation Tools

How do I monitor and log AI automations?

AI automation monitoring should track inputs, outputs, model calls, tool errors, approvals, skipped items, and failures without storing unnecessary sensitive data.

Jul 9, 20268 min read
Read How do I monitor and log AI automations?