Skip to content

xiehust/Lark-ChatGptBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Lark-ChatGptBot

Build a ChatGpt bot in Lark (飞书) using OpenAI's gpt-3.5-turbo model. The backend is hosted on AWS's serveless, and it is free. For steps in Lark side, please refer to develop-a-bot-in-5-minute

Steps

  1. create a .env file in folder cdkstack/, add the your actual variables.
DB_TABLE=lark_messages
LARK_APPID=cli_xxxx
LARK_APP_SECRET=xxxx
LARK_TOKEN=xxxx
OPENAI_API_KEY=sk-MjDVnhmnxxxx
START_CMD=/rs
  1. Install the AWS CDK
    npm install -g aws-cdk

  2. In folder cdkstack/
    run cdk bootstrap
    run cdk synth
    run cdk deploy

  3. Once deply success, you can get the api endpoint from the output.
    For example, image Use this URL as the callback url for lark message event.

  4. After all dones. congrats
    img_v2_a6531f9a-0070-41e7-930b-ef97c539ff3g

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published