Slack Multi-Workspace OAuth
Bike4Mind supports connecting multiple Slack workspaces through OAuth. Each workspace gets its own bot token, allowing the Bike4Mind bot to respond to messages in any connected workspace.
For Workspace Admins: Installing the Bot
Step 1: Start the Installation
- Navigate to
/integrations/slack/installin your Bike4Mind instance - Click "Add to Slack"
Step 2: Authorize in Slack
- You'll be redirected to Slack's authorization page
- Select the workspace you want to connect
- Review the permissions requested
- Click "Allow"
Step 3: Installation Complete
After authorization, you'll be redirected to a success page confirming the installation. The bot is now ready to use in your workspace.
Using the Bot
Once installed, you need to invite the bot to channels where you want to use it.
Step 1: Invite the Bot to a Channel
Before the bot can respond in a channel, you must invite it:
- Open the channel where you want to use the bot
- Type
/invite @Bike4Mind Botand press Enter
The bot will now be able to see and respond to messages in that channel.
Step 2: Interact with the Bot
Once invited, mention the bot to start chatting:
@Bike4Mind Bot hello
Type @agent help to see all available commands and capabilities.
Direct Messages
You can also DM the bot directly without inviting it to any channel - just find "Bike4Mind Bot" in your DM list and send a message.
For Admins: Managing Workspaces
Viewing Connected Workspaces
- Go to Admin → Slack Workspaces tab
- View all connected workspaces with:
- Workspace name
- Team ID
- Bot name
- Installation date
- Status (Active/Inactive)
Deactivating a Workspace
If you need to disconnect a workspace:
- Go to Admin → Slack Workspaces
- Find the workspace in the table
- Click the trash icon in the Actions column
- Confirm deactivation
Once deactivated:
- The bot will stop responding to messages from that workspace
- The workspace can be reconnected by reinstalling via OAuth
Reactivating a Workspace
To reconnect a previously deactivated workspace:
- Have a workspace admin go to
/integrations/slack/install - Complete the OAuth flow again
- The workspace will be reactivated with a fresh token
Troubleshooting
Bot Not Responding
- Check workspace status: Go to Admin → Slack Workspaces and verify the workspace is "Active"
- Verify bot is in channel: The bot must be invited to channels to receive messages
- Check for mentions: In channels, the bot only responds to direct mentions or agent commands
"Workspace not connected" Error
This means the workspace hasn't been installed via OAuth. Have a workspace admin complete the installation at /integrations/slack/install.
Reinstallation Required
If the bot token becomes invalid (e.g., permissions changed, app reinstalled in Slack), you may need to:
- Deactivate the workspace in Admin → Slack Workspaces
- Reinstall via OAuth at
/integrations/slack/install
Security Notes
- Each workspace has its own isolated bot token
- Tokens are stored securely and excluded from normal database queries
- Deactivating a workspace immediately revokes bot access
- OAuth flow includes CSRF protection via signed state tokens
Related Features
- Organization Slack Integration - Org-level Slack workspace setup
- Slack AI Model Configuration - Configure AI models per channel and org
- GitHub Slack Notifications - Get GitHub notifications in Slack
- Organizations & Teams - Manage your organization