HotelFinderAssistant
1.0.0
이 프로젝트는 OpenAI API 및 Langchain을 사용하는 Telegram의 챗봇 어시스턴트입니다. 선호도에 따라 호텔을 제안하기 위해 사용자로부터 정보를 수집합니다.
두 가지 버전이 있습니다. 첫 번째에서는 플라스크 서버를 사용했습니다. 두 번째로 AWS Lambda, AWS ECR 및 AWS DynamoDB를 사용하여 봇을 배치했습니다.


비디오에서는 Telegram 사용자 이름으로 사용자를 환영하여 챗봇이 시작됩니다. 그런 다음 City, Check-In 및 Checkout과 같은 사용자 선호도에 대해 묻기 시작합니다. 필요한 정보를 수집하면 시스템은 예약 API를 활용하여 호텔 옵션을 제시합니다.
Falsk 서버 :
docker build --no-cache -f Dockerfile.flask -t BookingMate .docker run -p 5000:5000 BookingMate 실행하십시오AWS Lambda Serverless :
docker build --no-cache -f Dockerfile.lambda -t BookingMate .https://api.telegram.org/bot<Bot_token>/setWebhook?url=<API_GateWay_link> , "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