Skip to main content

Slack notification setup guide

Follow these steps to connect a Slack channel to foreai so you receive run failure alerts directly in Slack.


Step 1 : Create an incoming webhook in slack

In Slack, you need to create an incoming webhook URL for the channel you want alerts posted to.

  1. Go to api.slack.com/apps and select your workspace app (or create one)
  2. Under Features, select Incoming Webhooks and toggle it on
  3. Click "Add New Webhook to Workspace"
  4. Choose the channel to post to and click "Allow"
  5. Copy the Webhook URL — you'll need it in Step 3

Step 2 : Open notification settings in foreai

In foreai, go to Settings → Notification. Click "Add Channel" to begin.

The Add Channel modal opens. Enter a name for the channel, then select "Slack" from the Type dropdown.

Add Channel modal — Slack type with webhook URL field


Step 3 : Paste the webhook URL

Paste the webhook URL copied from Slack into the Webhook URL field.


Step 4 : Save the channel

Click "Save". The Slack channel now appears in your foreai Notification settings and is ready to use.


Step 5 : Enable notifications per test suite

Notifications are off by default for every test suite. To enable them, open a test suite and click the bell icon in the top-right toolbar. A "Notification channels" popover lists all configured channels — click the Slack channel to select it.

Enable notifications per test suite


Done : Notifications active

A checkmark confirms the channel is active for this test suite. foreai will now post a Slack message whenever a run fails.

Slack channel selected in notification channels popover