This is a Slack bot that creates tasks based on the conversation in a thread. It uses the OpenAI API to generate a task summary and description.
- Docker installed on your machine.
- Slack bot token, signing secret, and app token.
- OpenAI API key.
- Clone the repository to your local machine.
git clone https://github.com/maxmaxme/slack-thread-task.git
- Navigate to the project directory.
cd slack-thread-task
- Create a
.env
file in the root directory of the project and add your Slack and OpenAI credentials.
PORT=3000
SLACK_TOKEN=your-slack-token
SLACK_SIGNING_SECRET=your-slack-signing-secret
SLACK_APP_TOKEN=your-slack-app-token
OPENAI_API_KEY=your-openai-api-key
YOUTRACK_BASE_URL=https://youtrack.yourcompany.com
- Build the Docker image.
docker build -t slack-thread-task .
- Run the Docker container using Docker Compose.
docker-compose up
The bot is now running and listening for messages on Slack.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.