Skip to main content
SlackTools enable an Agent to interact with the Slack API. 12 methods cover messaging, channels, file management, search, threads, and user lookup.

Prerequisites

Example

The following agent sends a message to a Slack channel, lists channels, and retrieves message history.
cookbook/14_tools/slack_tools.py

Toolkit Params

Toolkit Functions

search_messages supports Slack search modifiers: from:@user, in:#channel, has:link, before:2024-01-01, after:2024-01-01. Combine them to narrow results.

Developer Resources

Slack Interface

Streaming, sessions, file handling, and behavior details.

Source Code

View the SlackTools implementation on GitHub.