This project implements a chatbot for hotel room bookings using Express.js and OpenAI's API.
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file in the root directory with the following content:OPENAI_API_KEY=your_openai_api_key(paste your key here) PORT=3000
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:3000
- Book hotel rooms
- Check room availability
- Cancel bookings
- Modify existing bookings
POST /api/book
- Book a roomGET /api/availability
- Check room availabilityDELETE /api/cancel
- Cancel a bookingPUT /api/modify
- Modify a booking
- Node.js
- OpenAI API
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request
This project is licensed under the MIT License.