Data types
๐ค Slack
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
- 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.
- Once you setup the loader, you can create an app and load data using the above slack loader
- 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:
Was this page helpful?