Skip to main content

Pre-requisite

  • Download required packages by running pip install --upgrade "embedchain[slack]".
  • Configure your slack bot token as environment variable SLACK_USER_TOKEN.
    • Find your user token on your Slack Account
    • Make sure your slack user token includes search scope.

Example

Get Started

This will automatically retrieve data from the workspace associated with the user’s token.

Customize your SlackLoader

  1. Setup the Slack loader by configuring the Slack Webclient.
NOTE: you can also pass the config with base_url, headers, team_id to setup your SlackLoader.
  1. Once you setup the loader, you can create an app and load data using the above slack loader
  1. We automatically create a chunker to chunk your slack data, however if you wish to provide your own chunker class. Here is how you can do that: