Disaster Recovery Prompt Playbook
“Break glass in emergency” — A library of battle-tested prompts and automated workflows for when things go sideways.
Quick Start Decision Tree
Severity Levels
| Level | Response Time | Escalation | Example |
|---|
| P0 - Critical | Immediate | All hands | Complete service outage, data breach |
| P1 - High | < 15 min | On-call + Lead | Major feature down, security incident |
| P2 - Medium | < 1 hour | On-call | Degraded performance, partial outage |
| P3 - Low | < 4 hours | Next business day | Minor issues, non-critical bugs |
Playbook Architecture
Each scenario contains a 6-phase prompt chain:
┌─────────────────────────────────────────────────────────────────────┐
│ INCIDENT LIFECYCLE │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ DETECT │──▶│ DIAGNOSE │──▶│ TRIAGE │──▶│ EXECUTE │ │
│ │ │ │ │ │ │ │ │ │
│ │ Trigger │ │ Root │ │ Priority │ │ Fix │ │
│ │ Identify │ │ Cause │ │ Assign │ │ Recover │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ COMMS │ │ VERIFY │ │ DOCUMENT │ │ PREVENT │ │
│ │ │ │ │ │ │ │ │ │
│ │ Notify │ │ Confirm │ │ Post- │ │ Harden │ │
│ │ Update │ │ Monitor │ │ mortem │ │ Automate │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘
n8n Integration
Every scenario includes automation hooks:
Webhook Trigger
Standard Inputs
Standard Outputs
{
"webhook_url": "https://n8n.internal/webhook/dr-{{scenario_id}}",
"method": "POST",
"headers": {
"X-DR-Severity": "{{severity}}",
"X-DR-Service": "{{service_name}}"
}
}
interface DRWorkflowInput {
incident_id: string;
severity: "P0" | "P1" | "P2" | "P3";
affected_services: string[];
error_logs: string;
timestamp: string;
reporter: string;
initial_symptoms: string;
}
interface DRWorkflowOutput {
diagnosis: {
root_cause: string;
confidence: number;
evidence: string[];
};
actions: {
immediate: string[];
short_term: string[];
long_term: string[];
};
communications: {
internal_slack: string;
customer_status: string;
executive_summary: string;
};
post_mortem_draft: string;
}
Available Playbooks
By Scenario
Environment Variables
# Required for n8n webhooks
DR_WEBHOOK_BASE_URL=https://n8n.internal/webhook
DR_SLACK_CHANNEL=#incidents
DR_PAGERDUTY_KEY=your-pd-key
DR_STATUS_PAGE_API=https://status.yourcompany.com/api
# Optional integrations
DR_JIRA_PROJECT=OPS
DR_DATADOG_API_KEY=your-dd-key
DR_OPSGENIE_API_KEY=your-og-key
Bookmark this page. When an incident hits, you’ll want the decision tree at your fingertips.