FruxonDocs

Slack

Slack API integration for messaging, channels, and workspace management

The Slack integration lets your agents send messages, read channel history, search messages, and manage workspace interactions.

Prerequisites

You need one of the following:

  • Slack Bot Token (xoxb-) — Create a Slack App at api.slack.com/apps, add the required bot scopes (e.g., channels:read, chat:write, users:read), and install it to your workspace.
  • OAuth — For user-level access. Supports both bot scopes and user scopes, so the agent can act on behalf of individual users.

Setup

  1. Open your agent in Agent Studio
  2. In the Integrations panel, click Add Integration Config
  3. Select Slack from the integration list
  4. Give the config a display name (e.g., "Slack - Company Workspace")
  5. Choose your authentication method:
    • Bot Token — Paste your xoxb- token
    • OAuth — Click Connect to start the Slack OAuth flow. You'll be redirected to Slack to authorize access. Per-tool scopes ensure the agent only requests the permissions each tool needs.
  6. Save the agent revision

Using in Your Agent

  1. In an Agent Step, attach Slack tools from the tools panel
  2. The agent uses your integration config for all Slack API calls
  3. Tools are referenced as slack.send_message, slack.list_channels, etc.

Available Tools

ToolDescriptionAction Type
list_channelsList public and private channels in the workspaceReadOnly
get_channel_historyRetrieve message history from a Slack channelReadOnly
send_messageSend a message to a Slack channelIrreversible
reply_to_threadReply to a message thread in SlackIrreversible
list_usersList all users in the Slack workspaceReadOnly
get_user_infoGet detailed information about a Slack userReadOnly
search_messagesSearch for messages across the workspaceReadOnly
add_reactionAdd an emoji reaction to a messageReversible
upload_fileUpload a text snippet or file content to a channelIrreversible

On this page