Repolode
seratch

seratch/ChatGPT-in-Slack

A Slack app that lets workspace members chat with OpenAI's ChatGPT and DALL-E models in channel threads, DMs, and the Home tab.

Open-source alternative to:ChatGPT

Stars
512
Forks
175
Open issues
17
Last commit
last month

What is it?

ChatGPT in Slack is a Python app that brings ChatGPT into Slack so users can prompt the bot without leaving their workspace. It can be used by mentioning the bot in a channel thread, sending messages in a 1:1 DM, or using dialogs on the Home tab for proofreading, free-form prompts, and image generation with DALL-E 3. Within a thread or DM, the bot keeps the conversation context so follow-up questions build on earlier replies.

The app runs locally or on your own infrastructure. It connects to Slack through Socket Mode, so no public URL is required, and a Dockerfile is included for deployment. Configuration is handled through environment variables, covering the OpenAI API key, model, temperature, timeout, system prompt, and optional features such as markdown translation and basic prompt redaction. Azure OpenAI is also supported.

The project is also a reference implementation for building a Slack app that calls an LLM, with the repository including tests and a validation script that runs black, flake8, and pytype.

Key features

  • 01Chat with ChatGPT in channel threads, where the bot remembers earlier messages in the thread.
  • 02Hold private 1:1 conversations with the bot in direct messages.
  • 03Use Home tab dialogs for proofreading, free prompts, and DALL-E 3 image generation.
  • 04Deploy locally or with the included Dockerfile using Slack Socket Mode, without a public URL.
  • 05Configure the model, temperature, timeout, and system prompt through environment variables.
  • 06Optionally use Azure OpenAI in place of the OpenAI API.

Use cases

  • A team wants a shared ChatGPT assistant for drafting and editing text inside existing Slack channels.
  • An organization that needs data to stay on its own infrastructure self-hosts the app with Docker.
  • A developer wants a working example of a Slack bot that calls an LLM API.

Quick start

  1. 1

    Create a new Slack app using the manifest-dev.yml file and install it into your workspace

  2. 2

    Create a Python virtual environment

    python -m venv .venv
  3. 3

    Install the dependencies

    pip install -r requirements.txt
  4. 4

    Set the required tokens and API key as environment variables, then start the app

    python main.py

Things to know

  • Requires an OpenAI API key, which is a paid service.
  • Needs your own Slack app setup and hosting for company workspaces; the README advises self-hosting rather than the live demo.
  • OpenAI now offers an official Slack integration that the README recommends trying first.

In collections

Topics

FAQ

What is ChatGPT-in-Slack?
A Slack app that lets workspace members chat with OpenAI's ChatGPT and DALL-E models in channel threads, DMs, and the Home tab. ChatGPT in Slack is a Python app that brings ChatGPT into Slack so users can prompt the bot without leaving their workspace. It can be used by mentioning the bot in a channel thread, sending messages in a 1:1 DM, or using dialogs on the Home tab for proofreading, free-form prompts, and image generation with DALL-E 3. Within a thread or DM, the bot keeps the conversation context so follow-up questions build on earlier replies.
Is ChatGPT-in-Slack free to use? What license does it have?
ChatGPT-in-Slack is open source under the MIT license. Check the license terms before using it in commercial products.
Is ChatGPT-in-Slack still maintained?
Updated within 6 months. The last commit to ChatGPT-in-Slack was on Oct 5, 2026.
What can I use ChatGPT-in-Slack for?
A team wants a shared ChatGPT assistant for drafting and editing text inside existing Slack channels. An organization that needs data to stay on its own infrastructure self-hosts the app with Docker. A developer wants a working example of a Slack bot that calls an LLM API.
How do I install ChatGPT-in-Slack?
Create a new Slack app using the manifest-dev.yml file and install it into your workspace Create a Python virtual environment: python -m venv .venv Install the dependencies: pip install -r requirements.txt Set the required tokens and API key as environment variables, then start the app: python main.py
Where can I get ChatGPT-in-Slack?
The source code and installation instructions are on GitHub: https://github.com/seratch/ChatGPT-in-Slack

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects