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

# Slack Notifications

> Post a summary of every completed test run to a Slack channel of your choice.

![A TestSprite run summary posted in a Slack channel](https://mintcdn.com/testspriteinc/CImpC64Ju-sB5348/images/slack-overview.png?fit=max\&auto=format\&n=CImpC64Ju-sB5348\&q=85\&s=482556bd864d9e02c008b5a46c071b49)

TestSprite can post a summary to Slack every time a test run completes, so your team sees results without checking the dashboard. It works for every kind of run: manual, scheduled, GitHub-triggered, or started from the CLI.

Setup happens in two places:

1. **Connect Slack once per workspace** — links your TestSprite workspace to a Slack workspace (workspace Owner/Admin only).
2. **Pick a channel per project** — each project chooses its own channel and switches notifications on or off independently.

> [!NOTE]
>
> Slack notifications are available on every plan. Connecting and disconnecting Slack requires the workspace **Owner** or **Admin** role.

## Step 1 — Connect Slack (once per workspace)

![Workspace Integrations page with the Slack row](https://mintcdn.com/testspriteinc/CImpC64Ju-sB5348/images/slack-connect.png?fit=max\&auto=format\&n=CImpC64Ju-sB5348\&q=85\&s=796c5bc7a2cb08e33abb488d9d198cd0)

**1. Open Integrations**

In your workspace settings, go to <kbd>Workspace Settings</kbd> → <kbd>Connections</kbd> → <kbd>Integrations</kbd> and click the **Slack** row, then <kbd>Connect With Slack</kbd>.

**2. Authorize TestSprite**

A Slack authorization window opens. Approve the requested permissions, which only let TestSprite list channels and post messages:

| Permission | Why |
| - | - |
| `channels:read` | List your public channels so you can pick one |
| `groups:read` | List private channels the bot has been invited to |
| `chat:write` | Post run summaries |
| `chat:write.public` | Post to public channels without needing an invite |

**3. Done — the workspace is linked**

Back in TestSprite, the Slack page shows **Connected Workspace** with your Slack team's name. One Slack workspace is linked per TestSprite workspace; every project in it can now pick a channel.

## Step 2 — Choose a Channel for Each Project

![Notifications & Ticketing settings with the Slack channel picker open](https://mintcdn.com/testspriteinc/CImpC64Ju-sB5348/images/slack-choose-channel.png?fit=max\&auto=format\&n=CImpC64Ju-sB5348\&q=85\&s=c72b2745ded022b0280ece08daaf2163)

**1. Open the project's notification settings**

In the project's sidebar, go to <kbd>Project Settings</kbd> → <kbd>Notifications & Ticketing</kbd>. The Slack card shows the connected workspace.

**2. Pick a channel**

Under **Channel**, select where summaries should be posted. Public channels appear as `#channel-name`; private channels show a lock icon.

**3. Turn on notifications and save**

Enable **Notify on test run completion** and click <kbd>Save changes</kbd>. From now on, every completed run of this project posts a summary to that channel.

## Public vs. Private Channels

Public channels work immediately. **Private channels need one extra step**: the TestSprite bot can't see a private channel until it's invited.

> [!WARNING]
>
> In Slack, open the private channel and run `/invite @TestSprite` **first**. The channel won't appear in TestSprite's channel list until you do; after inviting, switch back to the TestSprite tab and the list refreshes automatically.

In the private channel, type `/invite` and choose **Invite someone to this channel**:

![Typing /invite in a private Slack channel and choosing Invite someone to this channel](https://mintcdn.com/testspriteinc/CImpC64Ju-sB5348/images/slack-invite.png?fit=max\&auto=format\&n=CImpC64Ju-sB5348\&q=85\&s=2cb0f4a98b0643500b718edbd654ad6b)

Then search for the TestSprite app and add it:

![Selecting the TestSprite app in Slack's Add people dialog](https://mintcdn.com/testspriteinc/CImpC64Ju-sB5348/images/slack-search.png?fit=max\&auto=format\&n=CImpC64Ju-sB5348\&q=85\&s=ee0fcdffdd85c1ed3755c7826eba6926)

## What You'll Receive

A summary is posted **once per completed test run** — whether the run was started manually, by a schedule, by a GitHub event, or from the CLI. There is currently no "failures only" filter; if the project's toggle is on, every run reports.

### What's in a Notification Card

| Section | Contents |
| - | - |
| Header | Project name and the headline result — ✅ *"all passed"*, or how many of the total failed or were blocked |
| Run summary | An AI-written narrative of what happened in the run |
| Results line | Passed / failed / blocked / total counts, plus a **View full results** link back to the run in TestSprite |
| Failing tests | Up to 10 failed or blocked test titles (then *"…and N more"*) |
| Screenshots | Up to 5 screenshots, failures first |

> [!TIP]
>
> **Choosing channels well beats filtering.** Since every run posts, route noisy projects (frequent scheduled runs) to a dedicated channel like `#testsprite-monitoring`, and keep release-critical projects in your team channel where a failure gets seen immediately.

## Change Channel, Disable, or Disconnect

* **Change a project's channel or turn its notifications off**: back in the project's <kbd>Project Settings</kbd> → <kbd>Notifications & Ticketing</kbd>, pick a different channel or flip **Notify on test run completion** off, then <kbd>Save changes</kbd>.
* **Disconnect Slack from the whole workspace**: go to <kbd>Workspace Settings</kbd> → <kbd>Connections</kbd> → <kbd>Integrations</kbd> → <kbd>Slack</kbd> and click <kbd>Disconnect</kbd> (Owner/Admin only). All projects stop posting immediately.

> [!NOTE]
>
> Disconnecting keeps each project's channel choice. If you reconnect the same Slack workspace later, projects resume posting to their previously selected channels.

## Troubleshooting

> [accordion] My private channel doesn't show up in the channel list
>
> The bot hasn't been invited yet. In Slack, open the channel and run `/invite @TestSprite`, then return to the TestSprite tab — the list refreshes when the tab regains focus.

> [accordion] Notifications stopped arriving
>
> Check three things in order: the project's **Notify on test run completion** toggle is still on; the workspace's Slack connection still shows **Connected** under <kbd>Workspace Settings</kbd> → <kbd>Connections</kbd> → <kbd>Integrations</kbd>; and, for a private channel, the `@TestSprite` bot is still a member (a bot removed from the channel fails silently).

> [accordion] I can't click Connect With Slack
>
> Connecting requires the workspace **Owner** or **Admin** role. Members don't see <kbd>Integrations</kbd> at all.

## Where to Go Next

> [card] [Ticketing](https://docs.testsprite.com/web-portal/integrations/ticketing.md)
>
> Turn failed tests into tickets automatically

> [card] [Test Schedules](https://docs.testsprite.com/web-portal/maintenance/monitoring.md)
>
> Set up scheduled runs that report to Slack


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