Slack Integration

Ask TestRelic AI from Slack with /testrelic, DMs and @mentions, set up alerts, unfurl TestRelic links, and add TestRelic steps to Slack workflows.

The TestRelic Slack App brings Ask AI into the channels where your team already works. Type /testrelic ask to ask anything, DM the bot or @TestRelic it in a channel, set up monitoring alerts, and paste TestRelic links that unfurl into preview cards.

/testrelic prompt
Slack
TestRelic Ask AI
Tool calls on your run data
Threaded reply with charts and links

Growth plan required

The Slack App talks to Ask AI, which is included in every paid cloud plan (Growth and up). See Plans & Billing for details. Slack turns go through the same subscription and AI token checks as the web app.

What the integration enables

  • Slash command — /testrelic ask <question> runs the question through Ask AI and replies in a thread under it.
  • DMs and @mentions — DM the bot, or @TestRelic it in any channel it's a member of. Each thread is one Ask AI conversation, so follow-ups in the thread keep their context.
  • Assistant pane — In Slack's AI assistant split view, TestRelic greets you with suggested prompts such as "Why did the last run fail?", "Show flaky tests this week", "Investigate latest alert" and "Coverage gaps".
  • Alerts — /testrelic alert opens the alert policy form, and Slack is one of the alert notification channel types.
  • Link unfurls — Paste a TestRelic link to a repository, run, test case, Ask AI conversation or shared artifact and it unfurls into a preview card (for linked users, scoped to your organization).
  • Reactions — On messages the bot posted: :eyes: starts an Ask AI investigation in the thread, and :white_check_mark: posts an acknowledgement.
  • App Home — The app's Home tab shows whether your Slack identity is linked to TestRelic.
  • Workflow Builder steps — Add TestRelic steps to Slack workflows (see Workflow steps).

Installing the Slack App

  1. Open Settings → Integrations in the TestRelic web app and, on the Marketplace tab, click Connect on the Slack card.
  2. You'll be redirected to Slack to choose the workspace and grant scopes (see Permissions).
  3. After approval, you're returned to TestRelic and Slack appears on the Connected tab as Connected, with Reinstall and Disconnect Slack.

If the card reads Unavailable, the Slack app is not enabled on your environment — contact your administrator.

Linking Slack users

Each Slack user is matched to a TestRelic account in your organization — automatically, when their Slack email matches a TestRelic account. Otherwise, /testrelic link gives them a link to open from a signed-in TestRelic browser session.

Permissions and scopes

The Slack App requests these bot scopes at install:

ScopeWhy it's needed
commandsRegister the /testrelic slash command
chat:writePost threaded replies and cards
app_mentions:readAnswer when someone @TestRelics the bot in a channel
im:history, im:read, im:writeHold DM conversations with the bot
users:read, users:read.emailMatch a Slack user to their TestRelic account

User prompts and responses are stored in the same governed Ask AI conversation history as the web app.

Slash commands

The Slack App ships one command, /testrelic, with these subcommands:

CommandWhat it does
/testrelic ask <question> (or /testrelic a …)Ask TestRelic AI a question in this channel. Text with no subcommand is treated as a question too.
/testrelic alertOpen the alert policy form to set up a monitoring alert.
/testrelic linkConnect your Slack identity to TestRelic.
/testrelic help (or /testrelic alone)Show the help card.

Basic prompts

Channel: #qa-leads
/testrelic ask which tests broke after yesterday's deploy?

The app posts your question and replies in-thread with the Ask AI answer, with deep links into the web app.

Channel: #checkout-team
/testrelic ask show me the flakiest tests in the checkout suite over the last 7 days

Threaded follow-ups

Replying in the thread with an @TestRelic mention continues the same Ask AI conversation:

/testrelic ask which tests broke after yesterday's deploy?
   ↳ "@TestRelic and which of those have been failing for more than a sprint?"
   ↳ "@TestRelic open a Jira ticket for the top 3"

The third message can use your connected Jira integration without leaving Slack.

Alert notifications

To send TestRelic alerts to Slack, add a Slack notification channel (a Slack incoming webhook URL and the channel name) under Alerts, then route alert policies to it. Notification channels are shared across your organization. You can also run /testrelic alert in Slack to open the alert policy form.

Workflow steps

The app adds these steps to Slack's Workflow Builder:

StepWhat it does
Query failing TestRelic testsReturns failure stats and per-run details for a repo since a given date (default: the last 24 hours).
Post TestRelic health digestPosts a per-repo Test Health summary in a channel and publishes a canvas with it (default window: 1 week).
Track a failing run in TestRelic ListsAppends a row to the workspace's TestRelic Failing Runs list.
Subscribe channel to daily TestRelic digestSchedules a 09:00 digest message in a channel.

Sample use cases

Daily standup helper

/testrelic ask what's the test pass rate trend for the last 5 days, and any new flaky tests this morning?

Triage a noisy alert

  1. Open the alert in TestRelic to confirm the failure is real.
  2. Ask in Slack: /testrelic ask was the latest checkout failure a flake or a real regression? — or react with :eyes: on a TestRelic message to start an investigation in its thread.

Weekly health digest

Build a Slack workflow that runs every Monday and uses Post TestRelic health digest for your main repo, so #engineering-leads gets the summary and canvas without anyone asking.

Conversation memory and privacy

  • Slack conversations are Ask AI conversations, one per Slack thread.
  • A channel thread is shared: any linked member of your TestRelic org can mention the bot in it to continue the same conversation.
  • Link unfurls only show data to Slack users linked to a TestRelic account in the same organization; anyone else gets a generic "open in TestRelic" card.
  • Channel messages are not read by the bot unless they mention it.

Troubleshooting

The Slack user invoking the command isn't yet linked to a TestRelic account. Run /testrelic link and open the link from a signed-in TestRelic browser session. Linking is one-time per Slack user.

"I can't post in #channel yet — I'm not a member"

The bot can only post in channels it's a member of. Use /invite @TestRelic in the channel, then run the command again.

Reinstalling

Use Reinstall on the Slack card under Settings → Integrations → Connected.

Disconnecting

  1. Navigate to Settings → Integrations.
  2. Click Disconnect Slack on the Slack card and confirm.

A Slack workspace admin can also remove the app from Slack; TestRelic marks the integration uninstalled when Slack reports it.

Was this page helpful?

On this page