OpenAI-enabled Slack chat bot for demo purposes.
- Integrates with OpenAI to provide intelligent responses within Slack.
- Configurable and extendable.
- Easy to deploy using Docker Compose.
- Responds to bot mentions in a thread
- Tracks each thread separately
- Go (version 1.16 or higher)
- Docker
- Docker Compose
- github.com/cosmtrek/air live reloading go development tool
- Slack workspace and app. You can use slack-app-example.yaml as your slack app definition.
-
Clone the repository:
git clone https://github.com/yourusername/slack-ai-bot.git cd slack-ai-bot
-
Install a slack app by following slack documentation.
-
Generate
config.toml
, you can take config.toml.example as refference. -
Start the app by running
air
Once the bot is running, you can interact with it within your Slack workspace. Mention the bot in any channel or send it a direct message to receive responses powered by OpenAI.
The bot can be configured using environment variables or configuration files. The main configuration file is config.go
located in the internal/config
directory.
This project is licensed under the MIT License - see the LICENSE file for details.