This is Linebot to extract event from message and add to google calendar, using flask to build local server, ngrok service to build line webhook URL and llama-cpp-python to run LLM locally.
It is welcome to open issue or pull requests to make this project better.🎉
- To run this project locally, follow this steps:
- Clone the repository of this project by excuting the following command
git clone https://github.com/Jayyyu1w/Calendar-Linebot.git
or
git clone git@github.com:Jayyyu1w/Calendar-Linebot.git- Install the required packages by running the folloeing command:
pip install -r requirements.txt-
Install ngrok
-
Login Line Developers
-
Add lineapi.txt and put Channel access token in first line, Channel secret in second line.
-
Add model and paste model path to llm_extract.py
-
Run server.py
python server.py
- Run ngrok service
ngrok http <your local server URL>
- Put ngrok URL to Line Bot Webhook URL and add /callback at back
<ngrok URL>/callback
- All done🤗