Use Slack's Bolt framework with Node.js, scaffold with Claude Code, and deploy to a VPS or Socket Mode for dev. Supports slash commands, shortcuts, events, and Block Kit interactive UI.
commands, chat:write, app_mentions:read. Socket Mode → generate App-Level Token with connections:write.pnpm add @slack/bolt dotenv. Prompt: "Create a Bolt JS app with Socket Mode. Add handlers for /ask slash command, app_mention events, and a button action using Block Kit."app.action('approve_btn', ...). Always await ack() within 3 seconds or Slack shows error./ask to your AI backend. Stream long responses as message edits (client.chat.update)..env.setImmediate or a queue.X-Slack-Retry-Num to avoid duplicate processing.| Tool | Best For | Price |
|---|---|---|
| Bolt JS | Official Slack framework | Free |
| Block Kit Builder | Visual UI designer | Free |
| Socket Mode | No hosting needed | Free |
| Fly.io | Free-tier hosting | $0-5 |
| ngrok | Local HTTP dev | Free tier |
Q: Socket Mode vs HTTP? Socket for dev/internal bots. HTTP for public/marketplace bots.
Q: Can the bot DM users?
Yes — client.chat.postMessage({ channel: userId }).
Q: How do I store per-user data? Supabase (self-hosted) or Redis, keyed by Slack user ID.
Q: What scopes are minimum?
commands for slash, chat:write for replies, app_mentions:read for @ mentions.
Q: Can I sell on Slack Marketplace? Yes — but review takes 2-4 weeks and requires security audit.
Q: Does Bolt work with Python? Yes — Bolt for Python has near-identical API.
Slack bots automate team workflows that would otherwise cost hours. Start with Socket Mode, build one useful command, then iterate. Internal bots don't need marketplace review — ship today.
Free newsletter
Join thousands of creators and builders. One email a week — practical AI tips, platform updates, and curated reads.
No spam · Unsubscribe anytime
AI makes decisions. Automation executes repetitive tasks. Robotics is the physical body. They combine in many modern sys…
Cursor editor lagging, freezing, or using 100% CPU? Complete 2026 guide to fix Cursor performance issues.
GitHub Copilot stopped giving suggestions in VS Code or JetBrains? Complete troubleshooting guide with 12 fixes for Copi…
Comments
Sign in to join the conversation
No comments yet. Be the first to share your thoughts!