Skip to main content
This will help you get started with the Slack toolkit. For detailed documentation of all SlackToolkit features and configurations head to the API reference.

Setup

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:

Installation

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 reference

For detailed documentation of all SlackToolkit features and configurations head to the API reference.