> 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/pt/o-seu-espaco-de-trabalho/monitoring/alerts.md).

# Alertas

Receba alertas via Slack ou um webhook de entrada quando o seu Workflow falhar

Os alertas permitem que receba notificações no Slack ou através de um webhook de entrada quando o seu Workflow devolve um erro.

## Como Criar um Alerta

Para criar um alerta, siga estes passos:

1. Publique o seu Workflow para criar um alerta
2. Clique em **Monitor > Alertas**
3. Clique em **Adicionar Alerta**
4. Dê um nome ao seu alerta
5. Escolha os Workflows sobre os quais pretende receber notificações
6. Escolha como pretende ser notificado:
   * Para receber o alerta através de um Webhook de entrada: clique em **Adicione** **Ação >** **Webhook** e forneça o URL onde irá receber um pedido POST com os dados do erro
   * Para receber o alerta através do Slack: clique em **Adicionar Ação > Slack** e selecione o canal do Slack onde pretende receber notificações

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

### Ação do Slack

Quando um alerta que contém uma ação do Slack é acionado, a ação do Slack envia uma mensagem para o canal selecionado incluindo o nome do Workflow, a mensagem de erro e uma ligação para a execução:

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

### Ação de Webhook

Quando um alerta que contém uma ação de Webhook é acionado, a ação do Webhook envia um **POST** pedido para o URL selecionado, com um **JSON** corpo contendo metadados sobre a execução com erro, como Workflow, ID de execução, mensagem de erro e mais:

```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"
}
```


---

# 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/pt/o-seu-espaco-de-trabalho/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.
