Skip to main content
这将帮助你开始使用 the Slack toolkit. 所有 SlackToolkit 功能和配置的详细文档请前往 API reference.

设置

To use this toolkit, you will need to get a token as explained in the Slack API docs. Once you’ve received a SLACK_USER_TOKEN, you can input it as an environment variable below.
To enable automated tracing of individual tools, set your LangSmith API key:

安装

This toolkit lives in the langchain-community package. We will also need the Slack SDK:
Optionally, we can install beautifulsoup4 to assist in parsing HTML messages:

Instantiation

Now we can instantiate our toolkit:

Tools

View available tools:
This toolkit loads:

Use within an agent

Let’s equip an agent with the Slack toolkit and query for information about a channel.

API 参考

所有 SlackToolkit 功能和配置的详细文档请前往 API reference.