AI AGENTS

Post-Incident Runbook Builder from PagerDuty Resolutions

When a PagerDuty incident resolves, the agent correlates it with its Sentry issue, drafts a structured post-incident runbook section, opens a GitHub PR.

CategoryAI Agents
Enginepaperclip
Difficultyadvanced
Triggerevent
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPagerDuty incident resolvedPagerDutyPagerDuty
  • ActionFetch incident timeline and linked Sentry issueSentrySentry
  • ActionAgent synthesizes structured runbook section
  • ActionCreate or update runbook in GitHub repoGitHubGitHub
  • ActionOpen doc PRGitHubGitHub
  • OutputPost summary to incident Slack channelSlack

What it does

This closes the doc gap at the incident level rather than the error level. When PagerDuty marks an incident resolved, the agent pulls the linked Sentry issue, reconstructs the timeline and root cause, and drafts a structured runbook entry — detection signal, triage steps, fix, and prevention. It opens a GitHub PR and drops a summary into the incident's Slack channel.

When to use it

Ideal for teams that run formal incident response through PagerDuty and want every resolved incident to leave behind a reusable runbook, not just a closed ticket.

How it works

  1. 1PagerDuty triggers when an incident is resolved.
  2. 2The agent fetches the incident timeline and follows the link to the originating Sentry issue for stack and breadcrumb context.
  3. 3It synthesizes detection, triage, fix, and prevention into a structured runbook section.
  4. 4It checks GitHub for an existing runbook for this service and either creates or updates it.
  5. 5It opens the doc PR and posts a concise summary into the incident's Slack channel for responders to confirm accuracy.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PagerDutyIncidents, on-call, escalations.
  2. 2
    Connect SentryErrors, performance, releases.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.