This bot will make booking in four services. It will then store user data in mysql database and create an event in user's google calendar, also send booking confirmation email. The four booking services are:
- Flight Booking
- Car Booking
- Holidays trip Booking
- Hotel Booking
Sign-in to Dialogflow and Create a new agent. Import the zip file from this repository to the agent.
npm install
Set up your SQL DB and provide credentials, create tables and rows according to the query written in sql.js.
Follow the official documentation of Google Calendar API and Generate your client id, client secret and OAuth2.0 token for your Dialogflow agent. Put these credentials in the calendar.js file.
Sign-in to Postmark. Set up your mail server and verify the sender signatures. Follow the official documentation of Postmark Setup. Generate the ServerClient key for your account and paste it into email.js.
Sign-in to the Heroku console. Create an app and follow the steps to deploy your app to Heroku. Get the URL of your App and paste it in Fulfillment tab of your Dialogflow agent
Note: Make sure to place the correct route to the url.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.