Slack Integration for Runbooks
Harness AI SRE supports two methods of Slack integration: Organization-level and Connector-based. This guide covers both approaches and their use cases.
Overview
Slack integration enables your runbooks to:
- Send automated notifications
- Create incident-specific channels
- Manage threaded discussions
- Coordinate response teams
- Track incident updates
Organization-Level Integration
Setup
- Navigate to Settings → Organization
- Select Slack Settings
- Click Connect Slack
- Follow the OAuth flow to authorize Harness
Features
- Global Slack workspace access
- Unified authentication
- Centralized channel management
- Cross-project notifications
Permissions Required
- Slack Workspace Admin access
- Harness Organization Admin role
- Slack bot permissions:
- channels:manage
- chat:write
- groups:write
- im:write
 
Connector-Based Integration
Setup
- Navigate to Settings → Connectors
- Click + New Connector
- Select Slack
- Configure workspace access
- Set channel permissions
Features
- Project-specific access
- Custom bot settings
- Granular permissions
- Independent configurations
Permissions Required
- Slack Workspace Member
- Harness Project Admin role
- Selected channel access
Using Slack in Runbooks
Channel Creation
- Action Type: Slack
  Operation: Create Channel
  Name: "incident-[incident.id]"
  Description: "Channel for incident [incident.id]"
  AddUsers: ["@oncall", "@sre-team"]
Notifications
- Action Type: Slack
  Operation: Send Message
  Channel: "#[incident.channel]"
  Message: "🚨 [incident.severity] incident detected in [incident.service]"
  Blocks:
    - Type: section
      Text: "*Impact*: [incident.description]"
Thread Management
- Action Type: Slack
  Operation: Create Thread
  Channel: "#[incident.channel]"
  Message: "Updates for incident [incident.id]"
  ThreadUpdates: true
Best Practices
Channel Naming
- Use consistent prefixes
- Include incident IDs
- Keep names descriptive
- Follow workspace conventions
Message Structure
- Use clear formatting
- Include severity indicators
- Link to relevant dashboards
- Mention appropriate teams
Permissions
- Use least privilege access
- Regularly audit permissions
- Document access requirements
- Monitor usage patterns
Common Use Cases
Incident Coordination
- Create incident channel
- Notify stakeholders
- Share initial assessment
- Track response actions
Status Updates
- Send periodic updates
- Track resolution progress
- Share metrics and graphs
- Document action items
Post-Incident
- Archive incident channel
- Share incident summary
- Schedule retrospective
- Document lessons learned
Troubleshooting
Common Issues
- 
Authentication Failures - Verify OAuth tokens
- Check permission scopes
- Confirm workspace access
 
- 
Channel Creation Errors - Check naming conventions
- Verify channel limits
- Confirm bot permissions
 
- 
Message Failures - Validate channel existence
- Check message formatting
- Verify rate limits