All connectors

Communication

Slack

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.

ContentWhat is kept
ChannelsName and id of every channel the bot has joined
MessagesMessage 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.

1

Create the app

api.slack.com/apps → Create app, add the `channels:history` scope (and `groups:history` for private channels).

2

Install and copy the bot token

Install the app to the workspace, then copy the Bot User OAuth Token, which starts with `xoxb-`.

3

Invite the bot

In Slack, `/invite @your-bot` in each channel to index. A channel without the bot returns nothing, whatever the scope.

4

Connect

Integrations → Add source → Slack, paste the token, connect.

Where the credential goes
The bot token (`xoxb-…`) goes in the **Token** field. Slack has no per-channel configuration: the channels the bot is in are the channels that get indexed.

Configuration options

FieldDescriptionRequired
TokenBot 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

Nothing indexed

The bot is not in any channel. Inviting it is a separate step from granting the scope.

Missing messages

The scope `channels:history` covers public channels only. Private ones need `groups:history`.

Token rejected

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.