Slack bot which interacts with ChatGPT.
-
Watch the following Tech with Tim tutorials, Part 1 to find out how to install python, the NGROK proxy and the Slack python modules. Watch Part 2 and Part 3 for the Slack Bot Code.
-
Install Flask and playwright. (playwright will ask you to "playwright install" once after actual install)
-
Check out Taranjeet Singh's chatgpt-whatsapp-bot repo and Daniel Gross's whatsapp-gpt repo for more info.
-
Pay attention to this code, its very important due to Slacks 3 second limit on response time.
-
Once everything is installed and configured, the order of initialization is:
- Start NGROK
- run the bot.py file - I use VS Code with the Python and Code Runner Extensions.
- update your Slack app's Slack Endpoints with the NGROK base URL on api.slack.com
- Chat the bot in Slack.