Slack Bot powered by OpenAI Chat Completion API
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.
- OpenAI API Key
- Slack App
- AWS Account
- Clone the repository:
git clone [email protected]:rummelonp/slack-openai-bot.git
- Install dependencies:
npm install
- 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>
- Deploy to AWS Lambda with Serverless:
serverless deploy --aws-profile=<your-aws-profile>
Once the Slack bot is installed and running, you can send mention to get responses from the OpenAI Chat Completion API.