DEVOPS

Auto-Draft Postmortem Stub When an Incident Resolves

When a PagerDuty incident resolves, pulls its timeline plus correlated Datadog metrics and drafts a pre-filled postmortem page in Confluence so the responder reviews instead…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPagerDuty incident resolved webhookPagerDutyPagerDuty
  • LogicSkip if below postmortem severity threshold
  • ActionFetch incident timeline and respondersPagerDutyPagerDuty
  • ActionPull Datadog metrics for the windowDatadogDatadog
  • ActionDraft postmortem narrative with LLMOpenAI
  • OutputCreate populated postmortem in ConfluenceConfluenceConfluence

What it does

The moment a PagerDuty incident is marked resolved, this workflow assembles a postmortem stub: incident timeline, who acknowledged and resolved it, time-to-resolution, and the relevant Datadog metric snapshots around the spike. It writes all of that into a templated Confluence page so the team's writeup starts at 70% done.

When to use it

Use it when postmortems get skipped or written days late because nobody wants to reconstruct the timeline. Triggering at resolution captures the context while it is fresh and lowers the activation energy for a proper review.

How it works

  1. 1A PagerDuty webhook fires when an incident transitions to resolved.
  2. 2A logic step checks the incident's urgency or priority and skips low-severity noise below the postmortem threshold.
  3. 3Fetch the full incident timeline and responder actions from PagerDuty.
  4. 4Pull Datadog metrics for the affected service across the incident window.
  5. 5An LLM composes a draft narrative, contributing-factors list, and action-item placeholders.
  6. 6Create the populated postmortem page in Confluence and link it back on the incident.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect PagerDutyIncidents, on-call, escalations.
  2. 2
    Connect DatadogMetrics, traces, log search.
  3. 3
    Connect OpenAIModels, embeddings, files.
  4. 4
    Connect ConfluenceSpaces, pages, blueprints.
  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.