Quick Start
1
Simple Usage
2
With Configuration
Configure signing secrets, Socket Mode, and event handlers — see sections below.
Configuration
Event Handlers
Message Handler
App Mention Handler
Reaction Handler
Rich Responses
With Blocks
Socket Mode (Development)
For local development without exposing a public URL:Webhook Mode (Production)
For production deployments:With Tools
Environment Variables
Slack App Setup
- Create a Slack App at https://api.slack.com/apps
- Enable Socket Mode or configure Event Subscriptions
- Add bot scopes:
chat:write,app_mentions:read,channels:history - Install to workspace
- Copy tokens to environment variables
Best Practices
Guidelines
Guidelines
- Use threads - Reply in threads to keep channels clean
- Handle errors gracefully - Return friendly error messages
- Rate limit - Respect Slack’s rate limits
- Log interactions - Track usage for debugging
Related
Agent
Core agent docs
Tools
Adding tools

