Skip to content

🤖 Slack Bot powered by OpenAI Chat Completion API

Notifications You must be signed in to change notification settings

rummelonp/slack-openai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-openai-bot

Slack Bot powered by OpenAI Chat Completion API

Overview

This is a Slack Bot project that utilizes the OpenAI Chat Completion API.
It is written in TypeScript, and uses the Slack Bolt Framework with the Slack Events API.
For configuration management, we employed the Serverless Framework, and deploy the code to AWS Lambda.

Prerequisites

  • OpenAI API Key
  • Slack App
  • AWS Account

Installation

  1. Clone the repository:
git clone git@github.com:rummelonp/slack-openai-bot.git
  1. Install dependencies:
npm install
  1. Set environment variables:
export SLACK_SIGNING_SECRET=<your-slack-signing-secret>
export SLACK_BOT_TOKEN=<your-slack-bot-token>
export OPENAI_API_KEY=<your-openai-key>
  1. Deploy to AWS Lambda with Serverless:
serverless deploy --aws-profile=<your-aws-profile>

Usage

Once the Slack bot is installed and running, you can send mention to get responses from the OpenAI Chat Completion API.

License

MIT

About

🤖 Slack Bot powered by OpenAI Chat Completion API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published