Slack Bot
Team communication through Slack's API.
When to Use
- User wants to send or read Slack messages
- User needs channel monitoring or alerts
- User wants to post status updates or reports
- User asks about team conversations
Procedure
- Verify Slack token is configured
- Identify target channel or user
- Perform the messaging operation
- Confirm delivery
Operations
- Send message to channel or DM
- Read recent messages from a channel
- React to messages with emoji
- Create and manage threads
- Post formatted blocks (rich text, buttons, etc.)
- Schedule messages for later delivery
- List channels and members
Message Formatting
Use Slack's Block Kit for rich messages:
- Text sections with markdown
- Dividers and headers
- Button actions
- Code blocks
Pitfalls
- Bot must be invited to channels to read/write
- Rate limits: 1 message per second per channel
- File uploads require files:write scope
- Thread replies need the parent message timestamp
Verification
- Message appears in target channel
- Reactions are visible on the message
- Scheduled messages show in Slack's scheduled list