Skip to main content

Slack Connector

Connect to Slack to index messages, threads, and files from your workspace channels.

Overview

The Slack connector allows you to:

  • Index public and private channels
  • Search message history
  • Include file attachments
  • Filter by date range

Prerequisites

  • Slack workspace membership
  • Admin approval for app installation
  • OAuth authorization

Authentication

OAuth 2.0

  1. Click Connect with Slack
  2. Select your workspace
  3. Review permissions
  4. Authorize the app

Required Scopes

ScopePurpose
channels:historyRead public channel messages
channels:readList public channels
groups:historyRead private channel messages
groups:readList private channels
files:readAccess shared files

Configuration

SettingDescription
ChannelsSpecific channels or all
Include PrivateIndex private channels
Date RangeMessage history period
Include FilesSync attached files

Setup Steps

  1. Add Connector: Knowledge → Add Data Source → Slack
  2. Authorize: Connect with Slack OAuth
  3. Select Channels: Choose channels to index
  4. Set Date Range: Configure history period
  5. Test & Create: Verify and save

Channel Selection

Include: #engineering, #product, #announcements
Exclude: #random, #social

Content Indexed

ContentIncluded
MessagesYes
ThreadsYes
ReactionsYes
FilesOptional
CanvasYes

Permission Handling

  • Users see channels they're members of
  • Private channels require membership
  • DMs are not indexed

Real-time Sync

Slack webhooks enable instant updates:

  • New messages sync immediately
  • Edited messages update
  • Deleted messages are removed

Best Practices

  1. Focus on knowledge-sharing channels
  2. Exclude high-volume social channels
  3. Set reasonable date range limits
  4. Include files for complete context

Troubleshooting

Authorization failed: Ensure workspace admin has approved the app

Missing channels: Check channel membership and type (public/private)

Rate limits: Large history may require multiple syncs