HotelFinderAssistant
1.0.0
هذا المشروع هو مساعد chatbot في Telegram باستخدام Openai API و Langchain. يجمع المعلومات من المستخدمين لاقتراح الفنادق بناءً على تفضيلاتهم.
هناك نسختان. في الأول ، استخدمت خادم قارورة. في الثانية ، قمت بنشر الروبوت باستخدام AWS Lambda و AWS ECR و AWS DynamoDB.


في الفيديو ، ستلاحظ chatbot التي تبدأ بالترحيب بالمستخدم باسم مستخدم Telegram الخاص بهم. ثم يبدأ في السؤال عن تفضيلات المستخدم ، مثل المدينة ، تسجيل الوصول ، والخروج ... بمجرد جمع المعلومات المطلوبة ، سيستخدم النظام واجهة برمجة تطبيقات الحجز لتقديم خيارات الفندق.
خادم 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> ، كن سوبًا ، حيث يمكنك الحصول على الرسالة "تم تعيين Webhook" "تم تعيين 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