Skip to content

renukarapolu/smart_hotel_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏨 Smart Hotel Reservation Agent Welcome to the Smart Hotel Reservation Agent – an AI-powered web application that helps users search for the best hotel deals across multiple booking sites and assists in completing hotel bookings conversationally. Built with Streamlit, powered by Gemini LLM via Google ADK, this project delivers an intelligent and user-friendly hotel booking experience.

✨ Features

πŸ” Hotel Search Assistant Uses Google Search and AI to retrieve up to 15 hotel options based on user queries.

πŸ’° Price Comparison Engine Simulates pricing from multiple platforms like Booking.com, Agoda, Trivago, etc., and presents the best deals.

πŸ›οΈ Conversational Booking Flow Interactive assistant to help users book a hotel via steps like selecting room type, choosing dates, entering guest info, and final confirmation.

πŸ“Š Summary View Displays a concise summary of search results including price ranges and total hotels found.

βœ… Real-Time Booking Status Tracking Sidebar panel shows the current step and lets users cancel bookings if needed.

πŸš€ Technologies Used Python 3.10+ Core programming language Streamlit Frontend web interface Google ADK LLM-based agents + tool integration Gemini-2.0-Flash Language model used for search and conversation LiteLLM Lightweight LLM model wrapper Pydantic Data validation for structured responses

πŸ“¦ Installation Make sure you have Python 3.10+ installed.

Clone the Repository git clone https://github.com/your-username/hotel-agent.git cd hotel-agent

Install Dependencies pip install -r requirements.txt

Set Google API Key Replace in the code or use environment variable: export GOOGLE_API_KEY="your_google_api_key_here"

πŸ“‚ File Structure . β”œβ”€β”€ hotel_agent_app.py # Main Streamlit application β”œβ”€β”€ requirements.txt # Project dependencies └── README.md # This file 🧠 Agent Architecture The app utilizes two custom LLM Agents:

1. πŸ” hotel_search_agent Searches for hotels via google_search tool. Returns structured hotel data in JSON format. Enriches hotel data with mock price comparison from 8 booking sites.

2. πŸ“˜ booking_agent Conversational flow for hotel booking. Handles room type selection, dates, guest info, and confirmation. Maintains multi-step booking state in memory.

πŸ’¬ Sample Commands Try the following prompts: Find hotels in Goa under 10000 Book The Leela Palace 2 guests for 2 nights confirm booking

πŸ§ͺ Demo Walkthrough

  1. Enter prompt like "Find hotels in Mumbai"
  2. View hotel cards with best prices from multiple sites
  3. Click "πŸ“‹ Book" to begin booking
  4. Select room type, dates, number of guests
  5. Confirm your booking and receive booking ID

πŸ“Œ Notes The hotel prices and links are mocked for demonstration. Booking logic is state-driven and easily extendable. All sessions are stored in-memory, not persistent.

🧾 Requirements litellm streamlit google-adk Install via:

bash pip install -r requirements.txt

πŸ›  Future Enhancements πŸ” Add authentication and user accounts 🧠 Integrate real hotel APIs like Booking.com, Expedia πŸ“§ Send email confirmations using SMTP or SendGrid πŸ’Ύ Add persistent session/database support

About

AI-powered hotel booking assistant built with Streamlit and Google ADK. Search, compare, and book hotels conversationally with real-time booking flow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages