A powerful dual-bot system featuring a Hotel Booking Assistant and Restaurant Order Manager trainned with organic Dataset. Built with Python and MySQL for seamless automation of hospitality services.
- 📝 Process new room bookings
- 🔍 Check room availability in real-time
- 💾 Store booking information in MySQL database
- 🔄 Update room status automatically
- 🛒 Take new food orders
- 📋 Manage menu items
- 💳 Process order details
- 📦 Store order history in MySQL database
- 📍 Python 3.8+
- 🗄️ MySQL Database
- 🔌 mysql-connector-python
- 🤖 Python's built-in libraries
- Python 3.8 or higher
- MySQL Server
- pip (Python package manager)
- Basic knowledge of SQL queries
git clone https://github.com/yourusername/hotel-restaurant-bots.git
cd hotel-restaurant-bots
-- Create the hotel_bookings table
CREATE TABLE hotel_bookings (
booking_id INT AUTO_INCREMENT PRIMARY KEY,
guest_name VARCHAR(100),
room_number INT,
check_in DATE,
check_out DATE,
status VARCHAR(20),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Create the restaurant_orders table
CREATE TABLE restaurant_orders (
order_id INT AUTO_INCREMENT PRIMARY KEY,
customer_name VARCHAR(100),
items JSON,
total_amount DECIMAL(10,2),
order_status VARCHAR(20),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
Replace email password with your gmail SMTP to send email alert after booking.
# For Hotel Booking Bot
python bot.py
# For Restaurant Order Bot
python bot2.py
# Example interaction with Hotel Bot
python bot.py
# Bot commands:
/book - Book a new room
/availability - Check available rooms
/status - Check booking status
/help - Show all commands
# Example interaction with Restaurant Bot
python bot2.py
# Example commands:
/menu - Show menu items
/order - Place new order
/status - Check order status
/help - Show all commands
But you can chat normally, the bot will understand as it is trainned with real dataset.
Column | Type | Description |
---|---|---|
booking_id | INT | Primary Key |
guest_name | VARCHAR(100) | Guest's full name |
room_number | INT | Assigned room number |
check_in | DATE | Check-in date |
check_out | DATE | Check-out date |
status | VARCHAR(20) | Booking status |
created_at | TIMESTAMP | Booking creation time |
Column | Type | Description |
---|---|---|
order_id | INT | Primary Key |
customer_name | VARCHAR(100) | Customer's name |
items | JSON | Ordered items details |
total_amount | DECIMAL | Order total |
order_status | VARCHAR(20) | Order status |
created_at | TIMESTAMP | Order creation time |
Both bots can be configured through their respective config files:
config/hotel_config.py
config/restaurant_config.py
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support:
- 📧 Email: [email protected]
- 💬 Create an issue
- 📚 Check documentation
Give a ⭐️ if this project helped you!
Made with ❤️ by Robin | © 2024 All rights reserved