modal-labs / modal-examples

Examples of programs built using Modal
https://modal.com/docs
MIT License
725 stars 170 forks source link

Example for GPT-3 Slack chatbot #216

Closed rayshan closed 1 year ago

rayshan commented 1 year ago

Hi! I was looking for a way to build a GPT-3 Slack chatbot. I'd like the bot to work like this: in a Slack channel, respond to @mention. I heard good things about Modal and would like to try. Would you consider adding an example?

Related example: https://autocode.com/openai/threads/build-your-own-chatgpt-discord-bot-using-autocode-and-openai-84403434/

erikbern commented 1 year ago

There's an example of a Stable Diffusion slack bot here: https://github.com/modal-labs/modal-examples/blob/main/10_integrations/stable_diffusion_slackbot.py – is that useful for what you're building?

rayshan commented 1 year ago

I think so, I'll try to adapt it, thanks!