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