Skip to content

joe-king-sh/small-gptalk

Repository files navigation

Small GPTalk

small-gptalk-image

MIT License

AI English lesson powered by ChatGPT. 日本語版 README.md はこちらから

Abount Small GPTalk

  • SmallGPTalk is an app for enjoying SmallTalk (casual conversation) with an AI English teacher dispatched from ChatGPT on LINE.
  • When the lesson starts, the teacher will provide a topic. Choose your favorite topic and enjoy the conversation with the teacher.
  • When you finish the lesson, please let them know by saying "I'm finished". They will give you feedback on your conversation during the lesson.

Developer Information

SmallGPTalk is open-source software.

If you change the context information provided to ChatGPT, it can be applied in situations other than English conversation or even in other languages. Please feel free to fork the repository and play around with it.

Architecture

small-gptalk-architecture

  1. API Gateway receives the Messaging API webhook
  2. Perform the following in Lambda:
    1. Instruct ChatGPT to act as an English conversation teacher
    2. Manage the start and end of the lesson room
    3. Bridge messages between the user and ChatGPT
    4. Manage conversation history in DynamoDB

Other Design Information

Commands

Install

$ npm ci

Build

$ npm run build

Deploy

Register the following parameters in SSM Parameter Store in advance:

$ aws ssm put-parameter --name "CHANNEL_ACCESS_TOKEN" --type "String" --value "<Messaging APIのチャネルアクセストークン>"
$ aws ssm put-parameter --name "CHANNEL_SECRET" --type "String" --value "<Messaging APIのチャネルシークレット>"
$ aws ssm put-parameter --name "OPENAI_API_KEY" --type "String" --value "<OpenAI APIのAPI Key>"

CDK Deploy:

$ npm run deploy

Link

About

AI English lesson powered by ChatGPT API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published