How to Build a Local AI Slack Bot with Ollama
A complete guide to building a Slack bot powered by a local Ollama LLM: creating the Slack app with correct OAuth scopes and event subscriptions, setting up the Bolt for Node.js framework with Socket Mode for zero-tunnel deployment, responding to @mentions and direct messages, maintaining per-user conversation history across exchanges, a /summarise slash command that fetches and summarises recent channel messages, running the bot in development and as a systemd service, and the trade-offs between Socket Mode and HTTP mode for production.