A comprehensive AI-powered concierge system for hotel guests, featuring cultural intelligence integration, LLM-powered recommendations, and modern web interface.
Lento AI Concierge is an intelligent hotel concierge system that provides personalized recommendations to guests using advanced AI technologies including Horizon Beta LLM and Qloo Cultural Intelligence API.
- π€ AI-Powered Recommendations: Horizon Beta LLM for natural language processing
- π Cultural Intelligence: Qloo API integration for location-based recommendations
- πΉ Musical Theme: Elegant piano-themed user interface
- β‘ Real-time Chat: Interactive chat interface with typing indicators
- π± Responsive Design: Mobile-first responsive web interface
- π§ Quick Access Menus: Categorized recommendation cards
- π Analytics: Request tracking and performance monitoring
qloo/
βββ π agentic.ai/ # Main Application (Backend + Frontend)
β βββ app/ # Backend API
β β βββ main.py # FastAPI application
β β βββ config.py # Configuration settings
β β βββ core/ # Core business logic
β β β βββ concierge.py # Main Concierge class
β β β βββ qloo_integration.py # Qloo API integration
β β β βββ metrics.py # Metrics collection
β β β βββ agent/ # AI Agent components
β β β βββ llm/ # LLM integration
β β β βββ tools/ # API tools
β β βββ schemas/ # Data models
β β βββ utils/ # Utilities
β βββ static/ # Frontend
β β βββ chat.html # Main UI (979 lines)
β βββ tests/ # Test files
β βββ logs/ # Application logs
β βββ requirements.txt # Python dependencies
β βββ run.py # Startup script
βββ π module.qlooapi/ # Qloo API Module
βββ π± physical.ai/ # Physical Integration
βββ π docs/ # Documentation
βββ π« .gitignore # Git ignore rules
- FastAPI: Modern Python web framework
- OpenRouter API: Horizon Beta LLM access
- Qloo API: Cultural intelligence and recommendations
- Async/Await: Asynchronous programming
- Pydantic: Data validation and serialization
- Pure HTML5/CSS3/JavaScript: No framework dependencies
- Responsive Design: Mobile-first approach
- CSS Animations: Piano-themed visual effects
- REST API Integration: Backend communication
- Horizon Beta LLM: 256K context, $0/M tokens
- Qloo Cultural Intelligence: Restaurant and activity data
- Intent Analysis: User query understanding
- Response Generation: Natural language responses
- Python 3.9+
- Virtual environment
- OpenRouter API key
- Qloo API key
- Clone the repository
git clone https://github.com/bahadirciloglu/qloo.git
cd qloo- Setup backend
cd agentic.ai
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt- Configure environment variables
export OPENROUTER_API_KEY="your_openrouter_api_key"
export QLOO_API_KEY="your_qloo_api_key"
export QLOO_BASE_URL="https://hackathon.api.qloo.com"
export PYTHONPATH="/path/to/qloo/module.qlooapi:$PYTHONPATH"- Start the application
python -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000- Access the application
- Open browser:
http://localhost:8000 - Frontend:
http://localhost:8000/ - API Docs:
http://localhost:8000/docs
GET /- Main chat interfacePOST /chat- Chat API endpointGET /metrics- System metricsGET /hotel-info- Hotel informationGET /quick-recommendations/{category}- Quick recommendations
curl -X POST http://localhost:8000/chat \
-H "Content-Type: application/json" \
-d '{
"guest_id": "guest_123",
"message": "What are the best Turkish restaurants near the hotel?"
}'- πΉ Musical Theme: Piano-inspired design with floating music notes
- π± Responsive Grid: Auto-adapting layout for all devices
- β‘ Quick Access Cards: 8 categorized recommendation categories
- π¬ Real-time Chat: Interactive chat with typing indicators
- π Modal Popups: Detailed recommendation displays
- π½οΈ Food & Beverage - Restaurants, cafes, local cuisine
- οΏ½οΏ½ Wellness Support - Spa, massage, relaxation areas
- π Nearby Places - Market, pharmacy, transportation
- ποΈ Tourist Attractions - Museums, historical sites
- π Transportation - Metro, bus, tram, taxi calling
- π Tonight - Night venues, live music, entertainment
- π Events - Concerts, theater, festivals
- π¨ Hotel Services - WiFi, room service, housekeeping
User Query β Intent Analysis β API Execution β Response Generation
β β β β
Horizon Beta β Qloo API β Cultural Data β Natural Language
- Intent Analyzer: Understands user queries
- API Executor: Manages external API calls
- Response Generator: Creates natural language responses
- Metrics Collector: Tracks performance and usage
OPENROUTER_API_KEY=sk-or-v1-... # OpenRouter API key
QLOO_API_KEY=mo8xSbrp5x... # Qloo API key
QLOO_BASE_URL=https://hackathon.api.qloo.com
PYTHONPATH=/path/to/module.qlooapi- Model:
openrouter/horizon-beta - Context: 256K tokens
- Cost: $0/M input and output tokens
- Fallback: Mock responses for rate limiting
- Request count and success rate
- Response time and performance
- Language usage patterns
- Intent analysis statistics
- API call success rates
- Application logs in
logs/directory - Daily log rotation
- Error tracking and debugging
- Performance monitoring
test_concierge_1.py- Concierge functionality teststest_gemini_2.py- LLM integration teststest_qloo_api_3.py- Qloo API teststest_intent_analysis_4.py- Intent analysis teststest_full_integration_5.py- End-to-end tests
cd agentic.ai
python -m pytest tests/- Configure production environment variables
- Set up reverse proxy (nginx)
- Configure SSL certificates
- Set up monitoring and logging
- Deploy to cloud platform
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]- Response Time: < 2 seconds average
- Concurrent Users: 100+ supported
- Uptime: 99.9% target
- Memory Usage: < 512MB typical
- Async/await for I/O operations
- Connection pooling for API calls
- Caching for frequent requests
- Rate limiting and fallback systems
- CORS middleware configuration
- Input validation and sanitization
- API key protection
- Rate limiting
- Error handling without data exposure
- API documentation:
/docsendpoint - Code comments: Comprehensive inline documentation
- Architecture diagrams: Sequence diagrams included
- Deployment guides: Step-by-step instructions
- Fork the repository
- Create feature branch
- Make changes with tests
- Submit pull request
- Python PEP 8 compliance
- Type hints for functions
- Comprehensive error handling
- Unit test coverage
This project is licensed under the MIT License - see the LICENSE file for details.
- Developer: BahadΔ±r ΓiloΔlu
- AI Integration: Horizon Beta LLM
- Cultural Intelligence: Qloo API
- Frontend Design: Custom CSS/JavaScript
- Check logs in
logs/directory - Verify API keys and environment variables
- Ensure all dependencies are installed
- Check network connectivity
- ModuleNotFoundError: Check PYTHONPATH configuration
- API Rate Limiting: System uses mock responses as fallback
- Connection Errors: Verify backend is running on port 8000
- β Migrated to Horizon Beta LLM
- β Integrated OpenRouter API
- β Added mock response fallback
- β Translated all content to English
- β Enhanced error handling
- β Improved logging system
- π Multi-language support
- π Voice interface integration
- π Advanced analytics dashboard
- π Mobile app development
- π Integration with hotel management systems
πΉ Lento AI Concierge - Your elegant musical assistant powered by cutting-edge AI technology