DATA OPS
BigQuery Metric Anomaly Detector with AI-Triaged Slack Alerts
Scans a BigQuery metric on a schedule, flags statistical anomalies, and posts an AI-written root-cause summary to Slack so the team reacts in minutes.
How it runs
The automated pipeline, trigger to output.
- TriggerSchedule fires (daily 08:00)
- ActionQuery metric + trailing windowBigQuery
- LogicCompute z-score, detect breach
- ActionAI writes root-cause summaryOpenAI
- OutputPost anomaly alert to channelSlack
What it does
This workflow watches a single business-critical metric in BigQuery — daily revenue, signups, checkout conversion, API error rate, whatever you care about — and catches when it drifts outside normal bounds. On each run it pulls the latest value plus a trailing window (default 30 days), computes a rolling mean and standard deviation, and flags any point that breaches a configurable z-score threshold (default ±3σ). When something looks off, it asks OpenAI to turn the raw numbers into a tight, human-readable explanation ("Signups dropped 41% vs. the 30-day average, the steepest single-day fall in the window") and posts that to Slack with the deviation, direction, and the exact query used. Healthy runs stay silent so you only hear from it when it matters.
When to use it
Use it when a metric is too important to eyeball but not urgent enough to staff a 24/7 watch. Good fits: revenue or GMV that should never crater overnight, funnel conversion that quietly degrades after a release, infra cost or query spend creeping up, or an error-rate KPI warehoused in BigQuery. It is built for the gap between a static dashboard nobody checks and a heavyweight observability stack — give it a metric and a threshold and it becomes a tireless analyst. Run it hourly for fast-moving signals or daily for trend metrics.
How it works
- 1A schedule trigger fires on your cadence (daily at 08:00 by default).
- 2A BigQuery query returns the metric's latest value and its trailing window in one shot.
- 3A logic step computes the rolling mean, standard deviation, and z-score, then decides whether the latest point breaches the threshold. If it is within bounds, the run ends quietly.
- 4On a breach, OpenAI receives the window and the deviation and writes a concise root-cause-style summary plus a severity call.
- 5The summary, the magnitude and direction of the anomaly, and the source query are posted to a Slack channel for the on-call team.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect SlackChannels, DMs, threads, mentions.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Data Ops workflows
Weekly BigQuery Cost Trend Sheet and Exec Digest
Compiles week-over-week BigQuery scheduled-query cost by owner and dataset into a Google Sheet with trend columns.
Daily BigQuery Scheduled-Query Cost Attribution to Owners
Each morning, totals the prior day's on-demand bytes-billed per scheduled query, maps each query to its owner from a label, and posts a per-owner cost leaderboard to Slack.
BigQuery Per-Team Budget Breach Alert to PagerDuty
Tracks month-to-date BigQuery scheduled-query spend per team and, when a team crosses its monthly budget, pages the team's on-call in PagerDuty and snapshots the spend breakdown…
dbt source freshness watcher with severity-routed alerts
Checks Snowflake loaded-at timestamps against each dbt source's freshness SLA, then routes warnings to Slack and hard breaches to a PagerDuty incident so stale data never…
dbt orphan model detector with Linear cleanup tickets
Scans your dbt manifest for models that no other model, exposure, or BI tool consumes.
Raw Sensor Telemetry Archive to BigQuery
Captures every incoming building sensor reading via webhook, normalizes the payload into a consistent schema.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
