Slack app for ChatGPT integration
Top 62.4% on sourcepulse
This project provides a Slack application enabling users to interact with ChatGPT directly within their Slack workspaces. It's designed for both individual users and corporate environments, offering a seamless way to integrate AI-powered assistance for planning, writing, and general queries, thereby enhancing productivity.
How It Works
The application leverages Slack's Socket Mode for real-time communication, allowing it to function without requiring a public URL. Users can interact with ChatGPT through channel threads, direct messages, or a dedicated Home tab. The bot maintains conversation context within threads, enabling natural, multi-turn dialogues. The Home tab offers additional features like API key configuration, a quick proofreader, and a prompt sender dialog, with support for DALL-E 3 image generation.
Quick Start & Requirements
pip install -r requirements.txt
), and run python main.py
.xapp-1-...
), and Slack bot token (xoxb-...
). Python 3.x is required.OPENAI_API_KEY
, SLACK_BOT_TOKEN
, and SLACK_APP_TOKEN
must be set. Optional variables control model selection, temperature, timeouts, language translation, markdown conversion, redaction, and image file access. Azure OpenAI is also supported.Highlighted Details
Maintenance & Community
The project is maintained by @seratch. Contributions are welcome, with guidelines for maintaining backward compatibility and writing unit tests. A validation script (./validate.sh
) is available for code formatting and analysis.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
The live demo is personally hosted and may not be suitable for critical corporate use. While the project supports various OpenAI models, specific version compatibility should be verified. The "Function Calling" feature is experimental.
2 months ago
1 day