Problem Statement: Slack as a Chat-Driven Operations Plane
Frames the bot not as a chat toy but as an enterprise command plane with hard platform contracts, audited side effects, and multi-tenant token custody.
Problem statement
Design a Slack-focused productivity bot platform: one Slack app, installed into thousands of workspaces, that turns chat into audited enterprise actions. Users type /create-task to file a Jira ticket, /deploy service api --env staging to trigger a CI/CD pipeline, /oncall to fetch the current responder, click an Approve button to authorize a production release, and receive ephemeral status that only they can see. The platform must handle slash commands, event subscriptions, interactive components, external API execution, usage analytics, and secure token storage.
This is not a wrapper around one webhook. Slack imposes unusual hard contracts: a slash command endpoint must return HTTP 200 within roughly 3 seconds, event deliveries are retried if not acknowledged quickly, every request must be verified against a signing secret, outbound messages are throttled by per-workspace rate-limit tiers, and the app holds OAuth tokens for every workspace that installed it. A bot that creates tickets, triggers builds, and gates approvals is a control plane with real-world side effects. Executing the same deploy twice because Slack redelivered an event is not a latency bug; it is an incident.
Why the problem is distinctive
A normal REST API owns both ends of the conversation. A Slack bot does not. Slack owns the transport, the identity surface, the retry policy, and the rate limits; the external systems (Jira, GitHub Actions, Jenkins, PagerDuty) own their own availability and quotas; our platform owns only the thin, critical middle: verify, authorize, deduplicate, execute, report.
Five properties make this design different from a generic backend question:
- The 3-second contract. Slash commands and interaction callbacks must be acknowledged in about 3 seconds or Slack shows the user an error. Real work (creating a Jira ticket, starting a pipeline) routinely takes longer, so the architecture must separate acknowledgement from execution and update the user asynchronously.
- At-least-once inputs with exactly-once side effects. Slack may retry events; users double-click buttons; networks partition. The execution layer must make duplicate inputs harmless.
- Multi-tenant token custody. Thousands of workspaces mean thousands of bot tokens and optional user tokens. Leaking one should expose one workspace, not the fleet.
- Per-workspace throttles that we do not control. Slack rate limits are per app per workspace per method tier. One noisy workspace must not starve 24,999 others.
- Identity mapping. Slack user IDs are not enterprise identities. Commands like
/deploymust resolve who typed them into what they are allowed to do, and interactive approvals must bind the clicker to the action immutably.
The four architectural planes
- Edge plane: request verification, fast acknowledgement, ephemeral responses, modal handling.
- Orchestration plane: command routing, workflow state machines, approval chains, deduplication, idempotent execution records.
- Integration plane: adapters for task management, CI/CD, incident tools, and HR systems; outbound rate budgets; circuit breakers; retries with backoff.
- Governance plane: token vault, audit log, usage analytics, per-workspace policy, feature flags, and compliance evidence.
A strong answer keeps these planes separate: a Jira outage degrades the integration plane and surfaces a friendly ephemeral error, while the edge plane keeps acknowledging commands and the governance plane keeps recording what happened.
Public operating baseline
Slack's own engineering publications describe a platform serving millions of concurrently connected users, with billions of messages flowing weekly, backed by sharded MySQL through Vitess and Kafka as the event backbone. Those are platform-side figures and are cited here as context for why Slack enforces aggressive rate limits and tight timeouts on apps. For our bot platform, every capacity number in this answer is either drawn from Slack's public developer documentation (rate-limit tiers, the 3-second acknowledgement window, retry behavior) or stated explicitly as a design assumption.
Key Highlights
- •The bot is a command plane: verify, authorize, deduplicate, execute, report - with real-world side effects.
- •Slack enforces a ~3 second acknowledgement contract; execution must be asynchronous by design.
- •At-least-once deliveries (events, retries, double-clicks) must map to exactly-once side effects.
- •Thousands of workspaces mean thousands of OAuth tokens: custody is a first-class security problem.
- •Four planes: edge, orchestration, integration, governance. Each degrades independently.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate what Slack forces us to do quickly from what we are allowed to do slowly."
- "Before choosing databases, let me enumerate the platform contracts: ack window, retries, rate tiers, and signing."