HotelFinderAssistant
1.0.0
โครงการนี้เป็นผู้ช่วย Chatbot ทางโทรเลขโดยใช้ OpenAI API และ Langchain มันรวบรวมข้อมูลจากผู้ใช้เพื่อแนะนำโรงแรมตามการตั้งค่าของพวกเขา
มีสองเวอร์ชัน ในครั้งแรกฉันใช้เซิร์ฟเวอร์ขวด ในอันที่สองฉันปรับใช้บอทโดยใช้ AWS Lambda, AWS ECR และ AWS DynamoDB


ในวิดีโอคุณจะสังเกตเห็น chatbot เริ่มต้นด้วยการต้อนรับผู้ใช้ด้วยชื่อผู้ใช้โทรเลขของพวกเขาจากนั้นมันเริ่มถามเกี่ยวกับการตั้งค่าของผู้ใช้เช่นเมืองเช็คอินและเช็คเอาต์ ... เมื่อมีการรวบรวมข้อมูลที่จำเป็นระบบจะใช้ API การจองเพื่อนำเสนอตัวเลือกโรงแรม
เซิร์ฟเวอร์ Falsk:
docker build --no-cache -f Dockerfile.flask -t BookingMate .docker run -p 5000:5000 BookingMateAWS Lambda Serverless:
docker build --no-cache -f Dockerfile.lambda -t BookingMate .https://api.telegram.org/bot<Bot_token>/setWebhook?url=<API_GateWay_link> เป็น sur ที่คุณได้รับข้อความ "webhook ถูกตั้งค่า"หลังจากติดตั้งข้อกำหนดและเติมและดำเนินการ API_KEYS.SH คุณสามารถลองกระตุ้นการทดสอบนี้จากโฟลเดอร์ทดสอบ
- 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