- Set the chatgpt token by command
/set-chatgpt-token - Talk with
@ChatGPTin DM channel - Invite the
@ChatGPTthen direct, then mention@ChatGPTto talk with ChatGPT - Conversation by channel
- each channel (DM, group, public channel etc) give one conversation
- reset the channel conversation by
/reset-chatgpt-conversation
click Add To Slack
Goal: we will step by step to fill the .env properties
- open socket mode
- set the App Display name as your need
- Add bot user since we want to mention @ChatGPT to let it work
goto app oauth page: https://api.slack.com/apps//oauth, make Scopes as:

- where
chat:writecan direct talk in im - where
app_mentions:readcan@ChatGPTto talk in channel
/chatgptCommand to direct send question to ChatGPT/reset-chatgpt-conversationCommand to reset the conversation thread to cleanup the context/set-chatgpt-tokenCommand to globally set new Bearer Auth token which are copied from ChatGPT website/print-chatgpt-tokenCommand to print current Bearer Auth token
- Find in the Oauth & Permissions tab
SLACKBOT_TOKEN=xoxb- - Find in Basic Information Tab
SLACKBOT_SIGNING_SECRET= - Token from the App-level Token that we created
SLACKBOT_APP_TOKEN=xapp-xxx
put into .env file CHATGPT_AUTH_TOKEN=<copied token value>
- you can use
/set-chatgpt-tokento setup the token for update, e.g. you may need reset the thread, and don't want to reset the bot server.
git clone
npm i
npm run build
npm run start
then you can use ChatGPT in Slack.
docker build -t chatgpt-slackbot
docker run -it --rm chatgpt-slackbot

