Skip to content

Latest commit

 

History

History
90 lines (56 loc) · 1.89 KB

README.md

File metadata and controls

90 lines (56 loc) · 1.89 KB

IBL Mentor Slack Bot

Slack bot developed with Slack Bolt, LangChain and ChatGPT (GPT-4).

Dependency

  • Docker and Docker Compose installed

Define environment variables

Copy from sample variable file and update to suite your environment

cp sample.env .env

Run Dev

docker-compose up -d

Run Prod

docker-compose -f docker-compose-prod.yml up -d

Restart Containers

Bring down

docker-compose down

Bring up

docker-compose up -d

Configuration

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.

Create Slack App

Once logged in, go to "Your apps" option Your apps option

Then, select From scratch option Create Slack App

After that, set the app information Set app name

Finally, install the app in the workspace Install app

Setup Slack App

Once the app is created you need to select "Bots" option in the next window. Slect bots option

Then, in "Basic Information" get the "Signing Secret" value and paste it in the .env file Get signing secret

Now, set the app icon, preview color and description Set app info

After that, go to "OAuth & Permissions" to get "Bot User OAuth Token" and paste it in the env file Get bot auth token

Next, set the app scope Set app scope

Following, go to "Event Subscriptions" option and set the URL and the bot events Set request url

Finally, go to "App Home" option and activate the following options Set home options