FruxonDocs

Slack

Slack API integration for messaging, channels, and workspace management

The Slack integration lets your agents send messages, read channel history, search messages, manage workspace interactions, and route Slack events through Agent Network.

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 Integrations from the sidebar
  2. Select Slack from the catalog
  3. Click Add Integration Config
  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 config

For inbound Slack events, generate the config webhook URL in Fruxon and paste it into Event Subscriptions → Request URL in the Slack app dashboard. Slack apps accept one Events API request URL per app, so Fruxon uses one webhook per Slack integration config and dispatches to triggers and participants from there.

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach Slack tools from the tools panel
  4. Tools are referenced as slack.send_message, slack.list_channels, etc.

Channels

Slack exposes channel descriptors for Agent Network participants:

ChannelDescription
channelPublic Slack channel, identified by a C... id.
groupPrivate channel, identified by a G... id.
imDirect message conversation, identified by a D... id from conversations.open.

Use Slack ids, not display names like #general. Bind participants to Slack channels under Network → Participants to let agents send messages or receive replies through Slack.

Triggers

TriggerDescription
slack.message.receivedFires when the bot sees a message in a channel it can access.
slack.app.mentionFires only when the bot is explicitly mentioned.

Both triggers require a Slack integration config and the Events API webhook. Their payloads include the standard inbound-message fields (payload.text, payload.from, payload.from_name, payload.conversation_name, payload.conversation_address, payload.session_id, payload.event_type) plus Slack-specific fields such as payload.message_attributes.channel_id, payload.message_attributes.ts, and, for thread replies, payload.message_attributes.thread_ts.

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