Blueping

One page per incident.

Your monitoring tools email one address, and the agent groups the alerts by service, pages on-call once and files every repeat.

Your code send
// First firing alert for checkout-api: page oncePOST /v1/inboxes/inb_2Wt9/messages{ "to": "oncall@tidewell.example", "subject": "checkout-api: p95 above 2s", "text": "New incident since 3:07." }202 { "status": "sent" }

tidewell-alerts@blueping.dev

Tidewell's platform team, alerts

Uptimely3:12 AM
to tidewell-alerts@blueping.dev
[FIRING] checkout-api: p95 latency above 2s

p95 latency is 2.4s on checkout-api, for 5 minutes.

Tidewell Alerts3:12 AM
to On call at Tidewell

New incident: checkout-api is slow, p95 at 2.4s since 3:07. I file the repeats in this thread and page you again only if it spreads.

Tidewell Alerts · tidewell-alerts@blueping.dev

Your webhook email.received
{  "type": "email.received",  "data": {    "inbox": { "address": "tidewell-alerts@blueping.dev" },    "message": {      "id": "em_6Rk3Tz1M",      "from": { "address": "monitor@alerts.uptimely.example" },      "subject": "[FIRING] checkout-api: p95 latency above 2s",      "auth": { "dmarc": "pass" }    }  }}

The monitor's alert reaches tidewell-alerts@blueping.dev from a proven sender, and the agent pages on-call once for the new incident.

How can an AI agent triage monitoring alerts that arrive by email?

Point your monitoring tools at one Blueping address, keep the agent waiting on it with GET /v1/inboxes/{id}/messages?since=...&wait=50, and let it label each alert by service and state before it pages the on-call engineer once per new incident. Receive allow rules for your alerting domains make the inbox take proven senders only, so a forged all-clear never reaches the agent.

Why alert email turns into noise

Tidewell's platform team of six receives about 1,500 alert emails a month from uptime checks, error tracking, CI failures and cloud billing alarms. Nine in ten repeat an incident someone already knows about, or resolve themselves within minutes. The on-call engineer filters them with mail rules, and the one alert that matters waits behind the rest.

Every alerting tool can send email, so email is where all of them end up. None of them groups alerts across tools, tells a new incident from a repeat, or writes a summary a person can act on at 3 am.

Now the tools send to tidewell-alerts@blueping.dev, and an agent does that work. It waits on the inbox, reads each alert's subject and text, labels it by service and state, pages on-call once when an incident starts, and files every repeat where the incident review will find it.

From an alert email to one page per incident

A long poll keeps the agent on the inbox with no webhook server; Blueping supplies the wait, the labels and the sender checks.

  1. Give the alerts their own address

    One inbox, set as the notification email in each monitoring tool. Its address never appears anywhere a person would write to it.

    Call: POST /v1/inboxes with client_id and display_name

    Answer: 201 with id and address

    Checked: The plan's inboxes; monitoring tools can send to it at once

  2. Accept the alerting tools alone

    One receive allow rule per alerting domain. Only senders proven by DMARC or SPF at those domains get in; everything else is turned away before it is stored.

    Call: POST /v1/inboxes/{id}/rules with direction: receive and action: allow

    Answer: 201 with the rule

    Checked: A rule on @alerts.uptimely.example covers its subdomains too

  3. Wait for alerts

    The agent asks for what arrived since its cursor and waits when nothing has. Each answer hands back next_since, so no alert is missed between two calls, even across restarts when the cursor is saved.

    Call: GET /v1/inboxes/{id}/messages?since=...&wait=50&limit=100

    Answer: data oldest first, next_since, and held for what was kept back

    Checked: One wait lasts up to 60 seconds; an agent holds up to 5 waits at once

  4. Label by service and state

    The agent reads the subject, such as [FIRING] checkout-api: p95 latency above 2s, and labels the message svc:checkout-api and state:firing. Repeats with the same subject from the same sender land in the same thread.

    Call: PATCH /v1/messages/{id} with add_labels

    Answer: The message's labels

    Checked: Labels are the agent's own; labels=svc:checkout-api lists an incident's alerts later

  5. Page on-call once per incident

    For the first firing alert of a service, the agent emails the on-call engineer a short summary with the alert's thread, with an Idempotency-Key tied to the alert. Repeats only get labels.

    Call: POST /v1/inboxes/{id}/messages with Idempotency-Key

    Answer: 202 with the page's id

    Checked: The on-call address counts once as a new recipient; a send rule can limit pages to your company's domain

