> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/fr/votre-espace-de-travail/monitoring/alerts.md).

# Alertes

Recevez des alertes via Slack ou un webhook entrant lorsque votre workflow échoue

Les alertes vous permettent de recevoir des notifications dans Slack ou via un webhook entrant lorsque votre Workflow renvoie une erreur.

## Comment créer une alerte

Pour créer une alerte, suivez ces étapes :

1. Publiez votre Workflow afin de créer une alerte
2. Cliquez sur **Surveiller > Alertes**
3. Cliquez sur **Ajouter une alerte**
4. Nommez votre alerte
5. Choisissez les Workflows pour lesquels vous souhaitez être notifié
6. Choisissez comment vous souhaitez être notifié :
   * Pour recevoir l'alerte via un Webhook entrant : cliquez sur **Ajouter** **Action >** **Webhook** et fournissez l'URL où vous recevrez une requête POST avec les données de l'erreur
   * Pour recevoir l'alerte via Slack : cliquez sur **Ajouter une action > Slack** et sélectionnez le canal Slack où vous souhaitez recevoir les notifications

<figure><img src="https://344527547-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>

### Action Slack

Lorsqu'une alerte contenant une action Slack est déclenchée, l'action Slack envoie un message au canal sélectionné incluant le nom du Workflow, le message d'erreur et un lien vers l'exécution :

<figure><img src="https://344527547-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>

### Action Webhook

Lorsqu'une alerte contenant une action Webhook est déclenchée, l'action Webhook envoie une **POST** requête à l'URL sélectionnée, avec un **JSON** corps contenant des métadonnées sur l'exécution en erreur, telles que le Workflow, l'ID d'exécution, le message d'erreur, et plus encore :

```json
{
  "status": "erreur",
  "id": 72367362,
  "source": "web",
  "user_id": 9000,
  "airops_app_id": 9999,
  "output": null,
  "error_code": "SENSITIVE_CONTENT",
  "error_message": "Le contenu contient des données sensibles"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/fr/votre-espace-de-travail/monitoring/alerts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
