Skip to content

Slack ​

xopc ships a full-featured modular Slack channel (extensions/slack) powered by @slack/web-api supporting Socket Mode (default) and HTTP Request URLs, multi-account setups, Enterprise Grid org-wide installs, live streaming, inbound files/images/audio transcription, thread context seeding, Block Kit charts/tables, interactive approvals/clarifications, slash commands, and Agent-callable Slack query/send tools.

Quick Setup (Socket Mode) ​

  1. In Settings → Channels → Slack, click Configure Slack and copy the full App Manifest.
  2. Open Slack API: Your Apps → Create New App → From an app manifest, select your workspace, paste the manifest JSON, and install the app to your workspace.
  3. Copy the Bot User OAuth Token (xoxb-) from OAuth & Permissions.
  4. Under Basic Information → App-Level Tokens, create an App Token (xapp-) with connections:write.
  5. Save both tokens in xopc (optionally add a User Token xoxp- with search:read to unlock workspace-wide search).

Environment variable fallbacks (for the default account): SLACK_BOT_TOKEN, SLACK_APP_TOKEN, SLACK_SIGNING_SECRET, SLACK_USER_TOKEN.

HTTP Request URLs Mode ​

For horizontally scaled deployments or networks blocking outbound WSS:

json
{
  "channels": {
    "slack": {
      "enabled": true,
      "mode": "http",
      "botToken": "xoxb-...",
      "signingSecret": "...",
      "webhookPath": "/slack/events"
    }
  }
}

Point Event Subscriptions, Interactivity, and Slash Commands in Slack to https://<your-gateway>/slack/events. xopc verifies X-Slack-Signature (HMAC-SHA256 + 5-minute replay window).

Key Capabilities ​

  • Listening & Events: Socket Mode (immediate ACK decoupling, 15s pong watchdog, 2–30s backoff, proxy support) & HTTP Request URLs; listens to DMs, public/private channels, group DMs (MPIM), file_share, edits/deletes, reactions, pins, membership, channel renames, Agent/Assistant View lifecycle (including native Stop button), ambient monitoring channels (events.ambientChannels), and optional users.getPresence polling. Observed events stream to Gateway Realtime (slack.event).
  • Receiving & Context: Downloads up to 8 private Slack attachments per message (default 20MB cap) into xopc's media/STT pipeline, inherits thread-root attachments, seeds recent thread/channel history (historyLimit / thread.initialHistoryLimit), resolves <@U...> user display names, converts pasted Slack tables to TSV, and supports implicit thread follow-ups (implicitMentions.threadParticipation) without re-@mentioning.
  • Streaming & Rich Sending: Threaded native Slack streaming (chat.startStream/appendStream/stopStream with Plan/Task cards, reasoning stream, 8-minute rotation) and chat.update draft fallback; agents.sessions.setStatus, ack/typing reactions, native Block Kit data_visualization charts and data_table blocks with lossless fallback, 3-step external file upload with long-caption splitting, per-channel KeyedAsyncQueue, and HTTP 429 Retry-After retry.
  • Slash Commands & Native Interactivity: Single /xopc command or native slash commands, interactive Block Kit Exec Approval buttons, Clarify/ask-user buttons, modals/shortcuts, and App Home (views.publish).
  • Agent Slack Tools (gated by channels.slack.actions.*): slack_list_channels, slack_read_messages, slack_search_messages, slack_download_file, slack_member_info, slack_emoji_list, slack_list_pins, slack_send_message, slack_manage_message, slack_manage_conversation.

Released under the MIT License.