Metadata-Version: 2.4
Name: llama-index-readers-slack
Version: 0.4.0
Summary: llama-index readers slack integration
Author-email: Your Name <you@example.com>
Maintainer: jerryjliu
License-Expression: MIT
License-File: LICENSE
Requires-Python: <4.0,>=3.9
Requires-Dist: llama-index-core<0.14,>=0.13.0
Requires-Dist: slack-sdk<4,>=3.26.2
Description-Content-Type: text/markdown

# LlamaIndex Readers Integration: Slack

## Overview

The Slack Reader allows you to read conversations from Slack channels. It retrieves messages from specified channels within a given time range, if provided.

For more detailed information about the Slack Reader, visit [Slack API Home](api.slack.com).

### Installation

You can install the Slack Reader via pip:

```bash
pip install llama-index-readers-slack
```

### Usage

```python
from llama_index.readers.slack import (
    SlackReader,
)  # Import the SlackReader module.

# Initialize SlackReader with specified parameters.
reader = SlackReader(
    slack_token="<Slack Token>",  # Provide the Slack API token for authentication.
    earliest_date="<Earliest Date>",  # Specify the earliest date to read conversations from.
    latest_date="<Latest Date>",  # Specify the latest date to read conversations until.
)

# Load data from Slack channels using the initialized SlackReader.
documents = reader.load_data(
    channel_ids=["C04DC2VUY3F"]
)  # Specify the channel IDs to load data from.
```

This loader is designed to be used as a way to load data into
[LlamaIndex](https://github.com/run-llama/llama_index/tree/main/llama_index) and/or subsequently
used as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent.