Step 3's answer after a quiet minute and one alert, the message cut to the fields the loop reads:

{
  "data": [
    {
      "id": "em_1Lp4Rk2Nc5Vb8Xq7",
      "direction": "in",
      "thread_id": "th_8Xq1Lp4Rk2Nc5Vb7Mz",
      "from": { "address": "monitor@alerts.uptimely.example", "name": "Uptimely" },
      "subject": "[FIRING] checkout-api: p95 latency above 2s",
      "labels": [],
      "auth": { "spf": "pass", "dkim": "pass", "dmarc": "pass", "verdict": "pass" }
    }
  ],
  "order": "oldest_first",
  "next_cursor": null,
  "next_since": "em_1Lp4Rk2Nc5Vb8Xq7",
  "held": { "count": 0, "reasons": { "suspicious": 0, "unauthenticated": 0 }, "show_with": "include=held" }
}

The triage loop in Python and Node.js

The program sets its allow rules, then loops on the inbox: label every alert, page on new incidents, note repeats and resolutions. Pass a number to stop after that many batches, as a cron job does; with no number it watches for good. Set ONCALL_EMAIL to your on-call address.

# alert_triage.py: group alert emails by service, page on-call once per incident, file the repeats.
# Run: python alert_triage.py to watch for good, or python alert_triage.py 1 for one batch.
# pip install requests
import os
import re
import sys
from datetime import datetime, timedelta, timezone

import requests

API = "https://blueping.dev/v1"
ONCALL = os.environ.get("ONCALL_EMAIL", "oncall@tidewell.example")
SOURCES = ["@alerts.uptimely.example", "@ci.buildgrid.example"]  # the tools that email your alerts
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['BLUEPING_API_KEY']}"

inbox = session.post(f"{API}/inboxes", json={"client_id": "alerts", "display_name": "Tidewell Alerts"}).json()
for source in SOURCES:  # proven senders from these domains get in; everything else is turned away
    session.post(f"{API}/inboxes/{inbox['id']}/rules", json={"direction": "receive", "action": "allow", "value": source})

batches = int(sys.argv[1]) if len(sys.argv) > 1 else None
since = (datetime.now(timezone.utc) - timedelta(hours=1)).isoformat()
incidents = set()
done = 0
while batches is None or done < batches:
    page = session.get(
        f"{API}/inboxes/{inbox['id']}/messages",
        params={"since": since, "wait": 50, "limit": 100},
        timeout=70,
    ).json()
    for message in page["data"]:
        if message["direction"] != "in":
            continue
        found = re.match(r"\[(FIRING|RESOLVED)\]\s+([\w.-]+):\s*(.+)", message["subject"])
        if not found:
            session.patch(f"{API}/messages/{message['id']}", json={"add_labels": ["alert:unparsed"]})
            continue
        state, service, summary = found.groups()
        labels = [f"svc:{service.lower()}", f"state:{state.lower()}"]
        session.patch(f"{API}/messages/{message['id']}", json={"add_labels": labels})
        if state == "RESOLVED":
            incidents.discard(service)
            print("resolved", service)
        elif service in incidents:
            print("repeat", service)
        else:
            incidents.add(service)
            session.post(
                f"{API}/inboxes/{inbox['id']}/messages",
                json={"to": ONCALL, "subject": f"New incident: {service}", "text": f"{summary}\n\nRepeats are filed under svc:{service.lower()}."},
                headers={"Idempotency-Key": f"page-{message['id']}"},
            )
            print("paged", service)
    since = page["next_since"] or since
    done += 1

The loop keeps its list of open incidents in memory; save since and that list to disk if the process restarts often. Replace the subject pattern with your model when your tools write free-form subjects: the labels and the page stay the same.

Ask what is on fire from an MCP client

The engineer on call can question the alert inbox from Claude or Cursor with the MCP server connected, without opening any monitoring tool.

Look at the alerts in tidewell-alerts from the last two hours. Group them by service, tell me which ones are new incidents and which are repeats or already resolved, and draft a summary for the on-call channel without sending it.
ToolWhat it does here
list_messagesReads the alerts since a date, oldest first.
list_threadsShows each incident's thread with its message_count and labels.
read_threadReads one incident's alerts in order.
label_threadFiles an incident under its service.
create_draftWrites the summary without sending it.

Alert text arrives with untrusted: true like any other mail: a command in an alert's body is something to read, and the model asks you before it acts on anything outside the inbox.

