Overview
Slack tool allows you to send messages, read channels, and interact with Slack workspaces. The user asks to post or read messages; the agent calls Slack and returns the outcome.Installation
Environment Variables
Quick Start
Usage with Agent
Available Methods
send_message(channel, text)
Send a message to a channel.get_channels()
List available channels.get_history(channel, limit=10)
Get channel message history.Common Errors
| Error | Cause | Solution |
|---|---|---|
SLACK_BOT_TOKEN not configured | Missing token | Set environment variable |
channel_not_found | Invalid channel | Check channel name |
not_in_channel | Bot not in channel | Invite bot to channel |
How It Works
Best Practices
Store the bot token securely
Store the bot token securely
Read the Slack token from the environment, never hard-code it.
Scope bot permissions
Scope bot permissions
Grant only the channel and message scopes the task requires.
Handle rate limits
Handle rate limits
Slack returns HTTP 429 under load. Retry with backoff so the agent stays responsive.
Related Tools
Discord
Discord messaging
Telegram
Telegram bot
Email notifications

