Communication
Slack Connector
Index the history of the channels the bot is invited to.
Prerequisites
- A Slack workspace where you can install an app
- A bot token with the `channels:history` scope
Data ingested
When you connect Slack, the following content becomes searchable. Every answer that uses it cites it.
| Content | What is kept |
|---|---|
| Channels | Name and id of every channel the bot has joined |
| Messages | Message text and thread replies, with author and timestamp |
Setup
Configuration happens in the dashboard, under Integrations. No API call is needed for a normal setup.
Create the app
api.slack.com/apps → Create app, add the `channels:history` scope (and `groups:history` for private channels).
Install and copy the bot token
Install the app to the workspace, then copy the Bot User OAuth Token, which starts with `xoxb-`.
Invite the bot
In Slack, `/invite @your-bot` in each channel to index. A channel without the bot returns nothing, whatever the scope.
Connect
Integrations → Add source → Slack, paste the token, connect.
Configuration options
| Field | Description | Required |
|---|---|---|
| Token | Bot User OAuth Token, starting with `xoxb-` | Yes |
Best practices
- •Index support and engineering channels, not the random one: the assistant answers from what it reads, and a joke quoted as an answer is worse than silence.
- •A channel added to Slack after the connection needs a sync: the bot joining does not trigger one by itself.
Troubleshooting
The bot is not in any channel. Inviting it is a separate step from granting the scope.
The scope `channels:history` covers public channels only. Private ones need `groups:history`.
A user token (`xoxp-`) does not work here. Use the Bot User OAuth Token.
Next steps
Once the source is connected and indexed, ask a question from the chat and check that the answer cites this source. A source that never appears in a citation is usually a source with nothing indexed: see Troubleshooting above.
