Setting Up
Authorization
- Prerequisite Admin access to the Slack workspace is required before setting up the connector.
- Open Slack Apps Visit https://api.slack.com/apps and sign in.
- Create a new app Click Create New App in the top right corner, select the From an app manifest option, pick the relevant workspace from the dropdown, and click Next.
- Paste the manifest Select the YAML tab, paste the manifest below into the text field, and click Next:
- Create the app Click the Create button.
- Open Basic Information Within the app page, navigate to the Basic Information tab under the Settings section.
- Copy client credentials Copy the Client ID and Client Secret and store them somewhere secure for the next step.
Indexing
- Open the Slack connector Go to the Connector Dashboard and select the Slack Connector.
- Enter client credentials Input the Client ID and Client Secret obtained in step 7.
-
Configure search scope
Set up the search scope for the federated connector using the available options below:
Channel Selection:
- Search All Channels: Enable this to search across all accessible channels. When active, the Channels field will be disabled.
- Channels: Specify particular channels to search (only applicable when Search All Channels is disabled). Supports glob patterns (e.g.,
general,eng*,product-*). - Exclude Channels — Exclude specific channels from search results. Also supports glob patterns (e.g.,
secure-channel,private-*,customer*).
Message Types: - Include Direct Messages — Include one-on-one DMs in search results.
- Include Group Direct Messages — Include multi-person direct messages (MPIMs) in search results.
- Include Private Channels — Include private channels in search results (user access required). Search Parameters:
- Default Search Days — Sets the maximum number of days to search back (default: 30). Note that increasing this value may reduce answer quality.
- Max Messages Per Query — Sets the maximum number of messages retrieved per search query (default: 25). Higher values offer more context but may slow down results. Once everything is configured, click Create/Update
-
Complete OAuth
Return to the main Chat page and complete the OAuth flow.
Every user will need to go through this OAuth flow. The searchable content depends on:
- The connector configuration settings (channels, DMs, private channels, etc.)
- The OAuth scopes granted during setup
- The user’s individual access permissions in Slack
If certain OAuth scopes are missing (e.g.,
mpim:read,im:history), the connector will gracefully continue searching other available channel types and log warnings about the missing scopes.
