slack-chatgpt
slack-chatgpt copied to clipboard
Reply to slack threads with chatGPT
slack-gpt
Documentation: https://Glyphack.github.io/slack-gpt
Source Code: https://github.com/Glyphack/slack-gpt
PyPI: https://pypi.org/project/slack-gpt/
Reply to slack message without thinking with GPT3
Usage
Step 1. Create an slack bot
- Goto https://api.slack.com/apps and create new app
- Enable Events for the bot and subscribe to event
app_mention
and set the callback to "yourdomain.com/slack/events" - Add permission in Oauth & Permissions tab add the following permissions
app_mentions:read
channels:history
chat:write
chat:write.public
commands
groups:history
im:history
incoming-webhook
mpim:history
- Copy the Bot User OAuth Token
- Copy the Signing Secret
Step 2. Register in chatGPT
Step 3. Fill the secrets
Open src/slack_gpt/main.py
and fill the env values from secrets above.
Step 4
...
Step 5
Profit
Development
- Clone this repository
- Requirements:
- Poetry
- Python 3.7+
- Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
Testing
pytest