ChatGPT on Slack!
- Create a Slack App and install it to your workspace. You can use
manifest.yml
to create the app. - Get an API key from here.
- Set environment variables in the
.env
file.
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
OPENAI_API_KEY=
- Run the app.
$ yarn start
# or run in daemon mode
$ yarn daemon
- To stop the daemon, run
$ yarn stop
Or you can use docker-compose to run the app.
- Set environment variables in the
.env
file.
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
OPENAI_API_KEY=
- Run the app with docker-compose.
$ docker-compose up -d
Mention the bot to start a conversation.
@ChatGPT How are you?
The bot will add a response to the thread.
I'm doing well, thank you.
Then you can continue the conversation.
What's your favorite color?