Vision and What the App Does
Planning a trip can take a lot of time. Searching for destinations, budgeting, and deciding what to do each day often means jumping between multiple websites before creating a plan. I built TravelFlowAI to simplify that process.
TravelFlowAI is a travel planning application that generates a personalized itinerary based on a user's destination, budget, travel style, interests, and number of travel days. Instead of manually organizing everything, users fill out a simple form and receive a structured itinerary within seconds.
The goal of this project was to build a productivity tool that saves time and makes travel planning easier for anyone preparing for a trip.
How I Built It
I built the frontend using HTML, CSS, and JavaScript, keeping the interface simple and easy to use.
To deploy the application, I used AWS Amplify, which hosts the frontend and provides a public URL. When a user submits the form, the application sends an HTTP POST request to Amazon API Gateway, which then invokes an AWS Lambda function. Lambda processes the submitted information and returns a personalized itinerary as a JSON response that is displayed on the webpage.
One of the biggest challenges was configuring communication between the frontend and backend. Initially, every request failed because of a CORS configuration issue. After correctly configuring Amazon API Gateway, the frontend was able to communicate successfully with Lambda.
I also encountered an issue where the application displayed "undefined" instead of the itinerary. After debugging, I realized my frontend expected an itinerary field while my Lambda function returned a different JSON structure. Updating the response fixed the problem. Finally, I improved the application so it generates the correct number of travel days based on the user's input instead of always showing three days.
AWS Services Used/ Architecture Overview
TravelFlowAI uses a simple serverless architecture consisting of:
- AWS Amplify – Hosts the frontend application.
- Amazon API Gateway – Receives requests from the frontend and routes them to the backend.
- AWS Lambda – Processes user input and generates the travel itinerary.
The workflow is as follows:
- The user enters travel information into the frontend hosted on AWS Amplify.
- The frontend sends a request to Amazon API Gateway.
- API Gateway invokes AWS Lambda.
- Lambda generates a personalized itinerary.
- The itinerary is returned to the frontend and displayed to the user.
What I learned
This challenge gave me valuable hands-on experience building a serverless application using AWS services.
I learned how AWS Amplify, Amazon API Gateway, and AWS Lambda work together to deliver a complete application. More importantly, I gained practical debugging experience while solving CORS configuration issues and ensuring my frontend and backend exchanged data correctly.
The project also strengthened my confidence using Git and GitHub for version control and taught me the importance of testing throughout development.
If I continue improving TravelFlowAI, I would like to integrate Amazon Bedrock to generate richer AI-powered travel recommendations, include weather forecasts, suggest local attractions, and allow users to save previous itineraries.
Overall, this challenge helped me strengthen my cloud development skills and gave me a better understanding of building and deploying serverless applications on AWS.
Loading article