Integrations
PagerDuty
✓ Certifiednpm: @loop-engine/adapter-pagerduty
What it does
PagerDuty incidents can trigger Loop Engine workflows, turning urgent alerts into governed and attributable response loops. The adapter maps incident events to loop signals, starts a loop per incident, and keeps human decisions in-policy.
Use case
PagerDuty fires a SEV-2 database incident:
- Loop Engine starts
incident-responseloop - On-call engineer acknowledges (human-only guard)
- Runbook automation executes
- Loop closes and emits learning signal
Quick setup
-
Install
1npm install @loop-engine/adapter-pagerduty -
Configure webhook endpoint
1POST https:"cmt">//your-app.example.com/hooks/pagerduty -
Wire adapter
1import { PagerDutyAdapter } from "@loop-engine/adapter-pagerduty";23const pagerduty = new PagerDutyAdapter({4 webhookSecret: process.env.PAGERDUTY_WEBHOOK_SECRET!,5 incidentLoopId: "incident-response"6}); -
Define incident loop
1loopId: incident-response2initialState: triage3states:4 - stateId: triage5 transitions:6 - signalId: acknowledge_incident7 toState: executing
Configuration reference
| Option | Type | Default | Description |
|---|---|---|---|
| webhookSecret | string | required | PagerDuty webhook signing secret |
| incidentLoopId | string | required | Loop definition ID to start on incident |
| severityMap | object | — | Map PagerDuty severity to loop signals |
Troubleshooting
- Webhook signature invalid — Ensure
webhookSecretmatches PagerDuty integration settings. - Loop not starting — Verify
incidentLoopIdis registered in runtime.