Automate alert triage: build a workflow that enriches, assesses and routes alerts and security findings
A hands-on build guide: start from an Obseria event, add service context, let an AI agent summarise, switch by severity and route to Teams or Slack, Jira or a note, with deduplication, storm protection, human approval and MTTA/MTTR tracking.
Summary
- An alert triage workflow does the first five minutes of every alert automatically: collect service context, write a short assessment, decide by severity and send the result to the right place, whether that is an on-call channel, a ticket or just a log entry.
- Route on a deterministic severity, not on the model's opinion. The AI agent adds a summary and a suggestion; who gets woken up is decided by rules you can read and test.
- Build in deduplication, protection against alert storms, an approval step before anything disruptive and timestamps for MTTA and MTTR from day one, or the workflow becomes another source of noise.
Most alerts are handled the same way: open the alert, find the service and its owner, check for recent deployments, judge how bad it is, then post in a channel or open a ticket. That routine takes minutes, day and night, and a workflow can do it reliably.
This guide shows how to automate alert triage node by node: an event starts the run, service context is added, an AI agent writes an assessment, a switch routes by severity to Teams or Slack, Jira or a note. Then we add deduplication, storm protection, human approval and MTTA/MTTR measurement. If you are still deciding which alerts deserve to exist at all, start with our guide on how to reduce alert fatigue; for what AI can and cannot do in incident response in general, see AI SRE agents explained.
What an alert triage workflow should do
Triage answers three questions: what is affected, how bad is it and who needs to act. It does not fix anything on its own; it prepares a decision so the recipient can start working immediately:
- It attaches context: owner team, current error rate and latency, version, recent code changes.
- It adds a short, readable assessment with a likely cause and next steps.
- It routes by incident severity: high goes to on-call, medium becomes a ticket, low is recorded but wakes nobody.
- It records timestamps so you can measure MTTA and MTTR over time.
The workflow at a glance
The example below uses Obseria Workflow and the node names from its builder. The structure carries over to other workflow engines.
Obseria event: "Problem opened" (optional filter)
|
Obseria data: Services (last 24 h) -> version, error rate, p99 of trigger.entity
|
Read table: service_owners -> team, channel, Jira project
|
HTTP request: GitHub "Commits" (since 24 h)
|
AI agent: assess and summarise (read-only tools only)
|
AI step: summary -> JSON fields
|
Switch: lower(trigger.severity)
|-- "high" -> Send message (on-call channel) -> HTTP request: Jira "Create issue"
|-- "medium" -> HTTP request: Jira "Create issue" -> Send message (team channel)
|-- "low" -> Note (run log)
'-- default -> Send message (triage channel)
Build it step by step
Step 1: Obseria event trigger
Add an Obseria event trigger and pick Problem opened. A problem in Obseria is opened by an alert rule and carries an id, a name, the affected entity, a category, a likely root cause and a severity. The trigger fires when a problem newly opens; while the same problem stays open, it does not fire again. The optional filter narrows the event, for example trigger.category != 'Performance' while you tune a noisy category. Other events that fit this pattern are Workflow run failed (to triage failures of your own automations) and Problem resolved (for the MTTR part below).
Step 2: Enrich with service context
Add an Obseria data step with the source Services (last 24 h) and the filter item.name == trigger.entity. It returns the service's version, status, request rate, error rate and p50/p99 latency. For error and latency problems the entity is the service name; for database or synthetic check problems it is the instance or URL, so this lookup may return nothing, and the workflow should handle that.
Ownership is not part of that step. Keep a small Data table, for example service_owners with the columns service, team, channel, jira_project, and read it with a Read table step filtered by the entity. If the service is missing from the table, that is a finding in itself: route the alert to a default triage channel and ask for an owner.
For recent changes, add an HTTP request with the GitHub connector and the endpoint Commits, with since set to 24 hours ago. Recent commits are a useful hint, not proof of cause.
Step 3: AI agent to assess and summarise
Add an AI agent step. Task, for example: "Assess this problem for on-call using the context below. Check whether a similar Jira issue is open. Answer in five lines: affected, likely cause, customer impact, suggested severity, next steps." Pass in the trigger payload, service row, owner row and commits.
The agent only uses the tools you assign to it: endpoints of connected apps, other workflows, read-only SQL on Data tables or fetching a web page. For triage, give it read-only tools only, for example Jira Search issues (JQL) and a read-only SQL query over a Data table with past incidents. The text you pass is sent to the model provider, so do not include secrets.
The agent answers in text. If later steps need fields, add an AI step with JSON output turned on that converts the summary into a fixed structure.
Step 4: Switch by severity
Add a Switch step with the value lower(trigger.severity) and the cases high, medium and low. Lower-casing protects against differences in spelling. The default branch catches anything unexpected and sends it to a triage channel, so no alert disappears silently.
Route on the severity that comes from your alert rule, not on the model's suggestion. The suggestion appears in the message, and a human can raise the severity if the AI has a point.
Step 5: Send message to Teams or Slack
On the high branch, add Send message with a notification channel for Microsoft Teams or Slack. Title: [HIGH] {{ trigger.name }}. Text: the summary, the owner team, the error rate and a link to the problem. Set Run only once per key to {{ trigger.id }}-{{ today() }}, so a repeated run sends no second message for the same problem that day. The step posts to a channel; it does not call or text anyone, so keep paging connected to your alerting for cases that must wake someone.
Step 6: Create a Jira ticket
Add an HTTP request, choose the Jira connector and the endpoint Create issue. The project key comes from the owner table, the summary from the problem name, the description from the AI summary. Use the problem id as Run only once per key so retries never create a second ticket. On the high branch, post the ticket key back into the channel; on the medium branch, the ticket comes first and a short message to the team channel follows.
Step 7: Note for low severity
On the low branch, a Note step writes one line into the run log, for example Low: {{ trigger.name }} on {{ trigger.entity }}. If you also want a weekly review, add a Write to table step and summarise the table once a week with a scheduled workflow.
Step 8: Approval before disruptive actions
Some responses change production: rolling back, restarting, scaling down, blocking. Never let the AI agent hold such tools. Instead, put an Approval step in front of the action. It pauses the run, sends the approvers a link and can also post to a channel; they approve or reject with a note in the Workflow inbox, and an optional deadline rejects automatically. Only the approved branch continues to, for example, an HTTP request with the GitHub endpoint Run Actions workflow that starts your rollback pipeline. Our guide to approval workflows covers the design of approval steps in more detail.
All nodes in one table
| Step | Node type | What it does | Example setting |
|---|---|---|---|
| 1 | Obseria event | Starts the run when a problem opens | Event: Problem opened; filter empty |
| 2a | Obseria data | Reads current service metrics | Source: Services (last 24 h); item.name == trigger.entity |
| 2b | Read table | Finds owner, channel and Jira project | Table service_owners, filter by service |
| 2c | HTTP request | Lists recent commits | GitHub, endpoint Commits, since 24 h |
| 3a | AI agent | Assesses and summarises | Read-only tools, few tool rounds |
| 3b | AI step | Turns the summary into fields | JSON output on |
| 4 | Switch | Routes by severity | lower(trigger.severity); high, medium, low, default |
| 5 | Send message | Alerts on-call in Teams or Slack | Once per key {{ trigger.id }}-{{ today() }} |
| 6 | HTTP request | Creates a Jira issue | Jira, endpoint Create issue; once per problem id |
| 7 | Note | Records low-severity alerts | One line in the run log |
| 8 | Approval | Holds disruptive actions | Approvers from the owner table; deadline set |
Example AI summary
An illustrative output of the AI step with JSON output, based on a made-up problem:
{
"affected": "checkout-api, error rate about 12 % in the last 15 minutes",
"likely_cause": "5xx responses from payment-service; a commit changing the payment client timeout was merged 40 minutes before the problem opened",
"customer_impact": "Some checkouts fail",
"suggested_severity": "high",
"similar_open_issue": "none found",
"next_steps": [
"Check payment-service logs for timeouts",
"Compare error rate with the previous version",
"If confirmed, request rollback (needs approval)"
],
"confidence": "medium"
}
Ask for a confidence field and for "none found" instead of guesses.
Severity routing matrix for incident routing automation
Write the routing down before you build it. The response targets below are examples to adapt, not recommendations for every team:
| Severity | Who is notified | Channel | Response target (example) |
|---|---|---|---|
| High | On-call engineer of the owner team | Teams or Slack on-call channel, Jira issue, paging via your alerting | Acknowledge within 15 minutes |
| Medium | Owner team | Jira issue, short message in the team channel | Look at it the same working day |
| Low | Nobody directly | Note in the run log, weekly table review | Weekly triage meeting |
| Unknown owner | Triage rotation | Default triage channel | Assign an owner within one working day |
| Workflow run failed | Owner of the workflow | Team channel | Next working day, unless the process is critical |
Define what high means in your escalation policy, and attach a runbook link to each alert rule so the message can carry it.
Security alert triage workflow: findings from other tools
Security findings from Obseria's Cloud SIEM or posture checks are not an Obseria event for workflows today. If your scanner, EDR or SIEM can send a webhook, start the workflow with a Webhook trigger instead: set a shared secret, keep duplicate deliveries ignored and use the finding id as the key. The rest stays the same, routed to the security channel and Jira. Step 8 matters even more here: isolating a host or disabling an account should always need an approval. More on the security side in Obseria Security.
Deduplication and protection against alert storms
A triage workflow multiplies whatever comes in. Without protection, one outage produces fifty messages and fifty tickets. Four layers help:
- At the source: a problem in Obseria fires the event when it opens, not on every evaluation. A problem that resolves and opens again fires again.
- Per action: Run only once per key on Send message and on the Jira request, keyed on the problem or finding id. Webhook triggers ignore repeated deliveries by default.
- Storm mode: at the start of the run, read Open problems with an Obseria data step. If
steps.open_problems.countis above a threshold you choose, send one summary message ("12 open problems, likely related") and stop, instead of triaging each one. - Grouping: let the AI agent search open Jira issues for the same service and add a comment to an existing issue instead of creating a new one.
Also keep cost in mind: every AI call takes time and money. If low-severity alerts are frequent, move the switch before the AI step for the low branch.
Measuring MTTA and MTTR
Automating triage should shorten the time to acknowledge. Measure it instead of assuming it. The incident overview in Obseria Incident Response shows MTTA and MTTR for incidents. For the workflow itself, record your own timestamps:
- At the start, Write to table a row in
alert_triagewith the problem id, severity, team andnow. - After the message, update the row with the notification time.
- Add Wait for event with the event Problem resolved and the match
event.id == trigger.id, then write the resolution time. - Query the table weekly with SQL on Data and compare averages by severity and team.
These timestamps start when the problem opens, so they say nothing about how long it took to notice the issue in the first place; that is MTTD and depends on your alert rules.
Avoiding alert fatigue with automation
Automation reduces alert fatigue when it removes work from each alert and keeps low-severity noise out of chat, and worsens it when every alert becomes a message, a ticket and an AI summary. Review the low-severity table every week: an alert that has only ever been noted is a candidate for deletion or a higher threshold.
Common pitfalls
- Letting the AI decide who gets woken up. Route on rule severity; show the AI suggestion.
- Giving the agent write tools. Triage agents read. Changes go through an approval step.
- No default branch. Unexpected severities or missing owners then vanish.
- No idempotency. Retries create duplicate tickets.
- Trusting the entity to be a service. Database and synthetic problems carry other entities; handle empty lookups.
- Sending secrets to the model. Pass only what the summary needs.
- No error channel. If the triage workflow fails, someone must know; the Workflow run failed event or the workflow's error channel covers that.
Checklist: start in 30 minutes
- Create a Data table
service_ownerswith your five most important services. - Connect Teams or Slack as a notification channel and Jira from the connector catalogue.
- Build trigger, service lookup, owner lookup and switch; leave the AI out at first.
- Add Send message and Jira with Run only once per key.
- Test with sample data for high, medium, low and an unknown owner.
- Add the AI agent with read-only tools and check five summaries by hand.
- Activate, and write the first
alert_triagerow for MTTA and MTTR.
How Obseria helps
All steps in this guide exist in Obseria Workflow; the limits are stated where they apply.
- Triggers: the Obseria event trigger starts on problem opened or resolved, Shadow IT and Data events and failed workflow runs, with an optional filter. Security findings are not an event today; use a webhook from the tool that produces them.
- Context: the Obseria data step reads open problems, services of the last 24 hours and alert rules. Owners and deployments are not part of it; keep owners in a Data table and fetch commits via a connector.
- AI: the AI step summarises and classifies, optionally as JSON; the AI agent works only with the tools you assign and within a limited number of rounds. Results can be wrong; keep a human in the loop for decisions.
- Logic and approvals: switches, conditions and waits and approval steps with an inbox and deadline.
- Delivery: messages via notification channels such as Slack, Teams or e-mail, and Jira through the connector catalogue. No phone or SMS from workflows.
- Operations: the run history shows every step's input and output, and failed runs can be restarted with the same data.
- Incidents: Obseria Incident Response adds alert routing, status pages and MTTA/MTTR in the incident overview.
To build the workflow with your own alerts, start a free trial.
Frequently asked questions about automating alert triage
What is automated alert triage?
A workflow that collects context for an alert, assesses it and routes it by severity, so the person who receives it can act immediately instead of gathering information first.
Should an AI agent decide the severity?
No. Let alert rules or the security tool set the severity and route on that. The AI can suggest a different severity in its summary, and a human decides.
How do I prevent duplicate tickets?
Use the problem or finding id as the idempotency key on the ticket step, ignore repeated webhook deliveries and let the AI agent search for an existing open issue first.
What happens during an alert storm?
Check the number of open problems at the start of the run. Above a threshold, send one summary message and stop, instead of triaging every alert separately.
Can the workflow fix incidents on its own?
It can start actions, but disruptive ones such as rollbacks or restarts should always pass an approval step. The agent should only have read-only tools.
How do I know whether automation helps?
Record timestamps for opened, notified and resolved in a table and compare MTTA and MTTR by severity before and after the change.