A comprehensive hotel room reservation system with LiveKit voice AI integration, featuring real-time voice interaction, database management, and Excel export functionality.
- Voice AI Receptionist: Real-time voice interaction using LiveKit and OpenAI
- Room Management: SQLite database with 8 different room types
- Special Occasion Discounts: Automatic discount calculation for honeymoon, birthday, anniversary, etc.
- Excel Export: Automatic export of booking data for non-technical staff
- Function Tools: AI can access database functions using
@function_tooldecorators
- Normal Room - $50-$80 per night
- Couple Room - $80-$120 per night
- 2 Beds Room - $100-$150 per night
- 4 Beds Room - $150-$200 per night
- Queen Size Room - $120-$180 per night
- Honeymoon Suite - $200-$300 per night (15% discount)
- Deluxe Suite - $250-$400 per night
- Luxury Suite - $350-$600 per night
- Honeymoon: 15% discount
- Birthday: 10% discount
- Anniversary: 12% discount
- Wedding: 20% discount
- Special celebrations: 8% discount
pip install -r requirements.txtCreate a .env file with your credentials:
# OpenAI API Key for LLM, STT, and TTS
OPENAI_API_KEY=your_openai_api_key_here
# LiveKit Cloud credentials
LIVEKIT_API_KEY=your_livekit_api_key_here
LIVEKIT_API_SECRET=your_livekit_api_secret_here
LIVEKIT_URL=wss://your-livekit-url.livekit.cloudpython agent.py download-filespython agent.py consolepython agent.py devUse the LiveKit Agents playground to interact with your voice AI agent.
agent.py- Main LiveKit agent with voice AI integrationapi.py- Function tools with@function_tooldecorators for AI accessdbdriver.py- SQLite database management and operationsprompts.py- Conversation prompts and system instructionsrequirements.txt- Python dependenciesenv_example.txt- Environment variables template
The AI agent has access to the following functions:
search_available_rooms()- Search rooms by type or get all typescheck_room_availability()- Check if a room type is availableget_room_pricing()- Get pricing for a specific room typebook_room()- Book a room for a guestget_room_details()- Get detailed room informationsuggest_room_for_occasion()- Suggest rooms based on occasion and budgetcalculate_discount()- Calculate discount for special occasionsget_booking_summary()- Get overall booking statistics
- Automatic room initialization with sample data
- Real-time availability tracking
- Booking history with special occasion tracking
- Automatic Excel export after each booking
- Discount calculation and application
All operations are logged with timestamps and operation details for debugging and monitoring.
- Set up your LiveKit Cloud account
- Configure your OpenAI API key
- Update the
.envfile with your credentials - Run the agent in development mode
- Test voice interactions through the LiveKit playground