Alert Types
Health Score Threshold
Fires when your agent’s rolling health score drops below a value you set. The rolling score is the weighted average of the agent’s last 10 sessions, so this alert catches gradual degradation trends rather than one-off anomalies.
Pattern Detected
Fires when a specific behavioral pattern is found in any session — for example, any detection of
hallucination_burst or goal_hijacking. Use this to zero in on the failure modes that matter most for your use case.Session Failed
Fires when a diagnostic session cannot be completed due to an error. This usually indicates a problem with your log pipeline — malformed input, an invalid agent ID, or an upstream integration issue — so it signals infrastructure problems as well as agent problems.
Critical Finding
Fires immediately when any finding with
severity: critical is detected in a completed session. This alert bypasses the rolling average so you hear about it right away, regardless of the agent’s overall score trend.Configuring Alerts
1
Open the Alerts settings
In the Agent Therapy dashboard, go to Settings → Alerts and click New Alert.
2
Choose the alert type
Select one of the four alert types described above. The form adjusts to show the relevant condition fields for the type you choose.
3
Set the conditions
Configure the trigger conditions for your alert:
- Health Score Threshold — enter the minimum acceptable score (e.g.,
65). The alert fires when the rolling score falls at or below this number. - Pattern Detected — select one or more patterns from the dropdown (e.g.,
hallucination_burst,instruction_drift). The alert fires if any of the selected patterns appear in a session. - Session Failed — no additional conditions needed; the alert fires on any session failure for the selected agents.
- Critical Finding — no additional conditions needed; the alert fires on any
severity: criticalfinding.
4
Choose a notification channel
Select how you want to be notified: Email, Slack, or Webhook. You can add multiple channels to the same alert. See Notification Channels for setup details for each option.
5
Save the alert
Click Save Alert. The alert activates immediately and will begin firing on the next qualifying event.
Notification Channels
Email Enter one or more email addresses. Agent Therapy sends a formatted alert email that includes the agent name, alert type, current health score (where applicable), a link to the triggering session, and a summary of findings. Slack Provide an Incoming Webhook URL from your Slack workspace. Agent Therapy posts a structured message to the target channel containing the alert type, agent name, health score, and a direct link to the session report. To create a Slack incoming webhook, visit api.slack.com/messaging/webhooks and follow the setup steps for your workspace. HTTP Webhook Provide any HTTPS endpoint. Agent Therapy sends aPOST request with a JSON payload whenever the alert fires. The payload includes the full alert event object so you can route it to PagerDuty, an internal Slack bot, a ticketing system, or any other destination. See Alert via API below for the event payload schema.
Alert via API
You can register webhook endpoints programmatically using the REST API. This is useful when managing alert configuration as code or when spinning up per-environment monitoring in a deployment pipeline. Endpoint:POST https://api.agenttherapy.ai/v1/webhooks
Supported event types:
Listing Registered Webhooks
To retrieve all webhook endpoints registered for your account, send aGET request to /v1/webhooks.
Endpoint: GET https://api.agenttherapy.ai/v1/webhooks
data array of all registered webhook objects. Each object includes the id (needed to update or delete the webhook), the target url, the subscribed events, and the created_at timestamp.
Silencing & Pausing Alerts
Sometimes you need to take an agent offline for maintenance, deploy a major prompt update, or run load tests — situations where a flood of alerts would be noise rather than signal. Agent Therapy lets you put any agent into Maintenance Mode to suppress all alerts for that agent temporarily. To enable Maintenance Mode:- Go to Agents and open the agent’s detail page.
- Toggle the Maintenance Mode switch in the top-right corner of the page.
- Optionally enter an end time — when the timer expires, Maintenance Mode disables automatically and alerting resumes.