This source reads channel history into your knowledge base. If you want a bot that answers questions inside Slack, set up the Slack bot instead — the two work great together.
Prerequisites
- Permission to create a Slack app in your Slack workspace.
- A BeforeQuery workspace
ownerrole.
Set up the connector
1
Create a Slack app with read scopes
In the Slack API console, create an app for your workspace and grant it bot token scopes to read channels and history (e.g.
channels:read, channels:history). Install the app and copy the bot token (xoxb-…).2
Invite the bot to the channels you want indexed
In each channel, run
/invite @yourapp. The connector can only read channels the bot is a member of.3
Add the source in BeforeQuery
In the dashboard, open Project → Sources → Add source and choose Slack. Paste the bot token and, optionally, a list of channel IDs to restrict indexing. Leave the list empty to index every channel the bot can read.
Connection settings
Keeping content in sync
Run Sync manually or set a daily/weekly schedule to pick up new messages. Existing indexed threads are only re-embedded if they changed.Troubleshooting
- A channel isn’t being indexed? The bot isn’t a member —
/inviteit, then sync. - Worried about sensitive chatter? Restrict indexing to curated channels via channel IDs, enable PII masking, and consider marking Slack-derived documents
restrictedso they answer only for workspace members.