This is an example of creating a ChatGPT SlackBot.
- Create a SlackApp based on slackAppManifest.yml.
- Create an .env file and specify the OpenAI and SlackApp key information.
Node.js
- Install the libraries with
npm install
. - Start the bot with
node ./dist/index.js
.
Docker
- Start the bot with
docker compose up
.
.env file example
OPENAI_API_KEY=123456
SLACK_SIGNING_SECRET=123456
SLACK_BOT_USER_OAUTH_TOKEN=123456
SLACK_APP_TOKEN=123456