Sign inSign up

maktouch/slack-chatgpt

By maktouch

•Updated over 3 years ago

Run your own OpenAI assistant in your Slack

Image
0

682

maktouch/slack-chatgpt repository overview

⁠Slack Chat-GPT3 Bot, powered by OpenAI

This little project is to run your own OpenAI assistant right in your Slack.

Git Repo: https://github.com/maktouch/slack-chatgpt⁠

⁠Requirements

  • OpenAI API Key
  • MySQL (I just use Planetscale)
  • Slack App with the following:
    • OAuth scopes:
      • app_mentions:read
      • channels:history
      • channels:read
      • chat:write
      • groups:history
      • im:history
      • mpim:history
    • Events subscriptions:
      • app_mention
      • message.channels
      • message.groups
      • message.im
      • message.mpim

⁠Installation

This is nicely packaged in a Docker container hosted on Dockerhub! docker pull maktouch/slack-chatgpt:latest

The available env configurations are

envdescriptionrequireddefault
SLACK_BOT_TOKENThe Slack Bot token (starts with xoxb)yes-
SLACK_SIGNING_TOKENThe Slack signing tokenyes-
SLACK_APP_TOKENThe Slack App token (starts with xapp)yes-
MYSQL_HOSTMySQL Hostyes-
MYSQL_DATABASEMySQL Database Nameyes-
MYSQL_USERNAMEMySQL Usernameyes-
MYSQL_PASSWORDMySQL Passwordyes-
MYSQL_PORTMySQL Portno3306
PORTThe port that Slack Bolt will useno3120
OPENAI_API_KEYThe OpenAI API Keyyes-
OPENAI_MODELDocs⁠notext-davinci-003
OPENAI_TEMPERATUREDocs⁠no-
OPENAI_MAX_TOKENDocs⁠no**** -
OPENAI_TOP_PDocs⁠no-
OPENAI_FREQUENCY_PENALTYDocs⁠no-
OPENAI_PRESENCE_PENALTYDocs⁠no-
OPENAI_AI_SETUPThe initial text that will be prepended before being sent to ChatGPTnoThe following is a conversation with an AI assistant on Slack. The assistant is helpful, creative, clever, very friendly, and always wraps code with backticks.

Tag summary

Content type

Image

Digest

sha256:ca660a314…

Size

95.6 MB

Last updated

over 3 years ago

docker pull maktouch/slack-chatgpt