Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.03 KB

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 [email protected]: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