Slack Integration
The TestRelic Slack App brings Ask AI, scheduled QA digests, and dashboard share-back into the channels where your team already works. Type /testrelic to ask anything, pin a weekly digest to #qa-leads, or push any artifact from the web app to Slack in one click.
The Slack App talks to Ask AI, which is part of the Growth plan. See Plans & Billing. The slash command will respond with a plan-upgrade prompt if your org is on Starter.
What the integration enables
- Slash commands in any channel —
/testrelic <prompt>runs the prompt through Ask AI and threads the response under your message, with charts, deep links, and follow-up actions. - Scheduled QA digests — Pin recurring summaries (weekly flaky digest, Monday sprint review, nightly regression report) to any channel; cards render inline with metric tiles, top offenders, and a "View full dashboard" deep link.
- Share-back from the web app — One click on any Ask AI artifact — dashboard, test plan, QA report, stakeholder deck — sends a rich Slack card to the channel of your choice.
- Failure notifications — Optional alerts when monitoring quality gates fail, with the failing test case, stack trace summary, and a "Open in TestRelic" button.
- AI-aware threading — Replies in the same thread are treated as a single Ask AI conversation, so follow-ups inherit
@repo,@test_run, and other context from the original prompt.
Installing the Slack App
- Open Settings → Integrations in the TestRelic web app and 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 with the integration showing Connected.
- (Optional) Click Configure default channels to set channels for failure alerts and digests.
You can also install from the Slack App Directory. The first slash command from any user will prompt them to link their Slack identity to a TestRelic account.
Permissions and scopes
The Slack App requests these OAuth scopes:
| Scope | Why it's needed |
|---|---|
commands | Register the /testrelic slash command |
chat:write | Post threaded replies, digests, and share-back cards |
chat:write.public | Post into channels the app isn't a member of (for failure alerts) |
users:read.email | Match a Slack user to their TestRelic account on first use |
files:write | Attach generated reports and slides as Slack files |
incoming-webhook | Receive a webhook URL for the default channel chosen at install |
User prompts and responses are stored in the same governed Ask AI conversation history as the web app — they are not used to train shared models.
Slash commands
The Slack App ships a single command: /testrelic. Everything after the command name is treated as natural language, the same as the Ask AI composer.
Basic prompts
/testrelic which tests broke after yesterday's deploy?
The app replies in-thread with a regression summary card: failing test cases, the most likely root cause, affected modules, and a button to open the run in the web app.
/testrelic show me the flakiest tests in the checkout suite over the last 7 days
Returns a card with a sparkline per offender, retry counts, and a "Pin as weekly digest" action.
Scoping prompts with TestRelic context
You can use the same @ shortcuts that work in the web composer:
/testrelic summarize failures in @run-20260518-prod and tell me which are infra vs product
/testrelic generate a sprint review deck for @repo:web-app covering the last 14 days
When the response includes a presentation, report, or dashboard artifact, the app uploads it as a Slack file and posts a preview card.
Threaded follow-ups
Replying in the thread continues the same Ask AI conversation:
/testrelic which tests broke after yesterday's deploy?
↳ "and which of those have been failing for more than a sprint?"
↳ "open a Jira ticket for the top 3"
The third message uses your connected Jira integration to file tickets without leaving Slack.
Scheduled QA digests
Digests are recurring, AI-generated summaries that post on a cron schedule to a channel of your choice.
Creating a digest
From the web app:
- Open Ask AI, run the prompt you want to schedule (e.g. "weekly flaky digest for last 7 days").
- In the artifact toolbar click Share → Schedule to Slack.
- Pick the destination channel, choose a cadence (daily / weekly / monthly), set the time and timezone, and click Schedule.
From Slack:
/testrelic schedule a weekly flaky digest to this channel every Monday 9am
Managing digests
- View all scheduled digests at Settings → Integrations → Slack → Schedules.
- Pause, edit cadence, or change the destination channel inline.
- Audit log entries record who created, paused, or deleted each schedule.
What digests look like
Every digest is a Slack card with three sections:
- Headline metrics — three stat tiles (e.g. Pass Rate, Flaky %, MTTR) computed from the digest's time window.
- Top offenders — top 3–5 entities relevant to the prompt (flakiest tests, slowest suites, most-recent regressions), each with retry counts or trend deltas.
- Deep link — "View full dashboard" button that opens the equivalent Ask AI artifact in the web app, with the same time window and filters.
Share-back from the web app
Every Ask AI artifact in the web app has a Share → Slack action.
- Generate the artifact in the Ask AI chat (dashboard, report, test plan, deck, or chart).
- Click Share → Slack in the artifact toolbar.
- Pick the channel and add an optional message.
- The card is posted with metric snapshots, a preview thumbnail (for decks and reports), and a "Open in TestRelic" deep link.
Shared cards remain queryable from Slack search and can be re-shared into other channels.
Failure alerts
Connect monitoring quality gates to Slack to get a notification the moment a gate fails:
- Go to Monitoring → Quality Gates and pick a gate.
- Under Notifications, click Add Slack channel and select the destination.
- Failure alerts include the failing test case, the gate threshold that was crossed, and an Open in TestRelic button. Replies in the thread can be
/testrelicprompts to ask for a root-cause analysis.
Sample use cases
Daily standup helper
Run during standup to anchor the conversation in real numbers:
/testrelic what's the test pass rate trend for the last 5 days, and any new flaky tests this morning?
The card surfaces three stat tiles plus a list of overnight regressions, so engineers can divide work before the meeting ends.
Triage a noisy alert
When a quality gate alert fires:
- Click the Open in TestRelic button to confirm the failure is real.
- Reply in the alert thread:
/testrelic was this flake or a real regression? - The AI inspects retry patterns, comparable past failures, and CI metadata, and returns a verdict with confidence.
Sprint review one-liner
The day before sprint review, a scheduled digest posts to #engineering-leads:
/testrelic generate a 4-slide sprint review covering test coverage, flakiest tests,
new regressions, and MTTR for the last 14 days
The card uploads the deck as a Slack file. Stakeholders read it in Slack; engineers open the artifact in TestRelic for drill-down.