> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Webhook: Agent health alert

POST 

A webhook sent when one or more alert rules of an AI Agent start alerting or recover in an hourly check. One event holds every rule change of that hour.

Reference: https://docs.ada.cx/reference/webhooks/agent-health-alert-webhook

## Request

### Payload

- `type` (enum, required) — The webhook event type. Always `v1.agent_health.alert`.
  - Allowed values: `v1.agent_health.alert`
- `timestamp` (string, required) — When the event was generated, in UTC
- `data` (AgentHealthAlertData, required) — One AI Agent's rule changes in one hour. Each time is ISO 8601 in the AI Agent's time zone, with its UTC offset, for example `2026-10-05T12:00:00-04:00`. A time with no offset is UTC.
- `tags` (list of string, optional) — The AI Agent handle, then the names of the metrics that changed, in alphabetical order, up to 5 tags in all. A Custom Metric tag has a dot in place of the colon, for example `custom.<id>`. For the full list of changes, read `data.alert_changes`.

## Types

### AgentHealthAlertData

One AI Agent's rule changes in one hour. Each time is ISO 8601 in the AI Agent's time zone, with its UTC offset, for example `2026-10-05T12:00:00-04:00`. A time with no offset is UTC.

- `agent_handle` (string, required) — The handle of the AI Agent
- `at` (string, required) — The hour checked, which is the end of the window
- `window_start` (string, required) — Start of the trailing window of the check. Each change carries the hours it judged in its own `window_start` and `window_end`. They are older for `resolution_rate`, and the 24 hours before the check for `csat_rate`.
- `window_end` (string, required) — End of the trailing window of the check
- `alert_changes` (list of AgentHealthRuleChange, required) — The rules that started alerting or recovered in this hour
- `late` (boolean, optional) — True when a later run checked a missed hour
- `summary` (string, optional) — One line that a person can read, with the rule changes
- `still_alerting` (list of AgentHealthStillAlerting, optional) — One entry for each open incident with no change in this hour. A rule on a metric other than `action_failure_rate` has one incident. A rule on `action_failure_rate` has one incident for each alerting action. An incident is in `alert_changes` or here, never in both.

### AgentHealthRuleChange

A rule that started alerting or recovered in this hour

- `rule_id` (string, required) — The ID of the rule
- `name` (string, required) — The name of the rule
- `metric` (string, required) — The metric of the rule: `containment_rate`, `engagement_rate`, `resolution_rate`, `csat_rate`, `silent_escalations`, `error_fallback_share`, `action_failure_rate`, `volume`, or `custom:` followed by the ID of a Custom Metric
- `change` (enum, required) — Whether the rule started alerting or recovered
  - Allowed values: `started`, `recovered`
- `n` (integer, required) — The denominator of the metric in the window: AI Agent messages for `error_fallback_share`, scored conversations for a Custom Metric, conversations with an automated resolution result for `resolution_rate`, rated conversations for `csat_rate`, the attempts of the action for `action_failure_rate`, and conversations for every other metric
- `metric_label` (string, optional) — The name of the metric. For `action_failure_rate`, the action is in `action`.
- `filters` (AgentHealthRuleChangeFilters, optional) — The conversations that the rule counts, with one key for each filter type, for example `{"channel": ["voice"]}`. A later filter type adds a key, and its value can have another shape. An empty object counts all conversations.
- `condition` (AgentHealthRuleChangeCondition, optional) — When the rule is broken. A relative condition has `type` `relative`, `direction` (`up`, `down` or `both`), `min_change` and `baseline_days` (1, 7, 14 or 28). For a rate, `min_change` is a fraction, so `0.08` is 8 percentage points. For `volume`, it is a ratio above 1. A threshold condition has `type` `threshold`, and `min`, `max` or both. A rate bound is a fraction. A `volume` bound is a number of conversations.
- `reason` (string, optional, nullable) — Set on a recovery that is not a return to normal: `rule_changed`, `rule_deleted`, `rule_disabled`, `metric_deleted` (the Custom Metric of the rule was deleted, and the rule was disabled) or `action_deleted`. Null otherwise.
- `alerting_since` (string, optional, nullable) — When the alert started, with the UTC offset of the AI Agent's time zone
- `current` (double, optional, nullable) — The value in the window. A rate is a fraction of the metric's denominator. `volume` is a count. Null when no value could be calculated. A recovery with a `reason` can carry a value from a window that had too little activity to judge.
- `expected` (double, optional, nullable) — For a relative rule, the median of the same window over the comparison period. For a threshold rule, the range edge that was crossed, or the nearest one.
- `gap` (double, optional, nullable) — For a relative rule on a rate, `current` minus `expected`. For a relative rule on `volume`, `current` divided by `expected`. For a threshold rule, `current` minus the edge.
- `numerator` (integer, optional, nullable) — For a rate, the count behind the rate, for example contained conversations. For a Custom Metric, the passes. For `csat_rate`, the positive ratings. For `action_failure_rate`, the failed attempts of the action. Null for `volume`.
- `window_start` (string, optional, nullable) — Start of the hours this rule judged. The same as the window of the event, except for `resolution_rate`, which judges older hours once their results are final, and `csat_rate`, which judges the 24 hours before the check.
- `window_end` (string, optional, nullable) — End of the hours this rule judged
- `action` (AgentHealthAction, optional, nullable) — For `action_failure_rate`, the action that this change is about. Null for every other metric.

### AgentHealthStillAlerting

An open incident with no change in this hour

- `rule_id` (string, required) — The ID of the rule
- `name` (string, optional, nullable) — The name of the rule when the alert was sent. Null only for an alert recorded before this field existed.
- `alerting_since` (string, optional, nullable) — When the incident started. Null only for an alert recorded before this field existed.
- `action` (AgentHealthAction, optional, nullable) — For `action_failure_rate`, the action of the incident. Null for every other metric.

### AgentHealthRuleChangeFilters

The conversations that the rule counts, with one key for each filter type, for example `{"channel": ["voice"]}`. A later filter type adds a key, and its value can have another shape. An empty object counts all conversations.

- `channel` (list of string, optional)

### AgentHealthRuleChangeCondition

When the rule is broken. A relative condition has `type` `relative`, `direction` (`up`, `down` or `both`), `min_change` and `baseline_days` (1, 7, 14 or 28). For a rate, `min_change` is a fraction, so `0.08` is 8 percentage points. For `volume`, it is a ratio above 1. A threshold condition has `type` `threshold`, and `min`, `max` or both. A rate bound is a fraction. A `volume` bound is a number of conversations.

### AgentHealthAction

An action of the AI Agent

- `kind` (string, required) — `web_action`, `http_block`, `action_integration` or `code_action`
- `id` (string, required) — The ID of the action. For an HTTP Request block or an integration, the ID of the answer that holds it.
- `label` (string, required) — The text that names the action in the alert, from the AI Agent's configuration. For a web action, its name. For a code tool, its name followed by `(code tool)`. For an HTTP Request block, `HTTP Request blocks in "<answer>"`, and for an integration, `integrations in "<answer>"`, where `<answer>` is the name of the answer that holds it. When the name cannot be read, the kind and the ID.