It it a LINE bot utilizing ChatGPT with AWS serverless stack and DynamoDB.
Node.js 18.x npm 9.x Volta
- LINE developer account
- Open AI account (*Credit card registration is required)
- AWS account (*Credit card registration is required)
Manually register the following three environment variables with AWS. Go to "AWS Systems Manager" > "Parameter Store" to register environment variables.
- lineMessagingApiChannelSecret
- lineMessagingApiChannelAccessToken
- openAiSecret
git clone https://github.com/dyoshikawa/chatgpt-api-line-bot-aws-serverless
cd chatgpt-api-line-bot-aws-serverless
npm i
npm run cdk -w iac -- deploy
Go to the LINE administration page, allow the use of webhooks, and set the Endpoint URL. "Add Endpoint" + "/webhook" to the URL.