> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zentien.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerts

> Get notified via Slack, Microsoft Teams, or email when errors occur in your org.

## Overview

Alert rules tell Zentien when and how to notify you. Each rule defines a condition (what to watch for) and a destination (where to send the notification).

## Creating an alert rule

Go to **Alerts** → **New Alert Rule** and configure:

* **Org** — which org to watch (or all orgs)
* **Event type** — which error type to trigger on (or all types)
* **Minimum severity** — only alert on errors at this severity or above
* **Channel** — Slack, Microsoft Teams, or Email
* **Destination** — your webhook URL or email address

## Slack alerts

1. In Slack, go to **Apps → Incoming Webhooks → Add New Webhook**
2. Select the channel you want alerts posted to
3. Copy the webhook URL
4. Paste it into the **Destination** field in your Zentien alert rule

Slack alerts use Block Kit formatting and include the error type, class name, error message, severity, environment, and a direct link to the error in Zentien.

## Microsoft Teams alerts

1. In Teams, open the channel you want alerts posted to
2. Click **···** → **Connectors** → **Incoming Webhook** → **Configure**
3. Give it a name (e.g. "Zentien"), click **Create**
4. Copy the webhook URL
5. Paste it into the **Destination** field in your Zentien alert rule, and select **Teams** as the channel

Teams alerts use Adaptive Cards with colour-coded severity (red for CRITICAL, orange for ERROR, amber for WARNING, blue for INFO) and a direct link to the error in Zentien.

## Email alerts

1. In Zentien, go to **Alerts → New Alert Rule**
2. Select **Email** as the channel
3. Enter your email address as the destination
4. Save the rule

Email alerts include the error type, class name, error message, severity, environment, and a direct link to the error in Zentien.

## Severity colours (Teams)

| Severity | Colour |
| -------- | ------ |
| CRITICAL | Red    |
| ERROR    | Orange |
| WARNING  | Amber  |
| INFO     | Blue   |

## Plan limits

The number of alert rules is limited by your plan:

| Plan       | Alert Rules |
| ---------- | ----------- |
| Starter    | 5           |
| Team       | 25          |
| Enterprise | Unlimited   |

The current count and limit are shown in the **Plan & Usage** section of the Account page.

## Tips

* Create a **CRITICAL severity** rule that alerts immediately for your most important flows and classes
* Use org-specific rules if you want different alert behaviour for production vs sandbox
* You can have multiple rules — e.g. Slack for all errors, email for CRITICAL only
* Email alerts are sent from [alerts@zentien.io](mailto:alerts@zentien.io)
