Skip to content
← All AI workflows

Devin: draft a postmortem from resolved PagerDuty incidents

An official Devin recipe passes resolved PagerDuty incident data through an authenticated bridge to a scoped agent session. The agent drafts a postmortem, a report on the incident, from permitted evidence. The owner checks chronology, impact and proposed actions before sharing.

From the source

Public documentation page from Cognition
Cognition · Captured 2026-10-14Read the original

How it works

  • The sample compares an X-Webhook-Secret header with WEBHOOK_SECRET using timingSafeEqual. This is a shared-secret header check, not cryptographic verification of the payload signature.
  • The bridge handles incident.resolved and creates a session through the documented organization-sessions API. The code was read, not deployed or tested.
  • The guide requires a service-user token with UseDevinSessions permission. Optional runtime-evidence connectors require separate authorized access.
  • Draft chronology, impact, causal hypotheses and proposed actions require incident-owner verification. Draft creation is not incident resolution or proof of root cause. No postmortem was published.

Workflow guide

  1. Use the documented authenticated bridge to capture relevant incident.resolved events.

  2. Create a scoped Devin session with only permitted incident context and evidence.

  3. Retrieve approved read-only logs, errors, deployment history and timestamps when connectors are available.

  4. Draft a cited chronology, customer impact, contributing factors and proposed actions. Separate observations from hypotheses.

  5. Ask the incident owner to verify timestamps, impact, causal claims and action ownership before sharing or recording the report.

  6. Compare drafting and correction time with similar manually documented incidents. Count unsupported statements and required factual edits.

Sources and downloads

Try Devin with Thomas’s referral link ↗ · We may receive a referral benefit.

Discuss this workflow →

Book a call

A free 30 minute call. Tell us where you are with AI, what your IT allows, and what management needs to see. We'll tell you honestly what we would do first.