All right, so I just wanted to showcase something that I recently played with - ChatGPT’s API. This is not something super crazy, but I love the outcome. I’m sharing it with developers who want to try out ChatGPT’s API for the first time. It’s not tedious at all.
When it comes to preparing an itinerary for each destination during my recent world travel, it can be quite tedious. Looking at hotels, searching on Google, and going through multiple steps to get it done. Although you can still use your normal ChatGPT to do this, it requires coming up with a prompt, copying the response, pasting it in a Word document, and exporting it as a PDF. It’s a time-consuming process.
To simplify this, I created a program that takes a simple short prompt as input and passes it to the API. The API responds with a formatted PDF that I can download. This way, I can quickly verify the hotels, check if they fit my budget, and plan my itinerary in one single step.
The program also allows selecting interests for personalized recommendations. Although the user interface is not visually appealing yet, the focus is on the functionalities and power of the API. The program generates a PDF with the itinerary, and it recommends hotels from bookings.com based on the budget and destination.
I have provided a link to the GitHub repository where you can find the code. Feel free to check it out and let me know your thoughts. Thanks!