Runbook Template: Write and Update Runbooks with AI
A copy-ready runbook template for on-call teams, a worked example, and AI prompts to draft runbooks from incidents and keep them current.
For Engineering

What is a runbook template?
A runbook template is a fill-in-the-blank document that tells whoever is on call exactly what to do when a specific alert fires or a specific task needs doing. A good one covers what the alert means, how bad it is, what to check first, the steps to fix it, how to confirm the fix worked, and who to call if it didn't. The template below has all of that. Copy it, fill it in once per alert, and use AI to draft the first version and keep it current. Some teams go further and let an AI on-call agent work from their runbooks when alerts fire.
TL;DR
- A runbook should be written for the person who is tired, stressed, and new to this service, at 3 a.m., not for the person who built it.
- Every runbook needs the same ten sections, and the most skipped ones (verify recovery, escalation, rollback) are the ones that matter most when things go wrong.
- AI is good at turning messy incident notes, chat threads and postmortems into a clean first draft. It is bad at knowing whether your commands are correct.
- Runbooks go stale because nobody owns them. Fix that with a named owner, a "last reviewed" date, and a review triggered by every incident that used the runbook.
- Never paste secrets, tokens or customer data into an AI tool, and never run an AI-written command you haven't read and tested in a safe environment.
- The best test of a runbook is handing it to someone who didn't write it and watching where they get stuck.
What goes in a runbook?
Ten sections cover almost every operational runbook, whether it's for a failing service, a stuck batch job, or a routine task like rotating a certificate.
| Section | What it answers |
|---|---|
| 1. Header and metadata | Which alert or task is this, who owns it, when was it last checked? |
| 2. Summary | What does this alert mean, in one or two sentences? |
| 3. Impact and severity | Who or what is affected, and how urgent is it? |
| 4. Before you start | What access and tools do I need? |
| 5. Triage | What do I check in the first five minutes? |
| 6. Diagnosis | How do I find the cause? |
| 7. Fix | What do I do, step by step? |
| 8. Verify | How do I know it's actually fixed? |
| 9. Rollback and escalation | What if it gets worse, and who do I call? |
| 10. After the incident | What do I record and follow up on? |
The order matters. Someone on call reads top to bottom under pressure, so the early sections should let them decide quickly whether this is serious and whether they are in the right place.
What is the copy-and-paste runbook template?
Use one runbook per alert or per task. Don't build one giant document for a whole system. Short, specific runbooks get used. Long, general ones get skipped.
RUNBOOK: [Alert name or task name]
1. METADATA
- Service / system:
- Owner (person or team, with contact):
- Backup owner:
- Alert source and exact alert name:
- Severity (typical):
- Last reviewed: [date] by [name]
- Last tested or used: [date]
- Related runbooks / dashboards / docs:
2. SUMMARY
[One or two plain sentences. What does this alert mean? What is the system doing wrong?]
3. IMPACT
- Who is affected (customers, internal users, other systems):
- What they experience:
- Severity guide:
- Treat as urgent if:
- Can wait until business hours if:
4. BEFORE YOU START
- Access you need (systems, roles, VPN):
- Tools you need (CLI, dashboards, consoles):
- Who to tell that you've started (channel, ticket):
5. TRIAGE (first 5 minutes)
1. [Check 1. Where to look, and what "normal" looks like]
2. [Check 2]
3. [Check 3]
Decision: If [condition], go to Section 6. If [condition], go straight to Section 9 and escalate.
6. DIAGNOSIS
| If you see... | It probably means... | Go to... |
|---|---|---|
| | | |
7. FIX
For each fix:
- When to use it:
- Steps (numbered, one action each):
1.
2.
- Command(s) to run (exact, copyable):
- What you should see after each step:
- Risk or side effects:
8. VERIFY RECOVERY
- Metrics or checks that should return to normal:
- How long to watch before calling it resolved:
- Who to tell that it's resolved:
9. ROLLBACK AND ESCALATION
- How to undo what you did:
- Escalate if: [time limit, symptom, or impact threshold]
- Escalate to: [name, role, how to reach them]
- Vendor or external contacts:
10. AFTER THE INCIDENT
- What to record (timeline, commands run, what worked):
- Follow-up ticket or postmortem needed if:
- Update this runbook if anything here was wrong, missing, or slow.
CHANGE LOG
| Date | Who | What changed |
|---|---|---|
What does a filled-in runbook look like?
Here is a shortened worked example. The service, names and thresholds are made up for illustration. Yours will differ.
RUNBOOK: Checkout API 5xx rate above 5%
1. METADATA
- Service: checkout-api
- Owner: Payments Platform team (#payments-oncall)
- Backup owner: Platform Reliability
- Alert: "checkout-api-5xx-high" in the monitoring tool
- Severity (typical): High
- Last reviewed: 2025-03-04 by Dana R.
- Last used: 2025-02-11
- Related: Checkout dashboard, Payment provider status page, Runbook: Database connection pool exhausted
2. SUMMARY
More than 5% of requests to the checkout API are failing with server errors for at least five minutes. Customers may be unable to complete purchases.
3. IMPACT
- Affected: customers at the payment step
- Experience: "Something went wrong" on submit
- Urgent if: errors persist more than 10 minutes, or revenue dashboard shows orders dropping
- Can wait if: errors are limited to one internal test tenant
4. BEFORE YOU START
- Access: read access to production logs, deploy permissions for checkout-api
- Post in #payments-incidents: "Investigating checkout 5xx alert, [your name]"
5. TRIAGE
1. Open the Checkout dashboard. Is the error rate rising, flat, or falling?
2. Check the deploy log. Did checkout-api deploy in the last 60 minutes?
3. Check the payment provider's status page.
Decision: Recent deploy, go to Fix A. Provider incident, go to Fix C. Neither, go to Section 6.
6. DIAGNOSIS
| If you see... | It probably means... | Go to... |
|---|---|---|
| Errors began right after a deploy | Bad release | Fix A |
| "connection pool" or timeout errors in logs | Database connections exhausted | Runbook: Database connection pool |
| Errors only on calls to the payment provider | Provider outage | Fix C |
7. FIX A: ROLL BACK THE LATEST RELEASE
- Use when: errors started within 15 minutes of a deploy
- Steps:
1. Find the previous release version in the deploy tool.
2. Trigger a rollback to that version.
3. Wait for the new instances to report healthy.
- Expect: error rate begins dropping within 5 minutes
- Risk: any database migration in the bad release is NOT undone. Check with the release author.
8. VERIFY RECOVERY
- 5xx rate below 1% for 15 minutes
- Order volume on the revenue dashboard back to normal range
- Post "Resolved" in #payments-incidents with the cause if known
9. ROLLBACK AND ESCALATION
- Escalate to the Payments engineering manager if errors persist 20 minutes after a rollback
- If the provider is down, notify Customer Support lead so they can brief the support team
10. AFTER THE INCIDENT
- Add timeline to the incident ticket
- If a rollback was needed, open a follow-up for the release author
- Fix any step in this runbook that was unclear
Notice what makes it work. Every check says what "normal" looks like, every decision points to a next step, and the risk of the fix is stated up front. A new person can follow it without asking anyone.
How do I use AI to write a runbook?
AI is strongest at the part people dread: turning scattered, messy material into a structured document. Your raw material is probably a chat thread from the last incident, a postmortem, a few terminal commands someone pasted into a ticket, and some knowledge in one person's head.
Here is a prompt to paste. Fill in the brackets and paste your raw material under it.
You are helping me write an operational runbook for on-call staff, including people who are new to this system.
Use the template below exactly. Do not skip sections. Write short, numbered, one-action-per-step instructions. Where I give you a command, copy it exactly as written. Where information is missing, do not guess. Write "[NEEDS INPUT: what's missing]" instead.
Alert or task: [name]
Service: [name]
What I know about it: [a few sentences]
Raw material (chat thread, postmortem, notes, commands):
[paste here, with secrets, tokens and customer data removed]
Template:
[paste the template from above]
After the runbook, list:
1. Every place you marked NEEDS INPUT.
2. Every command or threshold that came from my material, so I can verify each one.
3. Any step that is risky or hard to undo.
The last instruction is the important one. It makes the AI show its seams instead of hiding them.
What should I check in the answer?
- Every command, flag and path. AI models can write commands that look right and aren't. Check each against your actual tooling and run it in a test environment first.
- Every threshold and time limit. "Escalate after 20 minutes" should come from your team's policy, not the model's idea of a sensible number.
- Names and contacts. If the AI filled in a team or person you didn't give it, delete it.
- Hidden assumptions. Does a step assume access the reader may not have?
- Missing "what you should see" lines. If a step has no expected result, add one.
Where should I not trust AI?
Don't let it decide severity, escalation policy, or what is safe to run in production. Those are your team's decisions. Also don't paste credentials, customer records, or anything your company's data policy forbids sending to an external tool. Use the AI tools your company has approved, and redact first.
How do I update a runbook after an incident?
Most runbooks rot because updating them is a separate chore nobody has time for. The fix is to make the update part of closing the incident, and let AI do the tedious comparison.
Paste this after any incident where someone used a runbook:
Below is our current runbook and the record of what actually happened during an incident (timeline, commands run, chat messages).
Compare them and tell me:
1. Steps in the runbook that were wrong, outdated, or skipped.
2. Steps people took that are NOT in the runbook but worked.
3. Anything that caused confusion or delay, based on the chat.
4. Missing information (access, contacts, "what you should see").
Then produce an updated version of the runbook with changes marked clearly (for example, "[CHANGED]" or "[NEW]") so a human can review each one. Add a line to the change log. Do not remove any step unless the incident record shows it is wrong, and tell me when you do.
Current runbook:
[paste]
Incident record:
[paste, redacted]
Review the marked changes yourself. The point is that you read a short list of differences rather than rewriting the document.
How do I check whether my runbooks are out of date?
Run an audit prompt on a batch of runbooks, quarterly or after a big infrastructure change such as a migration to a new cloud account, a monitoring tool swap, or a team reorganization.
Review this runbook for staleness and gaps. Flag:
- References to tools, dashboards, teams, channels or people that may no longer exist (list them so I can verify)
- Steps with no expected result
- Commands with no explanation of risk
- Missing sections from this list: metadata, summary, impact, access, triage, diagnosis, fix, verify, rollback, escalation, after-incident
- Anything ambiguous enough that a new on-call engineer might get stuck
Do not rewrite the runbook. Return a checklist of issues, most serious first.
[paste runbook]
The model can't know whether a dashboard was renamed last month. It can only list the references for a person to check. That is still useful, because it turns a vague "review the runbooks" task into a concrete list.
What keeps runbooks from going stale?
AI helps with writing. It does not fix the real cause of stale runbooks, which is that nobody is responsible for them. Four habits do:
- Name an owner on every runbook. A team alias is fine. "Everyone" is not.
- Show the "last reviewed" date at the top. If it's old, readers know to be careful.
- Make the update part of closing an incident. If a runbook was used, the incident isn't closed until someone confirms it was right or fixed it.
- Test with someone who didn't write it. Ask a new team member to follow the runbook in a safe environment, out loud, while you stay silent. Every question they ask is a gap. Write it down.
Also consider a regular review slot. Pick a cadence that matches how fast your systems change, and review the runbooks for your noisiest alerts first, since they get used most.
What makes a runbook actually usable at 3 a.m.?
A few writing rules matter more than any template:
- One action per step. "Restart the service and check the logs" is two steps.
- Exact commands, copyable. Don't make the reader reconstruct a command from a description.
- Say what success looks like. After each important step, state what the reader should see.
- State the risk before the action. "This drops active sessions" belongs before the command, not after.
- Link, don't duplicate. Point to the dashboard or the other runbook instead of copying content that will drift.
- Use plain words. Skip team shorthand the next hire won't know, or define it once.
- Make escalation easy. Give a time limit and a name so the reader never has to decide whether it's "bad enough" to wake someone.
These rules help whether the runbook is for an engineer restarting a service or an operations analyst re-running a failed nightly report.
Can I build a runbook tracker instead of another spreadsheet?
If your runbooks live in a wiki, the hard part is knowing which ones are owned, reviewed and current. A spreadsheet of runbooks goes stale just like the runbooks do. With Remy, you can describe a small internal app in plain English: a list of runbooks with service, owner and last-reviewed date, a sign-in so only your team can edit it, and a scheduled job that emails owners when a review is due. Remy builds it as a full-stack app with a database and deploys it to a live URL. Your team owns the code, and there are no per-seat fees on the platform.
Frequently Asked Questions
What is the difference between a runbook and a playbook?
The terms overlap, and teams use them differently. A common split is that a runbook gives step-by-step instructions for a specific task or alert, while a playbook covers a broader scenario, such as a major outage or security incident, including roles, communication and decisions. If your team uses them the other way around, keep your own convention and apply it consistently.
How long should a runbook be?
As short as it can be while still letting a new person finish the job without asking anyone. For most alerts that means one to two pages. If a runbook keeps growing, it usually covers more than one problem, so split it into separate runbooks and link them.
Can AI write runbooks without human review?
No. AI can produce a clean first draft from your notes, but it can invent commands, flags and thresholds that look plausible and are wrong. A person who knows the system must read every step, and each command should be tested in a safe environment before the runbook is trusted in production.
How often should runbooks be reviewed?
Review a runbook every time it is used in an incident, and on a regular schedule that fits how quickly your systems change. Also review after major changes such as migrations, new monitoring tools, or team reorganizations. The "last reviewed" date at the top tells readers how much to trust it.
Where should runbooks be stored?
Somewhere on-call staff can reach even when other systems are down, and where the alert itself can link straight to the right runbook. Whether that's a wiki, a repository, or an internal app matters less than being searchable, owned and linked from the alert.
Useful for
How we source, write, and correct our articles. Editorial standards
Related articles

Technical Design Doc and RFC Template (With ADR Example)

RAG vs Fine-Tuning: How to Build a RAG Pipeline That Works

How to Roll Out AI Coding Assistants Across an Engineering Org
