HotelFinderAssistant
1.0.0
該項目是使用OpenAI API和Langchain在電報上的聊天機器人助手。它根據用戶的喜好收集信息,以建議酒店。
有兩個版本。在第一個中,我使用了燒瓶服務器。在第二個中,我使用AWS Lambda,AWS ECR和AWS DynamoDB部署了機器人。


在視頻中,您會注意到聊天機器人從歡迎用戶用電報用戶名來歡迎聊天機器人。一旦收集了所需的信息,該系統將利用預訂API提出酒店選擇。
falsk服務器:
docker build --no-cache -f Dockerfile.flask -t BookingMate .docker run -p 5000:5000 BookingMateAWS Lambda無服務器:
docker build --no-cache -f Dockerfile.lambda -t BookingMate .https://api.telegram.org/bot<Bot_token>/setWebhook?url=<API_GateWay_link> ,sur sur s sur sur sur he s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s sur te Message“ Webhook at set set set sere set'set'set'set'安裝需求並填充和執行API_KEYS.SH之後,您可以嘗試從Tests文件夾中啟示此測試。
- automated tests:
contains tests created using pytest to ensure each component from the application works as expected
To run it : `python -W ignore -m pytest tests/automated_tests/`
- manual tests : it has two files
- test_chatbot_manager : is a test for the bots perfomence with different scenarios, it helps to improve the prompt for Bots
to run it : `python -W ignore tests/manual_tests/test_chatbot_manager.py`
- test_telegram_bot : is a test for TelegramBot class if it has the ability to interact with user side
to use it :
- first : execute `python tests/manual_tests/test_telegram_bot.py`
- second : use telegram account to communicate with your bot