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.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = SlackToolSpec(slack_token="token")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(
    await agent.run(
        "What is the most recent message in the announcements 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.

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.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_slack-0.5.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_slack-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_slack-0.5.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_slack-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ae3b1d4f7a239254349dd2fedc4cd913cb8de59e3eb43480612f90ac3cbd8c65
MD5 f1dd076499f7658f9c736172c690f94e
BLAKE2b-256 929244dc10eefec9530fb079e8b4a30d74ee96c782197da6e0b58f6a58fd43a2

See more details on using hashes here.

File details

Details for the file llama_index_tools_slack-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_slack-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_slack-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89c4780f911358918e8f6effd889fb526be2d7c661897d869988706bac66cf25
MD5 9213be0ecff93b6af5863ed56813f656
BLAKE2b-256 bec3d98bbbb03a3f99d34e8cf51b3bd9b5cc276ba02be0674243b456d1c4347d

See more details on using hashes here.

Supported by

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