On-call incident router: an AI triage workflow for production alerts
Checkout is failing. The API has returned 5xx errors for eight minutes, the status page is still green, and peak traffic is twenty minutes away. The on-call question is simple: is this us, and do we page someone?
This workflow answers it in one pass. A cheap scout model reads the alert and labels it HOT or COLD. A router sends real incidents to live checks and a war-room writer, then pauses for a person to approve the page. Known noise, such as a flaky canary, takes a short branch that writes a close note and never pages anyone.
Free in Sim. No account or API key.
What it costs to run
| Route | Steps that call a model | Per run |
|---|---|---|
| HOTEnds at Page card, after a person approves | Scout, War-room writer | $0.006 |
| COLDEnds at Close note | Scout, Noise note | $0.0007 |
At 40 alerts a day, 80% COLD and 20% HOT, that is about $2.23 a month. If every one took the HOT route it would be $7.66.
Estimated before running, from the prompt each step is sent and an assumed reply length, at list prices for each step's model tier. Want the same numbers for your own agent? Paste its code into the cost calculator.
Sample input
P1 checkout API 5xx spike last 8 min. Status page still green. Customers posting on social. Peak traffic in ~20 min. On-call: is this us?
How the workflow runs, step by step
Sample replies show what each step returns for the sample input above. In the editor, Sim shows the same replies for this input without calling a model; Live runs your own models.
1. Start
Alert in
The alert text from PagerDuty, Slack or your monitoring tool starts the run.
Next: Scout
2. Agent
Scout
A small, cheap model classifies the alert as HOT or COLD and says why in one sentence. It only uses the alert text, so it cannot invent telemetry.
Sample reply
ROUTE: HOT WHY: Checkout has returned 5xx for 8 minutes, customers are noticing, and peak traffic is 20 minutes away. CUSTOMER: yes
Next: Severity
3. Router
Severity
Keyword rules pick the branch. Words like canary, flake or do not page go to the noise path; HOT, P1 or 5xx go to live checks.
Next: HOT path (HOT), Noise note (COLD)
4. Join
HOT path
Fans the incident out to two checks that run side by side.
Next: Status fetch, Outage search
5. Tool
Status fetch
Fetches a public status page, standing in for your own status URL.
Next: Merge checks
6. Tool
Outage search
Searches the web for a known vendor or public outage.
Next: Merge checks
7. Join
Merge checks
Waits for both checks and combines what they found.
Next: War-room writer
8. Agent
War-room writer
A stronger model writes the page card: impact, likely cause and the next check. It never runs for noise.
Sample result
SEVERITY: P1 PAGE: yes (human still must approve) IMPACT: Checkout API returning 5xx for 8+ minutes; customers are reporting failed checkouts on social. CHECKS: • Status fetch: the provider's status page shows no matching incident, so this is most likely ours. • Outage search: no public reports of a payment or cloud provider outage that fits. • Our own status page is still green while customers see errors. NEXT 10 MIN: • Page the checkout owner and open an incident channel. • Check the last deploy and flag changes to checkout; roll back if one lines up with the start of the spike. • Post a holding update on the status page before peak. SLACK: P1: checkout API 5xx for 8 min, customers affected. Status page still green, updating it now. Checking the last deploy and flags, rollback ready. Owner paged, next update in 15 min. NOTE: advice only. The on-call owns the page.
Next: On-call approve
9. Human approval
On-call approve
The run pauses. A person approves or rejects the page before anyone treats it as real.
Next: Page card
10. Result
Page card
The approved page card is the result of the run.
11. Agent
Noise note
For known noise, a cheap model writes a short close-out instead. No page and no human step.
Next: Close note
12. Result
Close note
The close note is the result of the run.
Why build it as a graph
A single prompt would run the expensive writer and the live checks on every alert, including noise. Splitting the work into a cheap classifier, a router and a gated writer means you only pay for the war-room card when there is a war room, and a human stays in charge of waking people up.
Things to try
- Run it as is in Sim: the alert goes down the HOT path and pauses for your approval.
- Change the alert to “flaky canary, do not page” and run again. The same graph takes the COLD branch and skips the expensive writer.
- Compare the two runs: the route each took and what each one cost.