Skip to content

AI· Case study 07

AI on-call triage agent

A production FastAPI service that classifies monitoring alerts with GPT-5 through the OpenAI API using structured outputs, then opens or updates tickets and Slack threads.

Auto-triage

alerts classified, deduplicated, and ticketed

Architecture at a glance

  1. Monitoring webhook
  2. FastAPI
  3. GPT-5 structured output
  4. Ticket + Slack

01 The problem

Alert noise and repeated failures ate on-call time. Every alert needed someone to open logs, classify the issue, and file or update a ticket. Volume is dozens to a few hundred alerts a day, so a hosted frontier model is cheap per alert, a dedicated GPU would sit idle, and a misclassified incident costs more than the API bill.

02 What I built

  1. 1A FastAPI service with authenticated webhook endpoints for monitoring alerts.
  2. 2Classification with GPT-5 through the OpenAI API. Logs are trimmed to recent and error lines and summarized before classifying, and secrets are redacted before anything is sent to the model.
  3. 3Structured outputs for issue category, likely cause, and severity. Each output is validated against a schema, retried, and falls back to “unknown, needs a human”.
  4. 4Prompt-injection containment. Logs are untrusted, so the model only classifies and cannot act outside the fixed ticket and Slack steps.
  5. 5Ticket automation that creates or updates issues only for persistent failures (for example, reconcile errors lasting more than 3 days) and avoids duplicates.
  6. 6Slack notifications with the diagnosis and next steps. Accuracy is checked by replaying past alerts with known causes, and engineers confirm the diagnosis in Slack.
  7. 7Containerized and deployed on Kubernetes with Helm.

03 Impact

Less manual triage, fewer duplicate tickets, and faster time to a first diagnosis for platform and customer-project failures. Engineers still confirm the diagnosis in Slack.

08 · Contact

Let’s build something that holds up in production.

If something here resonates, whether it’s a data problem, an idea, or a conversation worth having, I’d love to hear from you. The fastest way to reach me is a message on LinkedIn.

Good reasons to reach out

  • Data platform help

    ClickHouse or Druid performance, Kubernetes operations, migrations, and cost reviews.

  • Collaboration

    Open-source work, writing, talks, or comparing notes on a hard data problem.

  • Just to talk shop

    Real-time analytics, AdTech data, MCP and agent tooling, or life as an FDE.

esc
↑ ↓ navigate↵ select