Clone the repository with the client submodule:
git clone --recursive git@github.com:2k4sm/HotelBot.git
Follow this to get started with backend Getting Started With Backend
Follow this to get started with frontendGetting Started With Frontend
The project involves creating a chatbot for hotel booking management. The bot will handle user interactions for booking rooms, provide current booking information.
- Respond to users with room details.
- Create bookings after taking details from users.
- Store room booking information.
- Uses conversation history as a context throughout the conversation.
- User initiates a conversation about booking a resort room.
- Bot fetches room options from an API and responds with a list of room options.
- User selects a room.
- Bot provides pricing information.
- User confirms they want to proceed with booking.
- Bot makes a simulated API call to book the room and returns a booking confirmation with a booking ID.
POST /chat: Handle user messages and return chatbot responses.
endpoint : POST "https://api-hotelbot.onrender.com/api/gemini/chat",
payload : {
{message : <"message input">}
}
- Fetch room options.
- Store and use conversation history.
- Simulate room booking.
- Node.js
- Express.js
- GEMINI API
Maintain conversation history throughout the chat session.
Implement function calling to simulate external API interactions (room booking).
Implement basic error handling for invalid user inputs or API failures.
- HTML
- CSS
- JavaScript or React.js
- Simple interface for interacting with the chatbot.
- Store booking details.
- Store Conversation.
- Handle invalid user inputs gracefully.
- Manage API failures with appropriate error messages.
This document outlines the technical requirements for developing a hotel booking management chatbot. The bot will facilitate room bookings, provide booking information.