AI English lesson powered by ChatGPT. 日本語版 README.md はこちらから
- 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.
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.
- API Gateway receives the Messaging API webhook
- Perform the following in Lambda:
- Instruct ChatGPT to act as an English conversation teacher
- Manage the start and end of the lesson room
- Bridge messages between the user and ChatGPT
- Manage conversation history in DynamoDB
$ npm ci
$ npm run build
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