// the find
seratch/ChatGPT-in-Slack
Swift demonstration of how to build a Slack app that enables end-users to interact with a ChatGPT bot
A Slack bot that wraps the OpenAI chat API and wires it into Slack threads, DMs, and the Home tab. Built on Slack Bolt for Python with Socket Mode, so no public endpoint needed. Aimed at teams who want to self-host rather than trust the official OpenAI Slack app.
Thread-aware conversation history is handled correctly — messages are fetched from Slack itself rather than kept in process memory, so restarts don't lose context. Azure OpenAI support is included alongside the standard API, which matters for enterprise deployments. The optional redaction layer strips sensitive patterns before sending to OpenAI, a sensible addition for corporate use. Test coverage is real and broad: dedicated test files for markdown conversion, Slack ops, image ops, and bolt listeners, backed by CI.
The README's own opening line tells you to use the official OpenAI Slack app instead — at 514 stars in 2026 this is essentially a demo that outlived its purpose. Configuration is purely environment variables with no runtime admin UI, so changing the system prompt or model requires a redeploy. Function calling support is still marked experimental and gated behind a module name env var, which is a brittle extension point. No multi-workspace support; the token pair is baked in at startup, so a single deployment serves exactly one Slack workspace.