{"id":26026375,"url":"https://github.com/tanvir-robin/ai-chatbots-wth-db","last_synced_at":"2025-08-16T02:03:32.555Z","repository":{"id":264701546,"uuid":"894134905","full_name":"tanvir-robin/AI-Chatbots-wth-db","owner":"tanvir-robin","description":"Two simple AI chatbot that can book hotel rooms for customers or take restaurant orders and can save them on mySQL database.","archived":false,"fork":false,"pushed_at":"2024-11-25T20:33:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T14:58:22.767Z","etag":null,"topics":["ai","chatbot","machine-learning","python-chatbot","supervised-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanvir-robin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-25T20:19:28.000Z","updated_at":"2024-11-25T20:35:36.000Z","dependencies_parsed_at":"2024-11-25T21:42:01.576Z","dependency_job_id":null,"html_url":"https://github.com/tanvir-robin/AI-Chatbots-wth-db","commit_stats":null,"previous_names":["tanvir-robin/chatbot-hotel-booking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tanvir-robin/AI-Chatbots-wth-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanvir-robin%2FAI-Chatbots-wth-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanvir-robin%2FAI-Chatbots-wth-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanvir-robin%2FAI-Chatbots-wth-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanvir-robin%2FAI-Chatbots-wth-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanvir-robin","download_url":"https://codeload.github.com/tanvir-robin/AI-Chatbots-wth-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanvir-robin%2FAI-Chatbots-wth-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270657705,"owners_count":24623464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatbot","machine-learning","python-chatbot","supervised-learning"],"created_at":"2025-03-06T14:53:49.007Z","updated_at":"2025-08-16T02:03:32.506Z","avatar_url":"https://github.com/tanvir-robin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Hotel \u0026 Restaurant Management Chatbots\n\nA 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.\n\n## 🌟 Features\n\n### 🏨 Hotel Booking Bot\n- 📝 Process new room bookings\n- 🔍 Check room availability in real-time\n- 💾 Store booking information in MySQL database\n- 🔄 Update room status automatically\n\n### 🍽️ Restaurant Order Bot\n- 🛒 Take new food orders\n- 📋 Manage menu items\n- 💳 Process order details\n- 📦 Store order history in MySQL database\n\n## 🛠️ Tech Stack\n- 📍 Python 3.8+\n- 🗄️ MySQL Database\n- 🔌 mysql-connector-python\n- 🤖 Python's built-in libraries\n\n## 📋 Prerequisites\n- Python 3.8 or higher\n- MySQL Server\n- pip (Python package manager)\n- Basic knowledge of SQL queries\n\n## 🚀 Getting Started\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/yourusername/hotel-restaurant-bots.git\ncd hotel-restaurant-bots\n```\n\n\n\n### 2. Database Setup\n```sql\n-- Create the hotel_bookings table\nCREATE TABLE hotel_bookings (\n    booking_id INT AUTO_INCREMENT PRIMARY KEY,\n    guest_name VARCHAR(100),\n    room_number INT,\n    check_in DATE,\n    check_out DATE,\n    status VARCHAR(20),\n    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\n-- Create the restaurant_orders table\nCREATE TABLE restaurant_orders (\n    order_id INT AUTO_INCREMENT PRIMARY KEY,\n    customer_name VARCHAR(100),\n    items JSON,\n    total_amount DECIMAL(10,2),\n    order_status VARCHAR(20),\n    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n### 4. Environment Setup\nReplace email password with your gmail SMTP to send email alert after booking.\n\n### 5. Run the Bots\n```bash\n# For Hotel Booking Bot\npython bot.py\n\n# For Restaurant Order Bot\npython bot2.py\n```\n\n## 💻 Usage\n\n### Hotel Booking Bot\n```python\n# Example interaction with Hotel Bot\npython bot.py\n\n# Bot commands:\n/book - Book a new room\n/availability - Check available rooms\n/status - Check booking status\n/help - Show all commands\n```\n\n### Restaurant Order Bot\n```python\n# Example interaction with Restaurant Bot\npython bot2.py\n\n# Example commands:\n/menu - Show menu items\n/order - Place new order\n/status - Check order status\n/help - Show all commands\n```\n\n\u003e But you can chat normally, the bot will understand as it is trainned with real dataset.\n\n## 📊 Database Schema\n\n### Hotel Bookings Table\n| Column | Type | Description |\n|--------|------|-------------|\n| booking_id | INT | Primary Key |\n| guest_name | VARCHAR(100) | Guest's full name |\n| room_number | INT | Assigned room number |\n| check_in | DATE | Check-in date |\n| check_out | DATE | Check-out date |\n| status | VARCHAR(20) | Booking status |\n| created_at | TIMESTAMP | Booking creation time |\n\n### Restaurant Orders Table\n| Column | Type | Description |\n|--------|------|-------------|\n| order_id | INT | Primary Key |\n| customer_name | VARCHAR(100) | Customer's name |\n| items | JSON | Ordered items details |\n| total_amount | DECIMAL | Order total |\n| order_status | VARCHAR(20) | Order status |\n| created_at | TIMESTAMP | Order creation time |\n\n## 🔧 Configuration\nBoth bots can be configured through their respective config files:\n- `config/hotel_config.py`\n- `config/restaurant_config.py`\n\n## 🤝 Contributing\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📝 License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👥 Support\nFor support:\n- 📧 Email: tanvir.rrrabin@gmail.com\n- 💬 Create an issue\n- 📚 Check documentation\n\n## ⭐ Show your support\nGive a ⭐️ if this project helped you!\n\n---\nMade with ❤️ by Robin | © 2024 All rights reserved\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanvir-robin%2Fai-chatbots-wth-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanvir-robin%2Fai-chatbots-wth-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanvir-robin%2Fai-chatbots-wth-db/lists"}