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

# Alerts

Get a message by email, in Slack, or in Microsoft Teams when an AI Agent metric drops or spikes. Go straight to the part you need:

* [Quick start](#quick-start): create your first rule in 5 steps.
* [Metrics](#metrics): the metrics a rule can watch.
* [When a rule alerts and recovers](#when-a-rule-alerts-and-recovers): the hours each check looks at, and the data it needs.
* [No reading](#no-reading): what to do when a rule cannot be checked.
* [Read an alert](#read-an-alert): an alert and a recovery as they show in Slack.
* [Send alerts to email, Slack, and Teams](/docs/optimization/performance/alerts/send-alerts): set up where alerts go.

## Overview

An alert tells you that a metric of your AI Agent changed. Each alert comes from a rule. A rule watches one metric on the channels you pick. Its condition says when the metric has a problem.

The Agent checks every rule once an hour. When the metric meets the condition of a rule, the Agent sends one alert. When the metric is healthy again, the Agent sends one recovery. No message is sent while the rule keeps alerting or stays healthy.

Alerts go to two kinds of destination. Email goes to each team member whose alert emails are enabled on the **Recipients** tab, and to each other email address on that tab. Endpoints on the **Webhooks** page send alerts to a Slack channel, a Microsoft Teams chat or channel, or your own system. For the setup, see [Send alerts to email, Slack, and Teams](/docs/optimization/performance/alerts/send-alerts).

Use alerts to find a problem before end users report it. For example, a rule can catch a drop in conversations created, a drop in containment, an action that starts to fail, or a rise in silent handoffs.

## Limitations

These limits apply to alerts.

* An AI Agent can have a maximum of 10 rules. A disabled rule counts toward the limit.
* The Agent checks rules once an hour.
* A rule on a rate needs a minimum number of conversations in the hours it checks. With fewer, the rule cannot alert, and its status is **No reading**, unless the rule is already alerting. For the minimum of each metric, see [When a rule alerts and recovers](#when-a-rule-alerts-and-recovers).
* A rule can filter conversations by channel only.
* A rule on **Automated resolution rate** checks older conversations, after each one has its final result. Its alerts come hours or days after those conversations. The rule needs at least one channel.
* A rule cannot use a Custom Metric that scores test scenarios only.
* A rule on **Action failure rate** checks a maximum of 200 actions or groups of an AI Agent. If the Agent has more with attempts, the rule checks the 200 with the most attempts.
* **Sent** on the **History** tab means that Ada sent the alert out. It does not show that an email inbox, Slack, or Teams received it. An AI Agent with no destination set up also shows **Sent**. To check delivery, see [When an alert does not arrive](/docs/optimization/performance/alerts/send-alerts#when-an-alert-does-not-arrive).

## Capabilities and configuration

A rule has a name, a metric, channels, and a condition. You create and manage rules on the **Alerts** page, or with an AI assistant.

### Rule fields

Each field of a rule changes what the rule checks.

| Field                        | Description                                                                                                                                              |
| :--------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name**                     | A name that says what the rule watches. For example, "Voice containment too low". The name shows in each alert.                                          |
| **Metric**                   | The metric that the rule watches. See [Metrics](#metrics).                                                                                               |
| **Channels**                 | The channels whose conversations the rule counts. Leave the field empty to count all channels. **Automated resolution rate** needs at least one channel. |
| **Alert when the metric is** | The condition. Select **Outside a fixed range** or **Different from usual**. See [Conditions](#conditions).                                              |

### Metrics

A rule watches one built-in metric or one of your [Custom Metrics](/docs/optimization/performance/custom-metrics). Slack and Teams show some built-in metrics with a shorter name.

| Metric                         | What it measures                                                                                                                                                                                     | Name in Slack and Teams                                                                 |
| :----------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------- |
| **Conversations created**      | Number of new conversations. A rule can catch a sudden rise or a sudden drop.                                                                                                                        | Volume                                                                                  |
| **Automated resolution rate**  | Of the conversations that Ada has assessed for [automated resolution](/docs/optimization/conversations/resolution-rate-optimization#how-classification-works), the share that the AI Agent resolved. | Automated resolution rate                                                               |
| **Containment rate**           | Share of engaged conversations that did not end in a handoff to human support.                                                                                                                       | Containment rate                                                                        |
| **Customer satisfaction rate** | Share of rated conversations whose latest survey rating was positive.                                                                                                                                | CSAT                                                                                    |
| **Action failure rate**        | Share of action attempts that failed, checked for each action or group of actions.                                                                                                                   | "Action failing" or "Action working again", followed by the name of the action or group |
| **Conversations that engaged** | Share of new conversations where the end user engaged.                                                                                                                                               | Engagement rate                                                                         |
| **Silent handoffs**            | Share of conversations handed off before the end user said anything.                                                                                                                                 | Silent handoffs                                                                         |
| **Error fallback share**       | Share of AI Agent messages that came from the [Error Fallback](/docs/handoffs/handoff-management#handoff-types) handoff. The AI Agent sends it when an error stops a reply or a handoff.             | Error fallback share                                                                    |

A rule on a Custom Metric watches its pass rate: the share of scored conversations that passed. A conversation with the verdict not applicable does not count. The **Metric** menu lists your Custom Metrics under **Custom metrics**.

If you delete a Custom Metric, each rule on it is disabled. The **Status** of the rule shows **Metric deleted**, and you can only delete the rule.

A rule on **Action failure rate** checks each web action and each code action on its own. It checks the HTTP Request blocks of one answer together, and the integrations of one answer together. Each action or group that meets the condition gets its own alert, and recovers on its own. A new action needs no change to the rule.

### Conditions

The condition says when the metric has a problem. Select one of two types.

**Outside a fixed range** alerts when the metric goes below a minimum or above a maximum that you set. Set a **Minimum**, a **Maximum**, or both.

* For a rate, enter a percentage. For example, a **Minimum** of 80 on **Containment rate** alerts when containment is below 80%.
* For **Conversations created**, enter a whole number of conversations. For example, a **Maximum** of 500 alerts when more than 500 conversations start in the last 4 hours.

**Different from usual** alerts when the metric moves away from its usual value. Set these fields:

| Field                               | Description                                                                                                                                                                                  |
| :---------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Direction**                       | The direction of change that is a problem: **Up**, **Down**, or **Either way**.                                                                                                              |
| **By at least (percentage points)** | For a rate, the smallest change from usual that alerts, in percentage points. For example, with **Down**, enter 8 to alert when containment is 8 points or more below usual.                 |
| **By at least (times usual)**       | For **Conversations created**, how many times higher or lower than usual the count must be. For example, enter 2 to alert when the count is 2 times usual or more, or half of usual or less. |
| **Compare with**                    | The past hours that give the usual value. See [Comparison period](#comparison-period).                                                                                                       |

A rule on a rate also ignores a change that can come from chance. With few conversations, only a large change alerts. A rule on **Conversations created** alerts only when the count is 100 conversations or more away from usual.

### Comparison period

**Compare with** sets what "usual" means for a **Different from usual** rule. The rule compares the hours it checks with the same hours in the past.

| Compare with                       | What the rule compares against                              |
| :--------------------------------- | :---------------------------------------------------------- |
| The same hours the day before      | The same hours on the day before.                           |
| The same hours a week before       | The same hours on the same day one week before.             |
| The same hours in the last 2 weeks | The same hours on the same day in each of the last 2 weeks. |
| The same hours in the last 4 weeks | The same hours on the same day in each of the last 4 weeks. |

The default is **The same hours in the last 2 weeks**. For example, a rule that checks 9:00 AM to 1:00 PM on a Monday, set to the last 4 weeks, compares with 9:00 AM to 1:00 PM on the last 4 Mondays.

When the rule compares with more than one week, the usual value is the middle value of those weeks. With an even number of weeks, it is the average of the 2 middle weeks. With 4 weeks, one very high or very low week does not move it much. The hours follow the clock in the AI Agent's time zone.

A past day or week with too few conversations does not count toward the usual value. If the past hours had too few conversations, the rule has nothing to compare with, and its status is **No reading**, unless the rule is already alerting. With the last 4 weeks, at least 2 of the 4 weeks need enough conversations. With the other options, 1 past day or week is enough.

For a rate, enough is half of the minimum in [When a rule alerts and recovers](#when-a-rule-alerts-and-recovers). For example, a rule on **Containment rate** needs 75 engaged conversations in the past hours. For **Conversations created**, enough is one conversation.

A change that lasts for the whole period becomes the new usual value. The rule then stops alerting on it.

### When a rule alerts and recovers

The Agent checks every rule once an hour. Each check looks at a set of recent hours, shown in the table below. If those hours have less data than the minimum in the table, the check cannot measure the metric. The rule then shows the status **No reading**. If the rule is already alerting, it keeps the status **Alerting**, and its tooltip gives the reason. It does not alert and does not recover until a later check has enough data.

| Metric                         | Hours each check looks at                              | Minimum data for a check                                                                                                                                             |
| :----------------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Conversations created**      | The last 4 hours                                       | For a **Different from usual** rule, the count now or the usual count must be 100 conversations or more. For an **Outside a fixed range** rule, there is no minimum. |
| **Automated resolution rate**  | 24 or 72 hours that ended earlier. See the next table. | 30 conversations with a resolution result                                                                                                                            |
| **Containment rate**           | The last 4 hours                                       | 150 engaged conversations                                                                                                                                            |
| **Customer satisfaction rate** | The last 24 hours                                      | 30 rated conversations                                                                                                                                               |
| **Action failure rate**        | The last 4 hours, for each action or group             | 30 attempts of the action or group                                                                                                                                   |
| **Conversations that engaged** | The last 4 hours                                       | 150 conversations                                                                                                                                                    |
| **Silent handoffs**            | The last 4 hours                                       | 150 conversations                                                                                                                                                    |
| **Error fallback share**       | The last 4 hours                                       | 150 AI Agent messages                                                                                                                                                |
| A Custom Metric                | The last 4 hours                                       | 30 scored conversations                                                                                                                                              |

**Automated resolution rate** waits until the conversations in its hours have their final result. The wait depends on the channel. When a rule counts more than one channel, it uses the hours of the channel with the longest wait for all of them. For example, a rule that counts chat and email uses the email hours for both channels.

| Channel               | Hours each check looks at                    |
| :-------------------- | :------------------------------------------- |
| Voice                 | 24 hours that end 2 hours before the check   |
| Chat and Sunshine web | 24 hours that end 26 hours before the check  |
| Email                 | 72 hours that end 120 hours before the check |
| Every other channel   | 24 hours that end 48 hours before the check  |

A **Different from usual** rule alerts when the metric moves away from its usual value by the amount you set in **By at least**, in the direction you set in **Direction**. A move of exactly that amount alerts. With **Either way**, a move up or a move down alerts. The rule recovers when the metric is back within half of that amount.

For example, a rule on **Containment rate** set to **Down** by at least 8 points alerts when containment is 8 points or more below usual. It recovers when containment is less than 4 points below usual.

For **Conversations created**, you set **By at least** as a number of times usual. A rule set to **Up** by 2 times alerts when the count is 2 times usual or more. A rule set to **Down** by 2 times alerts when the count is half of usual or less. The count must also be at least 100 conversations away from usual.

The rule recovers when the count is back close to usual. For a rule set to 2 times, that is between about 0.7 and 1.4 times usual. For a rule set to 4 times, it is between half of usual and 2 times usual.

For example, with a usual count of 400 and a rule set to 2 times, **Up** alerts at 800 conversations or more, and **Down** alerts at 200 or fewer. Either rule recovers when the count is more than 282 and fewer than 566.

An **Outside a fixed range** rule alerts when the metric goes below the value you set in **Minimum** or above the value you set in **Maximum**. A metric exactly at that value does not alert. The rule recovers when the metric is back inside the range by 5% of the value it crossed.

For example, a rule on **Containment rate** with a **Minimum** of 80% alerts when containment is below 80%. It recovers when containment is 84% or more, because 5% of 80 is 4. A rule on **Conversations created** with a **Maximum** of 500 alerts at 501 conversations or more, and recovers at 475 or fewer.

When you set a **Minimum** and a **Maximum** close together, the 5% margin is never more than a quarter of the range. For example, a rule with a range of 80% to 82% recovers when the metric is between 80.5% and 81.5%.

Some changes to a rule end its alert. The recovery names the reason:

* You change the metric, the channels, or the condition of the rule. The next check treats the changed rule as a new rule. A change to the name only does not end the alert.
* You disable the rule, or you delete it.
* You delete the Custom Metric of the rule.
* An action of an **Action failure rate** rule is deleted.

The Agent sends one message for each hour with changes. The message holds every rule that started or recovered in that hour. If an hourly check does not run on time, a later check covers that hour, and the alert is marked late.

### Preview

The preview runs a rule that you have not saved yet over the last 14 days. It shows when the rule would have alerted and recovered, before you create it.

The preview shows these items:

* A sentence that says how many times the rule would have alerted.
* A chart of the metric, with the usual value, or the values in **Minimum** and **Maximum**. Each hour shows **OK**, **Alerting**, or **No reading**. A rule on **Action failure rate** has no chart, because it checks each action or group on its own.
* A table of each alert, with **Started**, **Ended**, and **Lasted**. An alert that was open at the start of the 14 days shows **Already alerting at** and a time.
* If some hours had too little data to check the rule, a sentence that says in how many hours the rule could be checked, and why not in the others.

### No reading

The **Status** column of the **Rules** tab shows the result of the last hourly check for each rule.

| Status              | Meaning                                                                                                                                                                            |
| :------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **OK**              | The last check measured the metric, and the rule is not alerting.                                                                                                                  |
| **Alerting**        | The rule is alerting. Hover over the status to see since when.                                                                                                                     |
| **No reading**      | The last check could not measure the metric, for example because of too little data. Hover over the status to see why. A rule that is already alerting shows **Alerting** instead. |
| **Not checked yet** | No hourly check has run on the rule since you created or changed it.                                                                                                               |
| **Off**             | The rule is disabled.                                                                                                                                                              |
| **Metric deleted**  | The Custom Metric of the rule was deleted, and the rule was disabled.                                                                                                              |

A rule with the status **No reading** cannot alert. Hover over the status to see the reason, and use this table to fix it:

| Reason                                                          | What to do                                                                                                                                                                                                           |
| :-------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The hours this rule checks had too little activity to judge.    | Add channels to the rule, so that the rule counts more conversations. Except for **Automated resolution rate**, you can also leave **Channels** empty. The preview says how many the rule needs and how many it had. |
| This metric does not have enough past data yet.                 | Select a shorter **Compare with**, or use **Outside a fixed range** until the past data exists. The preview estimates when the rule can first be checked.                                                            |
| The past hours this rule compares with had too little activity. | Use **Outside a fixed range**. It does not compare with past hours.                                                                                                                                                  |
| Ada could not get the data for this metric.                     | No action is necessary. The rule keeps its state, and the next check tries again.                                                                                                                                    |

### Roles and permissions

Your dashboard role sets what you can do with alerts. For the roles, see [My team](/docs/other/team-access/my-team).

| Task                                                   | Owner |           Admin          | Agent | Read Only |
| :----------------------------------------------------- | :---: | :----------------------: | :---: | :-------: |
| See the rules and the **History** tab                  |  Yes  |            Yes           |  Yes  |    Yes    |
| Create, preview, change, disable, and delete rules     |  Yes  |            Yes           |  Yes  |     No    |
| Get alert emails, and enable or disable your own       |  Yes  |            Yes           |  Yes  |    Yes    |
| Enable or disable alert emails for another team member |  Yes  | Yes, except for an Owner |   No  |     No    |
| Add and remove other email addresses                   |  Yes  |            Yes           |   No  |     No    |
| Add and change endpoints on the **Webhooks** page      |  Yes  |            Yes           |   No  |     No    |

With the Ada MCP server, only Owners and Admins can create and change rules, because write tools need the Admin role. See [Tool permissions](/mcp/introduction/tool-permissions).

## Quick start

Set up one place for alerts, then create one rule. For more detail, see [Implementation and usage](#implementation-and-usage).

**To create your first rule:**

1. Enable your alert emails, or add an endpoint for Slack or Teams. See [Send alerts to email, Slack, and Teams](/docs/optimization/performance/alerts/send-alerts).
2. Go to **Analytics** > **Alerts**, and click **Create rule**.
3. Enter a **Name**, and select a **Metric**. For **Automated resolution rate**, also select at least one channel in **Channels**.
4. Under **Alert when the metric is**, select a condition and fill in its fields.
5. Click **Preview rule**. If the preview shows the alerts you want, click **Create rule**.

The rule shows on the **Rules** tab. The rule is first checked at the next hour.

## Implementation and usage

Create rules with an AI assistant or on the **Alerts** page. An AI assistant can read the data of your AI Agent and recommend rules that fit it.

### Create rules with an AI assistant

An AI assistant, such as Claude, reads the past data of your AI Agent and its Custom Metrics. Then it recommends rules for that Agent, and previews each one. The assistant uses the [Ada CLI](/adacli/overview) or the [Ada MCP server](/mcp/introduction/overview).

**To create rules with an AI assistant:**

1. Connect your AI assistant to your AI Agent:
   * **Ada CLI:** Install it and log in with the steps in [Getting started](/adacli/getting-started).
   * **Ada MCP server:** Connect your assistant with the steps in [Getting started](/mcp/introduction/getting-started).
2. Ask the assistant for rules. For example: "Read the last 4 weeks of data for my AI Agent, its Custom Metrics included. Recommend alert rules that catch a real problem and do not alert too often. Preview each rule."
3. Read each rule and its preview.
4. Ask the assistant to create the rules you agree with.

The rules show on the **Rules** tab, next to the rules created on the **Alerts** page.

With the Ada CLI, the assistant uses the `adacli <handle> alerts` commands. With the Ada MCP server, it uses [`edit_agent_config`](/mcp/tools/edit-agent-config) with the `agent_health_rule` entity type.

### Create a rule on the Alerts page

Each rule takes one metric and one condition. Preview the rule before you create it.

**To create a rule:**

1. Go to **Analytics** > **Alerts**.
2. Click **Create rule**.
3. In **Name**, enter a name that says what the rule watches.
4. In **Metric**, select the metric.
5. In **Channels**, select the channels to count. Leave the field empty to count all channels. **Automated resolution rate** needs at least one channel.
6. Under **Alert when the metric is**, select a condition:
   * **Outside a fixed range:** Enter a **Minimum**, a **Maximum**, or both.
   * **Different from usual:** Select a **Direction**, enter the change in **By at least**, and select **Compare with**.
7. Click **Preview rule**.

   The preview shows when the rule would have alerted in the last 14 days.
8. Change the condition until the preview shows the alerts you want.
9. Click **Create rule**.

The rule shows on the **Rules** tab, with the status **Not checked yet** until the next hourly check.

### Manage rules

Edit, disable, or delete a rule from the **Rules** tab. To see only the rules that are alerting, select **Alerting now**.

**To edit a rule:**

1. On the **Rules** tab, open the options menu of the rule, and click **Edit**.
2. Change the fields, and click **Preview rule** to check the result.
3. Click **Save changes**.

If the rule was alerting and you changed the metric, the channels, or the condition, the next alert says that it recovered.

**To enable or disable a rule:**

1. On the **Rules** tab, enable or disable the **On** toggle of the rule.

A disabled rule is not checked. If it was alerting, the next alert says that it recovered.

**To delete a rule:**

1. On the **Rules** tab, open the options menu of the rule, and click **Delete**.
2. Click **Delete rule** to confirm.

The rule stops alerting. If it was alerting, the next alert says that it recovered.

### Read an alert

Each alert names the AI Agent, the hour of the check, and each rule that changed. Times show in the AI Agent's time zone, with the offset from UTC.

For each rule that started alerting, the alert shows the change, the value and the hours it covers, and the usual value or the **Minimum** or **Maximum**. For a rate, it also shows the numbers behind the rate, such as 702 of 1,240 engaged conversations contained. A recovery shows the same lines and how long the rule alerted.

An alert in Slack, for a **Different from usual** rule on containment rate:

```text
acme
Oct 5, 12 PM UTC-4
🔴 Containment rate down · Chat containment drop
  • Down 13.5 percentage points
  • 56.6% from 8 AM to 12 PM today (UTC-4)
  • Usual: 70.1% in the same hours on Mondays in the last 2 weeks
  • 702 of 1,240 engaged conversations contained
```

The recovery of the same rule, 6 hours later:

```text
acme
Oct 5, 6 PM UTC-4
🟢 Containment rate back to normal · Chat containment drop
  • 68.8% from 2 to 6 PM today (UTC-4)
  • Usual: 70.3% in the same hours on Mondays in the last 2 weeks
  • 901 of 1,310 engaged conversations contained
  • Alerted for 6 hours, since Oct 5, 12 PM UTC-4
```

An alert email shows the same content. A Teams card shows the same lines.

An alert for **Automated resolution rate** says "for conversations from" before its hours, because those hours are older than the check. A recovery that a rule change caused shows the reason, such as "alert closed, rule deleted".

### Alert history

The **History** tab lists each rule change, newest first.

| Column       | Description                                                                                                                                             |
| :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Time**     | The time of the alert.                                                                                                                                  |
| **Change**   | **Started** or **Recovered**.                                                                                                                           |
| **Rule**     | The rule name, its channels, and the reason for a recovery that a rule change caused.                                                                   |
| **Value**    | The value of the metric, with the usual value or the **Minimum** or **Maximum** that it crossed, and the number of conversations or attempts behind it. |
| **Delivery** | Whether Ada sent the alert out: **Sent**, **Sent late**, or **Failed**. **Sent** does not show that a destination received it.                          |

## Best practices

These practices help a rule alert on real problems only.

* Preview each rule before you create it. Change the condition until the preview shows the alerts you want.
* For a new AI Agent or a new Custom Metric, use **Outside a fixed range**. A **Different from usual** rule needs past data before it can be checked.
* For an AI Agent with few conversations, count more channels, or use a metric with a lower minimum, such as a Custom Metric.

## Related features

* [Send alerts to email, Slack, and Teams](/docs/optimization/performance/alerts/send-alerts): Set up where alerts go.
* [Custom Metrics](/docs/optimization/performance/custom-metrics): Write the metrics that a rule can watch.
* [Webhooks](/reference/webhooks/overview): Manage the endpoints that receive alerts.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).