Skip to main content

llama-index tools slack integration

Project description

Slack Tool

This tool fetches the text from a list of Slack channels. You will need to initialize the loader with your Slack API Token or have the SLACK_BOT_TOKEN environment variable set.

Usage

from llama_index.tools.slack import SlackToolSpec
from llama_index.agent import OpenAIAgent

tool_spec = SlackToolSpec(slack_token="token")

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("What is the most recent message in the annoucements channel?")

load_data: Loads messages from a list of channels send_message: Sends a message to a channel fetch_channel: Fetches the list of channels

This loader is designed to be used as a way to load data as a Tool in a Agent. See here for examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_slack-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

llama_index_tools_slack-0.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page