Source connectors
Slack
Connect Slack to your preprocessing pipeline, and batch process all your documents using unstructured-ingest
to store structured outputs locally on your filesystem.
First, install the Slack dependencies as shown here.
pip install "unstructured-ingest[slack]"
To authenticate the Slack source connector provide the following:
token
: Bot token used to access Slack API, must havechannels:history
scope for the bot user.
Provide a comma-delimited list of Slack channel IDs to pull messages from, these can be a public or private channels. Your bot user must be in the channels for them to be ingested.
Optionally, you can specify:
start-date
: Start date/time in formatsYYYY-MM-DD
,YYYY-MM-DDTHH:MM:SS
,YYYY-MM-DD+HH:MM:SS
, orYYYY-MM-DDTHH:MM:SStz
end-date
: End date/time in formatsYYYY-MM-DD
,YYYY-MM-DDTHH:MM:SS
,YYYY-MM-DD+HH:MM:SS
, orYYYY-MM-DDTHH:MM:SStz
For a full list of the options the Unstructured Ingest CLI accepts check unstructured-ingest slack --help
.
Was this page helpful?