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.
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
@TestRelicit 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 alertopens 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
- Open Settings → Integrations in the TestRelic web app and, on the Marketplace tab, click Connect on the Slack card.
- You'll be redirected to Slack to choose the workspace and grant scopes (see Permissions).
- 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:
| Scope | Why it's needed |
|---|---|
commands | Register the /testrelic slash command |
chat:write | Post threaded replies and cards |
app_mentions:read | Answer when someone @TestRelics the bot in a channel |
im:history, im:read, im:write | Hold DM conversations with the bot |
users:read, users:read.email | Match 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:
| Command | What 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 alert | Open the alert policy form to set up a monitoring alert. |
/testrelic link | Connect your Slack identity to TestRelic. |
/testrelic help (or /testrelic alone) | Show the help card. |
Basic prompts
/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.
/testrelic ask show me the flakiest tests in the checkout suite over the last 7 daysThreaded 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:
| Step | What it does |
|---|---|
| Query failing TestRelic tests | Returns failure stats and per-run details for a repo since a given date (default: the last 24 hours). |
| Post TestRelic health digest | Posts 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 Lists | Appends a row to the workspace's TestRelic Failing Runs list. |
| Subscribe channel to daily TestRelic digest | Schedules 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
- Open the alert in TestRelic to confirm the failure is real.
- 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
/testrelic asks you to link your account
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
- Navigate to Settings → Integrations.
- 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.
Related documentation
- Ask AI — full reference for the underlying chat interface
- AI Insights & Artifacts — what each artifact type looks like
- Jira Integration — for Jira follow-ups from Slack
- MS Teams — Ask AI in Microsoft Teams
- The Cloud Platform section — Growth plan limits and AI token quotas