Automations and Alerts
Set up automations to automatically notify you or perform actions when your agent misbehaves in production.
Automations define conditions on evaluation metrics. When conditions are met, automations trigger alerts that can send notifications or execute actions.

Overview
Automations monitor metrics including:
- Trace Attributes (Duration, LLM Cost, Exception, Span Attribute)
- Triggered Behaviors
Each automation has conditions that determine when to trigger alerts. You can configure alert frequency thresholds and cooldown periods to control when notifications or actions execute.
Create an Automation
Create automations from your project's Automations section by clicking "New Automation".

Automation Configuration

- Name: Descriptive name (required)
- Description: Optional purpose explanation
Filter Conditions

Define when the automation triggers:
- Match Type: "AND" (all conditions) or "OR" (any condition)
- Conditions: Add one or more conditions with:
- Metric: Depends on trigger type:
- Trace Attributes: Duration, LLM Cost, Exception, or custom Span Attribute
- Behaviors: Behavior triggered
- Operator: Depends on trigger type:
- Trace Attributes: Comparison (
>=,<=,==,<,>) for numeric metrics;exists,equals,containsfor Exception and Span Attribute - Behaviors:
detected
- Trace Attributes: Comparison (
- Value: Threshold value (comparison operators only)
- Metric: Depends on trigger type:
You can add multiple conditions with the "Add trigger" button.
Actions and Notifications
Configure what executes when alert frequency is met and cooldown has expired:

Below are the available actions and notifications:
Behavior Evaluation
Run behavior judges on the traces that trigger this automation. Select one or more judges to evaluate each matching trace.
You can optionally set a sampling rate (0–100%) to evaluate only a fraction of matching traces. For example, setting 25% evaluates roughly one in four traces. If left blank, all matching traces are evaluated (equivalent to 100%). Sampling uses a deterministic hash of the trace ID so the same trace is always included or excluded consistently.
Add to Dataset
Automatically add traces that match the automation conditions to a dataset. Select target dataset from dropdown.

Email Notifications
Send notifications to specified email addresses.

Slack Integration
Post alerts to Slack channels. Connect Judgment to Slack via Settings → Notifications → App Integrations.

Once connected, use the following Slack commands to configure notifications:
/add-mention [organization-id] [@user_id]— Configure a user to ping when a notification is sent/remove-mention [organization-id] [@user_id]— Remove a user from being pinged/list-mentions [organization-id]— List all users being pinged by notifications/add-channel [organization-id]— Configure the current channel to receive notifications/remove-channel [organization-id]— Stop the current channel from receiving notifications/list-channels [organization-id]— List channels configured to receive notifications
A workspace can be configured to receive notifications from multiple organizations. organization-id must be provided in each of these commands to specify the relevant organization.
Advanced Configuration
Set the frequency and cooldown for alerts and actions:

Action Frequency
Set minimum alerts within a time window before triggering alerts/actions:
Default: at least 1 alert within 1 second (every matching condition will trigger)
Action Cooldown Period
Set minimum time between consecutive alerts/actions:
Default: 0 seconds (no cooldown)
Managing Automations
Manage automations from the automations page: add, edit, or delete automations as needed.

