Slack bot developed with Slack Bolt, LangChain and ChatGPT (GPT-4).
- Docker and Docker Compose installed
Copy from sample variable file and update to suite your environment
cp sample.env .env
docker-compose up -d
docker-compose -f docker-compose-prod.yml up -d
docker-compose down
docker-compose up -d
To use this slack bot you need to create an app into https://api.slack.com.
First, you need to login into api.slack.com
All secrets below have been rotated and are just for demonstration.
Once logged in, go to "Your apps" option
Then, select From scratch option
After that, set the app information
Finally, install the app in the workspace
Once the app is created you need to select "Bots" option in the next window.
Then, in "Basic Information" get the "Signing Secret" value and paste it in the .env
file
Now, set the app icon, preview color and description
After that, go to "OAuth & Permissions" to get "Bot User OAuth Token" and paste it in the env
file
Following, go to "Event Subscriptions" option and set the URL and the bot events
Finally, go to "App Home" option and activate the following options