# Alerts

Alerts allow you to receive notifications in Slack or through an incoming webhook when your Workflow returns an error.

## How To Create An Alert

To create an alert, follow these steps:

1. Publish your Workflow in order to create an alert
2. Click **Monitor > Alerts**
3. Click **Add Alert**
4. Name your alert
5. Choose the Workflows you want to be notified about
6. Choose how you want to be notified:
   * To receive the alert through an incoming Webhook: Click **Add** **Action >** **Webhook** and provide the URL where you will receive a POST request with the data of the error
   * To receive the alert through Slack: click on **Add Action > Slack** and select the Slack channel where you want to receive notifications

<figure><img src="https://3762890407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-c814fa3a8115e9824364c192c133c2d081e46cef%2FCleanShot%202025-02-26%20at%2014.14.03.png?alt=media" alt=""><figcaption></figcaption></figure>

### Slack Action

When an alert containing a Slack action is triggered, the Slack action sends a message to the selected channel including the Workflow name, error message, and a link to the execution:

<figure><img src="https://3762890407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-4bc88d30fcb97dde9aab942a1a4f77266b9a74d9%2FCleanShot%202025-02-26%20at%2014.12.25.png?alt=media" alt=""><figcaption></figcaption></figure>

### Webhook Action

When an alert containing a Webhook action is triggered, the Webhook action sends a **POST** request to the selected url, with a **JSON** body containing metadata about the errored execution, such as Workflow, Execution id, error message, and more:

```json
{
  "status": "error",
  "id": 72367362,
  "source": "web",
  "user_id": 9000,
  "airops_app_id": 9999,
  "output": null,
  "error_code": "SENSITIVE_CONTENT",
  "error_message": "Content contains sensitive data"
}
```
