- The system will ask travel details to the user like origin, destination, travel date, number of guests, etc.
- The user will answer the queries and based on this he will get hotel suggestions(on other channel also like email/whatsapp).
- The user will select a hotel and further enter his contact details like phone number, email address, etc.
- The user will receive a payment link on his email address. (You may provide a dummy link of upi payment)
- After successful payment he will be informed about the booking status whether it is booked or failed.
To implement an Application that allows users to book a hotel ticket using voice commands, we are following these steps:
- For prototyping and saving time, Instead of building our own NLP model. We’ll be using Google Speech-to-text API via react-speech-recognition.
- When a user initiates the booking process, the application will ask for their travel details, such as the origin, destination, travel date, number of guests, etc.
- The Application then uses Google Hotels API to search for available hotels that match the user's criteria. The system then provide the user with a list of hotel suggestions, either through the voice assistant or through other channels like email or WhatsApp using emailJS and whatsApp business API.
- The user can then select a hotel from the list and provide their contact details, such as their phone number and email address. The application will store this information securely in SQL database and use it to send the user a payment link.
- The application will be sending a payment link generated from Stripe (payment gateway) to the respective email address using Nodemailer.
- After the payment is completed, the Application will inform the user whether the booking was successful or not. If there are any issues with the booking, such as a lack of availability or a problem with the payment, the application will provide clear and helpful feedback to the user.
- Overall, the key to building a successful voice-based hotel booking application is to make the user experience as smooth and intuitive as possible.
- react-speech-recognition
https://www.npmjs.com/package/react-speech-recognition
- Travel Advisor Hotel's API
https://rapidapi.com/apidojo/api/travel-advisor
- Geocoding API
https://rapidapi.com/trueway/api/trueway-geocoding
- WhatsApp Business API Twilio
https://www.twilio.com/whatsapp
- NodeMailer
https://github.com/nodemailer/nodemailer
- Stripe Payment Gateway
https://dashboard.stripe.com/test/payments
innerve7.mp4
high quality on Drive, Github only allows 10MB
- Adding More Features to the application, For Example: Flight ticket using voice commands, Tour package bookings and Personalised tour facility.
- Improving the User Interface, more similar to that of Udchalo.
- By using natural language processing and clear feedback, we can ensure that users are able to book a hotel ticket quickly and easily, without having to navigate a complex user interface.