- Google Cloud Platform Account
- LINE Channel (Access Token & Secret)
- OpenAI API Key
- Create a Cloud Function with public access and add the following runtime environment variables:
CHANNEL_ACCESS_TOKEN= CHANNEL_SECRET= OPENAI_API_KEY=
- Copy the contents of
main.py
andrequirements.txt
to the cloud function and set its entrypoint tolinebot
- Deploy the cloud function
- Set the LINE Channel Webhook URL to the cloud function URL
- Verify the service is up and running