> 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/es/tu-espacio-de-trabajo/monitoring/alerts.md).

# Alertas

Recibe alertas a través de Slack o de un webhook entrante cuando falle tu flujo de trabajo

Las alertas te permiten recibir notificaciones en Slack o mediante un webhook entrante cuando tu Workflow devuelve un error.

## Cómo crear una alerta

Para crear una alerta, sigue estos pasos:

1. Publica tu Workflow para crear una alerta
2. Haz clic en **Monitor > Alertas**
3. Haz clic en **Añadir alerta**
4. Asigna un nombre a tu alerta
5. Elige los Workflows sobre los que quieres recibir notificaciones
6. Elige cómo quieres recibir las notificaciones:
   * Para recibir la alerta mediante un Webhook entrante: haz clic en **Añadir** **Acción >** **Webhook** y proporciona la URL en la que recibirás una solicitud POST con los datos del error
   * Para recibir la alerta mediante Slack: haz clic en **Añadir acción > Slack** y selecciona el canal de Slack en el que quieres recibir las notificaciones

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

### Acción de Slack

Cuando se activa una alerta que contiene una acción de Slack, la acción de Slack envía un mensaje al canal seleccionado que incluye el nombre del Workflow, el mensaje de error y un enlace a la ejecución:

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

### Acción de Webhook

Cuando se activa una alerta que contiene una acción de Webhook, la acción de Webhook envía una **POST** solicitud a la url seleccionada, con un **JSON** cuerpo que contiene metadatos sobre la ejecución con error, como Workflow, id de ejecución, mensaje de error y más:

```json
{
  "estado": "error",
  "id": 72367362,
  "fuente": "web",
  "user_id": 9000,
  "airops_app_id": 9999,
  "salida": null,
  "código_de_error": "SENSITIVE_CONTENT",
  "mensaje_de_error": "El contenido contiene datos 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/es/tu-espacio-de-trabajo/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.
