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

# Send alerts and run events to Slack

> Register a Slack channel as a destination, subscribe a workspace and check the first delivery. An Admin configures the destination; a workspace owner with alert-management permission chooses the events.

Register a Slack channel as a destination, subscribe a workspace and check the first delivery. An Admin configures the destination; a workspace owner with alert-management permission chooses the events.

This guide sends events out of CORTEX. For starting work from an incoming webhook, see [Set up a schedule or webhook](https://docs.cortex-labs.ai/vantage/build-and-automate/schedule-or-webhook.md).

## Before you begin

You need an incoming webhook already configured for the intended Slack channel, an Admin to save its address as a secret, and permission to manage the workspace's alerts.

For alert notifications, you also need a published Forge condition. Workflow and ingestion run notifications do not need a condition watch.

## 1. Save the Slack address as a secret — Admin

Open **Console → Secrets** and save the incoming webhook address under a recognisable name, such as `slack-alerts-webhook`. Check that its source reads **Tenant key**.

The address contains a token. Enter it only in the secure secret form; use its secret name in the destination and keep its value out of chats and ordinary configuration.

## 2. Create the destination — Admin

Open **Forge → Automation → Destinations**, create a destination and choose **Webhook**. Give it a name workspace owners will recognise.

| Setting | Choose |
| - | - |
| Format | **Slack**. |
| Address is a secret | On; select the saved secret. |
| Method | **POST**. |
| Authentication | **None**; the credential is in the address. |
| Signature | **No signature**. |
| Highest classification | The permitted ceiling for this destination. |
| Allowed workspaces | The workspaces permitted to send to the channel. |

An empty allowed-workspace list permits every workspace. Set an explicit list when the channel is intended for a limited audience.

Leave timeout and rate settings at their defaults unless your integration needs different limits.

## 3. Publish and test — Admin

Publish the reviewed destination. Resolve missing or revoked secrets if publication is refused.

Open its **Deliveries** tab and select **Test**. Use event type `webhook.test`, then **Send test**. Inspect the outcome, HTTP status and time, and confirm **A test from Cortex** appears in the channel.

The test dialog can send example data for other listed event types. A test proves this delivery path worked; it does not create the workspace subscription.

## 4. Subscribe the workspace — workspace owner

Open the workspace's **Alerts → Webhooks** tab. Under **Subscriptions**, select **New subscription**.

Choose the published endpoint and at least one event type, then inspect the filters:

| Field | What it controls |
| - | - |
| Endpoint | The destination; it cannot be changed on this subscription later. |
| Event types | Which events are sent. |
| Watch | All watches or one watch; limits alert events only and cannot be changed later. |
| Minimum severity | All severities or the selected threshold. |
| Repeat interval | For alert reminders; 1–168 hours, with a default of 4. |

Create the subscription and check that it is enabled. For workflow or ingestion run messages, inspect the next relevant event and delivery.

## 5. Configure an alert watch, if needed

Create a watch using the published condition version and intended workspace, collection or dataset scope. A new watch starts off.

Choose **Alert** mode for the first grouped match and subsequent group updates, or **Feed** for updates limited to one delivery per alert in five seconds. Feed can be noisy in a chat channel.

Create the enabled subscription before sending the watch's test. Inspect the test delivery, then enable the watch deliberately.

The watch evaluates input recorded after enablement and runs as its creator. Follow [Configure a condition watch and inspect alerts](https://docs.cortex-labs.ai/vantage/build-and-automate/condition-watch.md) for evidence and grouping rules.

## 6. Inspect delivery

Check both the workspace delivery table and the Slack channel. Alert messages carry a condition title, summary and lifecycle state. Run messages identify the workflow or ingestion run and outcome.

Messages are plain text, limited to 4,000 characters. The webhook address determines the Slack channel, name and icon. Mass mentions such as `@here` and `@channel` are turned into plain text.

A destination's classification ceiling still applies. Workflow and agent messages carry their own classification; messages above the ceiling are skipped.

## Troubleshoot

| Symptom | What to check |
| - | - |
| Publication refused | Secret existence and current status. |
| Endpoint missing from the subscription picker | Publication, revocation and allowed workspaces. |
| No message | Subscription state, selected event types, severity filter and watch state. |
| Skipped delivery | Classification ceiling or a newer update replacing it. |
| Invalid token or no service | Replace the revoked Slack address through a new secret version. |
| Channel missing or archived | Correct the channel in Slack before resending. |
| Endpoint disabled | Resolve the cause, then enable it in the destination's health panel. |

Successful 2xx responses mark delivery succeeded. Transient failures and rate limits are retried; some authentication or missing-endpoint responses pause or disable the destination. Inspect the recorded response and health state before resending.

Admins can inspect health and use **Resend failed since** on the destination's Deliveries tab. Workspace owners can inspect delivery details and redeliver an individual message. Retention limits how long redelivery remains available.

## Maintain the connection

To rotate the address, save a new Slack incoming webhook address as a new version of the same secret. Check the next delivery. Review the allowed workspaces and channel audience when responsibilities change.

Workflows and agents can send messages through the destination when their workspace has the appropriate `workflow.message` or `agent.message` subscription.

For central secret and destination lifecycle behaviour, see [Manage secrets and destinations](https://docs.cortex-labs.ai/administration/configuration-and-usage/secrets-and-destinations.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.