Slack Integration
Once SailFish is connected to Slack, you can chat with the AI Agent directly in your Slack workspace. Suitable for international teams or teams using Slack overseas.
Prerequisites
- Slack workspace (free or paid)
- Workspace admin access (or have an admin install the app for you)
Setup Steps
Step 1: Create a Slack App
- Open Slack API
- Click “Create New App” → “From scratch”
- Fill in:
- App Name: e.g. “SailFish Agent”
- Workspace: Select your workspace
- Click “Create App”
Step 2: Configure Socket Mode
Socket Mode lets Slack push messages over WebSocket so you do not need a public URL:
- In the left menu, select “Socket Mode”
- Turn on Enable Socket Mode
- Create an App-Level Token:
- Token Name: e.g.
sailfish-socket - Scopes: select
connections:write - Click Generate
- Token Name: e.g.
- Note the generated token (starts with
xapp-...)
Step 3: Configure Event Subscriptions
- In the left menu, select “Event Subscriptions”
- Turn on Enable Events
- Under Subscribe to bot events, add:
| Event | Purpose |
|---|---|
message.im | Receive direct messages |
message.groups | Receive private channel messages |
app_mention | Trigger when @mentioned |
- Click “Save Changes”
Step 4: Configure OAuth Permissions
Under “OAuth & Permissions” → “Bot Token Scopes”, add:
| Permission | Purpose |
|---|---|
chat:write | Bot sends messages |
files:write | Bot sends files |
im:history | Read direct message history |
im:read | Read direct message list |
groups:history | Read private channel message history |
app_mentions:read | Read @mention messages |
Step 5: Enable App Home Messages
⚠️ This step is easy to miss. Without it, users will see “Messaging has been turned off for this app” when direct messaging the Bot.
- In the left menu, select “App Home”
- Enable Messages Tab
- Check Allow users to send Slash commands and messages from the messages tab
Step 6: Install to Workspace
- On the “OAuth & Permissions” page, click Install to Workspace
- Review the permission list and click “Allow” to authorize
- After installation, note the Bot User OAuth Token (starts with
xoxb-...)
Step 7: Connect SailFish
- Open SailFish → Settings → Instant Messaging
- Expand the “Slack” card
- Enter both tokens:
- Bot Token:
xoxb-...(from Step 6) - App Token:
xapp-...(from Step 2)
- Bot Token:
- Click “Connect”
- Wait until status shows ✅ “Connected”
Using It
Direct Chat
- In the Slack left sidebar, under “Apps”, find your Bot
- Click to open the Messages tab
- Send text messages directly
Channels
- Add the Bot to a channel
- In the channel, @SailFish Agent and then type your message
- The Bot will reply in the channel
Message Format
- What you send: Plain text messages
- Agent replies: mrkdwn format (Slack Markdown variant), supports bold, code blocks, links, etc.
- File sending: The Agent can send files to chats (up to 1GB—more generous than other IM platforms)
Example
You: Check the server disk usage
Agent: *Disk Usage Report*
```
Filesystem Size Used Avail Use%
/dev/sda1 100G 45G 55G 45%
/dev/sdb1 500G 180G 320G 36%
```
All partitions have sufficient space. ✅
FAQ
“Messaging has been turned off for this app”
- This is the most common issue; usually because Step 5 was not completed
- Go to Slack API → App Home, enable Messages Tab and check the option to allow users to send messages
Bot does not respond to messages
- Ensure Socket Mode is enabled (Step 2)
- Verify both Bot Token and App Token are entered correctly
- Verify
message.imis added under Event Subscriptions - Ensure SailFish shows “Connected”
Cannot see permission options during install
- Ensure all required permissions are added under “Bot Token Scopes” (Step 4)
- After adding permissions, reinstall the app (Reinstall App)
Bot does not reply in channels
- Ensure the Bot has been added to the channel (type
/invite @SailFish Agentin the channel) - Ensure the Bot is @mentioned in your message
- Ensure
app_mentionis added under Event Subscriptions