Slack
Slack
Connect your Slack data to Airweave
Overview
The Slack connector allows you to sync data from Slack into Airweave, making it available for search and retrieval by your agents.
Configuration
SlackSource
Slack source implementation.
This connector retrieves data from Slack such as Channels, Users, and Messages, then yields them as entities using their respective Slack entity schemas.
Authentication
This connector uses OAuth 2.0 authentication flow.
You can connect through the Airweave UI, which will guide you through the OAuth flow.
Entities
The following data models are available for this connector:
SlackChannelEntity
Schema for Slack channel entities.
SlackUserEntity
Schema for Slack user entities.
SlackMessageEntity
Schema for Slack message entities.
Integrate with Slack on localhost
This guide will walk you through connecting your Slack workspace to Airweave when run locally. Slack does not allow OAuth2 flows for http://localhost
, so this is a workaround.
Prerequisites
- Access to a Slack workspace where you have permissions to add apps
- Administrator access to your Airweave instance
Steps to Connect
1. Create a Slack App
- Go to https://api.slack.com/apps
- Click the “Create New App” button
- Choose “From scratch”
- Enter a name for your app (e.g., “Airweave”)
- Select the workspace you want to connect
- Click “Create App“‘

2. Configure OAuth Permissions
- In your Slack app settings, navigate to “OAuth & Permissions” in the sidebar
- Scroll down to the “Scopes” section
- Under “User Token Scopes”, add the following scopes:
channels:history
channels:read
groups:read
im:read
mpim:read
users:read

3. Install the App to Your Workspace
- Scroll back to the top of the “OAuth & Permissions” page
- Click the Install to Workspace button
- Review the permissions and click “Allow”
- After installation, you’ll be redirected back to the app settings
- Copy the “User OAuth Token” (it starts with
xoxp-
)

4. Add the Token to Airweave
- In your Airweave application, navigate to the integrations section
- Select “Slack” from the available integrations
- Paste the Bot User OAuth Token you copied in the previous step
- Complete any additional configuration required by Airweave
- Save your changes

Verification
After completing these steps, Airweave should be connected to your Slack workspace. You can verify this by checking the status of the integration in Airweave’s dashboard.
Troubleshooting
- If you encounter permission errors, ensure you’ve added all required scopes to your Slack app
- If the connection fails, verify that the token was copied correctly and hasn’t expired
- For workspace connection issues, ensure you have the appropriate admin permissions in your Slack workspace