Skip to content

A slack bot build on top of Convex that responds like a user, using manually entered facts or previous messages by this user.

License

Notifications You must be signed in to change notification settings

preslavle/slack-gpt-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  1. Run npx convex init and npx convex deploy to create a new project.
  2. Obtain an OpenAI kei and store it in OPENAI_API_KEY.
  3. Create a new app in Slack, and store its OAUTH token in SLACK_OAUTH_TOKEN. The app needs to have the following permissions: ["app_mentions:read", "channels:history", "channels:read", "chat:write", "chat:write.customize", "users.profile:read"]
  4. Setup the Slack App Event Subscriptions to https://{deployment-name}.convex.site/slack/action-endpoint
  5. Add the App to your app workspace and add the bot to few channels. You should see the channels, users and messages, getting populated in the dashboard with each message send.

TODO: Make the following slack commands so they can be done without editing the dashboard.

  1. Optionally, run init:seedBots from the dashboard to setup couple of bots.
  2. Associate the bots with the channels they should respond to by setting their 'channel' field via the dashboard. Once this is setup, the bot should start responding in the respective channels.
  3. Optionally, set the user the bot should impersonate by setting its 'impersonated_user' via field via the dashboard. Once this is setup, the app will start computing embeddings for each messages send by this user, and will use them to train the bot.

About

A slack bot build on top of Convex that responds like a user, using manually entered facts or previous messages by this user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published