---
name: slack-notify
description: Send messages, manage channels, search conversations, and post formatted notifications to Slack. Supports blocks, attachments, threads, and scheduled messages.
---

# Slack Notify

Send messages and manage Slack workspace interactions via the Slack Web API.

## Authentication

```bash
export SLACK_BOT_TOKEN="xoxb-your-token"
export SLACK_SIGNING_SECRET="your-signing-secret"
```

## Sending Messages

```
Post to #engineering:
  "Deployment to production completed ✅
  Version: v2.1.0
  Duration: 4m 32s
  Status: All health checks passing"
```

Rich blocks:

```
Post to #alerts with blocks:
  Header: "🚨 P1 Alert: Payment Service Down"
  Body: "Error rate: 45% | Affected users: ~2,300"
  Actions: [Acknowledge] [View Runbook] [Page On-call]
```

## Thread Replies

```
Reply in thread to message TS=1712345678.123456 in #incidents:
  "Root cause identified: database connection pool exhausted.
   Fix deployed. Monitoring for 30 minutes before resolving."
```

## Scheduled Messages

```
Schedule message to #standup at 9:00 AM Monday:
  "Reminder: Sprint planning at 10 AM. Please update your tickets."
```

## Channel Management

```
Create channel: #feature-launch-v2
Invite: alice@company.com, bob@company.com
Set topic: "Coordination channel for v2.0 launch week"
Archive #old-project after posting farewell message
```

## Search

```
Search Slack for "database migration" in #engineering last 30 days
Find messages mentioning @alice in #incidents this week
```

## File Uploads

```
Upload deployment log to #ops-logs
Upload screenshot to #bug-reports with message "Reproduces on iOS 17.4"
```
