ChatGPT on Slack!
- Create a Slack App and install it to your workspace. You can use
manifest.ymlto create the app. - Get an API key from here.
- Set environment variables in the
.envfile.
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 stopOr you can use docker-compose to run the app.
- Set environment variables in the
.envfile.
SLACK_SIGNING_SECRET=
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
OPENAI_API_KEY=
- Run the app with docker-compose.
$ docker-compose up -dMention 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?