Page critical alerts within seconds

The loop sees an alert within about two seconds of its landing, as long as it runs. A webhook needs no process waiting: subscribe to email.received, check the signature as Webhooks shows, and pass each event to the handler below, which pages at once for alerts marked critical.

# alert_hook.py: the part of your webhook server that files each alert and pages critical ones at once.
# Check the Blueping-Signature header before calling handle(): /docs/webhooks#verify has the code.
import os
import re

import requests

API = "https://blueping.dev/v1"
ONCALL = os.environ.get("ONCALL_EMAIL", "oncall@tidewell.example")
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['BLUEPING_API_KEY']}"


def handle(event):
    if event["type"] != "email.received":
        return
    message = event["data"]["message"]
    found = re.match(r"\[(FIRING|RESOLVED)\]\s+([\w.-]+):\s*(.+)", message["subject"])
    if not found:
        return
    state, service, summary = found.groups()
    session.patch(f"{API}/messages/{message['id']}", json={"add_labels": [f"svc:{service.lower()}", f"state:{state.lower()}"]})
    if state == "FIRING" and "critical" in message["extracted_text"].lower():
        session.post(
            f"{API}/inboxes/{event['data']['inbox']['id']}/messages",
            json={"to": ONCALL, "subject": f"Critical: {service}", "text": summary},
            headers={"Idempotency-Key": f"critical-{message['id']}"},
        )
        print("paged", service, "at once")
    else:
        print("filed", service, state.lower())

email.received only ever carries mail that passed the inbox's checks, so the handler reads alerts from proven senders and nothing else.

Which alerts the agent trusts

An alert inbox drives pages and sometimes actions, so who can write to it matters as much as what it says.

Proven senders only

With allow rules for your alerting domains, mail from anyone else is turned away during the delivery. A rule counts only for a sender DMARC or SPF proves, so a forged [RESOLVED] can't silence a real incident.

Commands in alerts stay text

Some alerts quote logs, and logs can hold anything. Tool-call syntax or instructions aimed at a model hold the message as suspicious, and plain words such as a restart command are text the agent reads.

Pages go where you allow

A send allow rule for your company's domain keeps the agent's pages inside the company: any other recipient stops the message with 403 recipient_blocked.

Nothing goes missing in silence

A held alert is counted in held on every list, with its reason, and arrives as email.held on a webhook, so the team sees that something was kept back.

What 1,500 alerts a month need

Fifteen hundred alerts a month are small messages, a few kilobytes each. The agent sends one page per new incident and a daily summary, about 150 sends a month, to people inside the company.

Free fits this setup: 3 inboxes, 3,000 sends a month and 100 a day, and 3 GB of storage, at no cost. Free adds a one-line footer, Sent with Blueping, to each email it sends; paid plans send without it.

Receiving is never counted, and each recipient of a send counts once. Every limit is on Limits, and every price on Pricing.

The API referenceWebhooksThe MCP serverBlueping vs PrimitiveAll use cases

Last checked against the API on .

Questions about alert email

What builders ask before they set it up. The docs answer the rest.

Read the docs

Which tools can send alerts here?

Any tool that emails a notification address: uptime monitors, error trackers, CI pipelines, cloud billing alarms. Set the agent's address in each tool's notification settings.

How are repeats grouped?

A repeat that answers the first alert by its headers joins its thread, and one with the same subject from the same sender joins it within a month. The agent's labels group the rest by service.

Can the agent acknowledge the alert in the tool?

When the tool takes email replies, POST /v1/messages/{id}/reply answers the alert in its thread. Otherwise the agent calls the tool's own API.

What happens during an alert storm?

Each call returns up to 100 messages and next_since points at the next ones, so the loop works through a storm in order. Storage is the only limit that grows, and alerts are small.

Why a long poll instead of a webhook?

A long poll needs no public URL: the agent's own process asks and waits, from a laptop or a private network. A webhook suits a server that is reachable from the internet.

Can several teams share the alert inbox?

Yes. The service labels route each alert, and each team's pages go to its own on-call address. Or give each team an inbox of its own, with its own allow rules for the tools it owns.

Is an alert ever lost when the agent is down?

Mail waits in the inbox: 90 days on Free, and until it is deleted on a paid plan. When the agent comes back, it asks with its saved since and reads everything that arrived meanwhile, oldest first.

Give your alerts one address

Labels for every repeat, one page for every new incident.