Slack Integration Setup Guide
This guide walks you through connecting Lathe Studio to Slack for notifications and team collaboration.
Prerequisites#
- Slack workspace
- Permission to install apps in your workspace
- Project admin access in Lathe Studio
Overview#
The Slack integration enables:
- Test Run Notifications: Get notified when test runs are completed
- Build Alerts: Receive alerts when builds are ready for testing
- Release Updates: Track release status changes
- Team Mentions: Notify team members when they're assigned to test
Connecting Slack#
Step 1: Install the Lathe Studio App
- In Lathe Studio, go to Project Settings > Integrations > Slack
- Click Connect to Slack
- You'll be redirected to Slack to authorize the app
- Select the channel where notifications should be posted
- Click Allow
Step 2: Configure Notifications
After connecting, configure which events trigger notifications:
| Event | Description | Default |
|---|---|---|
| Test Run Completed | When a test run is marked complete | Enabled |
| Test Run Submitted | When a tester submits results | Enabled |
| Build Created | When a new build is available | Enabled |
| Release Released | When a release is shipped | Enabled |
| Test Case Failed | When a test fails (immediate) | Disabled |
| Daily Summary | Daily digest of activity | Disabled |
Step 3: Test the Integration
- Complete a test run in Lathe Studio
- Check the configured Slack channel
- You should see a notification with test run details
Notification Format#
Test Run Completed
🧪 Test Run Completed: Smoke Tests - Build 245
Project: E-commerce Platform
Build: 245 (v2.4.1)
Release: March Sprint
Results:
✅ Passed: 42
❌ Failed: 3
⚠️ Blocked: 1
⏭️ Skipped: 4
View Run: https://lathestudio.dev/projects/.../runs/...
Build Ready for Testing
🔨 New Build Available: Build 246
Project: E-commerce Platform
Branch: main
Commit: a1b2c3d
This build needs to be assigned to a release for testing.
Assign to Release | View Build | Reject
Channel Configuration#
Project Channels
You can configure different Slack channels for different projects:
- Go to Project Settings > Integrations > Slack
- Click Add Channel
- Select the Slack channel
- Choose notification types for this channel
DM Notifications
Team members can receive direct messages for:
- Test assignments
- Mentions in test comments
- Release reminders
To enable:
- Each team member connects their Slack account in Profile Settings
- Select "Enable DM notifications"
Slash Commands#
Use Slack slash commands to interact with Lathe Studio:
| Command | Description |
|---|---|
/pt status | Show current test run status |
/pt runs | List active test runs |
/pt builds | Show recent builds |
/pt release | Show current release status |
Troubleshooting#
Notifications not appearing
- Verify the Lathe Studio app is installed in your workspace
- Check the bot is invited to the channel
- Ensure notification settings are enabled for the event type
- Verify the project is linked to the channel
Bot not responding to commands
- Check the bot is in the channel
- Verify the command syntax is correct
- Ensure your Slack account is linked to Lathe Studio
Rate limiting
Slack has rate limits for bot messages. If you see delays:
- Reduce notification frequency
- Disable non-critical notifications
- Use daily digests instead of real-time notifications
Security#
- OAuth tokens are encrypted at rest
- Lathe Studio only requests necessary permissions
- No message content is stored from Slack
- Users can disconnect at any time
- Workspace admins can revoke app access in Slack
Unlinking Slack#
To disconnect:
Organization Level
- Go to Organization Settings > Integrations > Slack
- Click Disconnect
- Confirm disconnection
Project Level
- Go to Project Settings > Integrations > Slack
- Click Remove Integration
- Or remove specific channels
Note: Removing Slack integration stops all notifications. Previously sent messages remain in Slack.
Advanced Configuration#
Custom Message Templates
Enterprise customers can customize notification messages:
- Go to Organization Settings > Integrations > Slack > Advanced
- Edit message templates using Liquid syntax
- Available variables:
{{project.name}},{{run.status}}, etc.
Webhook URLs (Enterprise)
For custom integrations:
- Create an incoming webhook in Slack
- Paste the URL in Project Settings > Integrations > Slack > Webhook
- Select events to send
For additional help, contact support.