Overview
Slack integration brings Praxos into your workspace for seamless team collaboration.Features
- Channel and direct messaging
- Slash commands
- Interactive components (buttons, menus)
- File sharing
- Thread replies
- Rich text formatting
- Event subscriptions
Setup
1. Create Slack App
- Go to api.slack.com/apps
- Click “Create New App”
- Choose “From scratch”
- Name your app and select workspace
2. Configure OAuth & Permissions
Add these bot token scopes:chat:write- Send messageschat:write.public- Send to channels without joiningchannels:history- View channel messageschannels:read- View channelsgroups:history- View private channel messagesim:history- View DM historyim:write- Send DMsusers:read- View usersfiles:write- Upload filescommands- Create slash commands
3. Enable Events
Subscribe to bot events:message.channelsmessage.groupsmessage.imapp_mention
https://your-domain.com/slack/events
4. Create Slash Commands
Add commands at “Slash Commands” section:/ask- Ask Praxos a question/schedule- Schedule a task/summarize- Summarize conversation
5. Install to Workspace
- Go to “Install App”
- Click “Install to Workspace”
- Authorize the app
- Copy the Bot User OAuth Token
6. Configure Praxos
Add to.env:
Usage
In Channels
Direct Messages
Slash Commands
Interactive Features
Action Buttons
Select Menus
Modal Dialogs
For complex interactions:- Form submissions
- Multi-step workflows
- Rich data input
Configuration
Environment Variables
Workspace Settings
Configure per workspace:- Default channels
- Notification preferences
- User permissions
- Rate limit handling
Security
Request Verification
Praxos verifies all Slack requests:- Signing secret validation
- Timestamp verification
- Replay attack prevention
OAuth Flow
For multi-workspace deployments:- OAuth installation flow
- Token management
- Workspace isolation
Troubleshooting
Messages Not Sending
- Verify bot is in channel
- Check token permissions
- Review rate limits
Events Not Received
- Confirm event subscriptions
- Check webhook URL is accessible
- Verify SSL certificate
Slash Commands Failing
- Check command is registered
- Verify Request URL is correct
- Review command permissions
Rate Limits
Slack rate limits:- Tier 1: 1 request per second
- Tier 2: 20+ requests per minute
- Tier 3: 50+ requests per minute
- Tier 4: 100+ requests per minute
Praxos automatically handles rate limiting with queuing and retry logic.
Best Practices
- Use threads for long conversations
- Leverage blocks for rich formatting
- Implement graceful error handling
- Cache frequently accessed data
- Monitor API usage