Skip to Content
FeaturesAI Alert Explanations

AI Alert Explanations

Available on: Starter, Pro, Enterprise

When a beet has an open alert, a “Explain with AI” button appears on the beet detail page. Clicking it streams a Claude-powered analysis of the incident directly in the alert banner.

What the AI receives

Heartbeet sends the following context to Claude with every explanation request:

ContextSource
Beet name and descriptionYour beet configuration
Alert severityCurrent alert record
Time the alert firedtriggered_at timestamp
Expected vs actual event countCurrent alert record
Hourly baseline for this exact time windowbeet_baselines_hourly
Last 10 alerts for this beetanomaly_alerts history
Other beets on the same project that fired within ±30 minutesCorrelated alerts query

The AI does not have access to your application code, logs, or any external systems.

What the AI returns

A streamed plain-English explanation (3–5 short paragraphs) covering:

  1. What this means in business terms — translates raw numbers into impact
  2. Most likely causes — reasoned from time of day, correlated alerts, and historical pattern
  3. Recommended immediate actions — specific next steps, not generic advice
  4. Recurring vs one-off assessment — based on alert history pattern

Example output

Your order.placed beet received zero events between 14:00 and 15:00, against a Wednesday afternoon baseline of 42–51 per hour. This is the first complete silence in 68 days of data.

Critically, three other beets on this project — payment.webhook, cart.abandoned, and checkout.initiated — also went silent within the same 4-minute window. This strongly points to a shared upstream failure rather than an issue isolated to your order flow.

Check your API gateway and payment processor status for the 13:58–14:03 window. A deployment rollout, rate limit breach, or DNS change is the most likely cause given the simultaneous drop across all four beets.

This does not match your Monday morning slowdown pattern. Treat as a one-off infrastructure incident until proven otherwise.

Regenerating

Once the explanation loads, a Regenerate button appears below it. This re-runs the analysis with fresh context — useful if the situation has evolved since the alert fired.

Model

Explanations use claude-sonnet-4-6. Token usage is tracked per organisation and visible on the admin dashboard.

Plan gating

Free plan users see a prompt to upgrade rather than the Explain button. The plan check is enforced server-side in the API route.

Usage tracking

Every explanation request logs input and output token counts to ai_usage_log. The admin dashboard shows:

  • AI calls in the last 30 days and all time
  • Estimated spend (at $3/MTok input, $15/MTok output for claude-sonnet-4-6)
  • Link to the Anthropic billing console for actual credit balance