Inspiration

Planning a trip can be overwhelming—juggling destinations, costs, cultural dos and don'ts, and making the most of limited days. We wanted to simplify this using AI to craft day-wise plans tailored to each traveler’s budget and interests. That’s how TripWithin was born—smart, effortless trip planning in one click.

What it does

TripWithin is a minimalist web app that generates personalized, budget-conscious travel itineraries using Google’s Gemini AI. Users enter: -A destination -Their total budget (in INR) -Number of travel days And the app returns a day-by-day itinerary that includes: -Morning, afternoon, and evening activities -Meal suggestions or local cuisine ideas -Cultural/local tips and travel advice -Estimated cost per activity, aligned with the user's total budget -A clean card-based or timeline-style UI

How we built it

-Frontend: Built with minimal HTML, CSS, and JavaScript using responsive layout techniques. -Backend: Integrated the Gemini AI API via a secure API key from a .env file. -PDF Export: Used client-side JavaScript libraries to generate and download the itinerary as a PDF. -Badge: Added a custom Bolt badge with hover tooltip and external link. -Hosting: Designed for deployment on static or serverless environments.

Challenges we ran into

-Fine-tuning Gemini prompts to ensure only one activity per time slot was generated. -Parsing AI responses into a clean timeline layout while keeping costs accurate and consistent. -Maintaining a balance between detail and readability in the UI, especially on mobile screens. -Ensuring the cost distribution logic made sense for very low or very high budgets.

Accomplishments that we're proud of

-Built a fully functional AI-powered itinerary generator with zero clutter. -Got the cost-balancing and cultural tips generation working smoothly. -PDF and clipboard features work cross-platform. -Successfully integrated Gemini in a clean and fast web interface.

What we learned

-How to prompt Gemini for structured outputs. -Budget segmentation and cost allocation logic in AI prompts. -Designing intuitive UIs with only essential features. -Handling responsive layouts and PDF generation on the web.

What's next for TripWithin

-Add multi-destination trip support. -Let users pick interests (nature, nightlife, history, etc.) for more tailored results. -Support other currencies & automatic currency conversion. -Add support for AI-generated image previews or maps.

Enable login + save itineraries for later use.

Built With

Share this project:

Updates