HotelFinderAssistant
1.0.0
このプロジェクトは、Openai APIとLangchainを使用したTelegramのチャットボットアシスタントです。ユーザーから情報を収集して、好みに基づいてホテルを提案します。
2つのバージョンがあります。最初のものでは、フラスコサーバーを使用しました。 2番目では、AWS Lambda、AWS ECR、およびAWS dynamodbを使用してボットを展開しました。


ビデオでは、ユーザーをテレグラムユーザー名で歓迎することから始まるチャットボットに気付くでしょう。その後、City、チェックイン、チェックアウトなどのユーザーの好みについて尋ね始めます。必要な情報を収集すると、システムは予約APIを利用してホテルのオプションを提示します。
falskサーバー:
docker build --no-cache -f Dockerfile.flask -t BookingMate .docker run -p 5000:5000 BookingMateを実行しますAWSラムダサーバーレス:
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