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)
- In Settings → Channels → Slack, click Configure Slack and copy the full App Manifest.
- 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.
- Copy the Bot User OAuth Token (
xoxb-) from OAuth & Permissions. - Under Basic Information → App-Level Tokens, create an App Token (
xapp-) withconnections:write. - Save both tokens in xopc (optionally add a User Token
xoxp-withsearch:readto 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:
{
"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 optionalusers.getPresencepolling. 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/stopStreamwith Plan/Task cards, reasoning stream, 8-minute rotation) andchat.updatedraft fallback;agents.sessions.setStatus, ack/typing reactions, native Block Kitdata_visualizationcharts anddata_tableblocks with lossless fallback, 3-step external file upload with long-caption splitting, per-channelKeyedAsyncQueue, and HTTP 429Retry-Afterretry. - Slash Commands & Native Interactivity: Single
/xopccommand 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.