Slack
Sonora connects to Slack to sync messages from your workspace channels, providing insights from team and customer conversations.
Prerequisites
- Slack workspace admin access
- Ability to install apps to your workspace
Setup Steps
1. Create a Slack App
- Go to api.slack.com/apps
- Click Create New App
- Choose From scratch
- Enter app name (e.g., “Sonora Integration”)
- Select your workspace
- Click Create App
2. Configure Bot Token Scopes
- In your app settings, go to OAuth & Permissions
- Under Bot Token Scopes, add these scopes:
channels:history- View messages in public channelschannels:read- View basic channel infogroups:history- View messages in private channels (optional)groups:read- View basic private channel info (optional)users:read- View users in the workspaceusers:read.email- View user email addresses
3. Install App to Workspace
- Go to OAuth & Permissions
- Click Install to Workspace
- Review the permissions and click Allow
- Copy the Bot User OAuth Token (starts with
xoxb-)
4. Invite Bot to Channels
For each channel you want Sonora to read:
- Open the channel in Slack
- Type
/invite @YourAppName - Or click the channel name → Integrations → Add apps
5. Connect in Sonora
- Go to Settings → Integrations in Sonora
- Click Add Integration → Slack
- Enter your credentials:
- Bot User OAuth Token
- Click Connect
Data Synced
Sonora syncs the following from Slack:
- Messages from invited channels
- Thread replies
- User information
- Channel metadata
Required Scopes Reference
| Scope | Purpose |
|---|---|
channels:history | Read messages from public channels |
channels:read | List public channels |
groups:history | Read messages from private channels |
groups:read | List private channels |
users:read | Get user information |
users:read.email | Get user email addresses |
Troubleshooting
Bot Not Seeing Messages
- Ensure the bot has been invited to the channel
- Verify the bot token has the required scopes
- Check that the channel isn’t archived
Authentication Errors
- Verify the Bot User OAuth Token is correct
- Ensure the app is still installed to your workspace
- Check that required scopes haven’t been removed
Missing Users
- Ensure
users:readscope is added - For email addresses, verify
users:read.emailscope is added