What Gets Synced
Federated Search ApproachThe Slack connector uses federated search - it queries Slack in real-time at search time rather than syncing all messages. This avoids Slack’s strict rate limits and keeps your data in Slack.
- Messages - Message content from all accessible channels
- Context - Previous and next messages for conversation context
- Metadata - Channel names, timestamps, authors, and permalinks
Authentication
This connector uses OAuth 2.0 with thesearch:read scope for production, or a manual token for local development.
Setup
Production Setup (OAuth)
Local Development Setup (Manual Token)
Slack doesn’t allow OAuth flows forlocalhost, so for local development you need to create a token manually.
Create Slack App
- Go to https://api.slack.com/apps
- Click Create New App → From scratch
- Enter app name (e.g., “Airweave Local Dev”) and select your workspace
Install to Workspace
- Click Install to Workspace at the top of the OAuth & Permissions page
- Review permissions and click Allow
- Copy the User OAuth Token (starts with
xoxp-)
How Federated Search Works
- When you search in Airweave, your query is sent to Slack’s
search.allAPI in real-time - Slack returns relevant messages from across your workspace
- Results are merged with data from your other sources using intelligent ranking
- No data is stored in Airweave - everything happens at search time
Supported Entities
Slack Messages
Messages from federated search results. Key fields:- Message text and author
- Channel ID and name
- Timestamp and permalink
- Previous/next messages for context
- Search relevance score
Implementation Details
View Source Code
Explore the Slack connector implementation on GitHub