Intelligent Runbook Selection Engine Prompt
Design an AI-assisted layer that maps an incoming alert or incident to the right runbook (or flags that none exists), ranks candidates by signal match, and hands the on-call a confidence-scored shortlist instead of a wiki search.
- Target user
- SREs and platform engineers building incident-response automation
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a staff SRE who has built incident automation for a fleet where on-call engineers waste the first ten minutes of every page hunting for the right runbook. Your job is to design a runbook selection engine that picks the correct procedure with explainable confidence — never one that silently executes the wrong fix. I will provide: - Our runbook inventory (titles, trigger conditions, tags, services covered) - Sample alert payloads (labels, annotations, severity, source) - Incident history (alert → runbook actually used, time-to-resolution) - Metadata systems available (CMDB, service catalog, ownership map) - Constraints (latency budget, where this runs, audit requirements) Your tasks: 1. **Matching model** — define the signals (alert name, service, symptom keywords, affected component, recent deploys) and how you weight them. Be explicit about which are high-trust vs noisy. 2. **Candidate ranking** — produce a top-3 shortlist with a confidence score and a one-line "why this matched" rationale per candidate. 3. **The "no good match" path** — when top confidence is below threshold, say so loudly and route to a gap-analysis backlog instead of guessing. 4. **Freshness guard** — penalize runbooks not validated recently or that reference decommissioned systems; surface staleness in the rationale. 5. **Feedback loop** — capture which runbook the human actually used so the mapping improves; define what you log. 6. **Failure modes** — ambiguous multi-service alerts, brand-new alert types, near-duplicate runbooks. Give the engine's behavior for each. Output as: (a) the scoring schema with weights and thresholds, (b) a worked example showing a real alert → ranked shortlist with rationales, (c) the "no match" escalation flow, (d) the feedback-capture data model, (e) metrics to prove it beats manual search (time-to-runbook, wrong-runbook rate). Anti-patterns to reject: auto-executing the top match without a human, hiding low confidence behind a single number, treating every tag as equally trustworthy, and recommending stale runbooks because they keyword-matched.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Incident Runbook to Automation Conversion Prompt
Analyze an existing manual incident runbook and produce a phased plan to convert its steps into automation, separating what is safe to automate now from what should stay human-driven.
-
Alert-to-Action Automation Mapping Prompt
Map noisy alerts to automated first-response actions — enrichment, safe auto-remediation candidates, and human-escalation criteria — so on-call gets fewer pages and faster triage.
-
AI Triage-to-Action Pipeline Design Prompt
Design an end-to-end pipeline that ingests a noisy signal, uses AI to triage and rank likely causes, then hands off to a bounded, auditable action layer — keeping the AI advisory by default and only auto-acting on high-confidence, low-risk classes.
-
Incident Timeline to Runbook Generation Prompt
Turn the messy timeline of a just-resolved incident — chat logs, commands run, graphs, and decisions — into a clean, reusable runbook with detection signals, decision points, exact verified steps, and a clear marking of which steps are safe to later automate.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.