Skip to content

Travel Planning Agent Platform

Overview

This project requires you to build an intelligent travel planning Agent platform from scratch, based on a real PRD. You'll build a complete AI product that accepts structured input, generates daily itineraries, and supports saving and reusing plans — not just a chatbot, but a product with task management capabilities.

This is the comprehensive practical section of Stage 2. The core challenge: how to make AI generate structured, actionable itineraries instead of a wall of unstructured text.

Prerequisites

Before starting this project, you should already be familiar with:

Learning Objectives

After completing this project, you will be able to:

  1. Read a PRD and extract a development task list for an Agent platform
  2. Design structured input forms and structured output formats
  3. Implement an Agent orchestration layer handling user input, model calls, and result storage
  4. Build a "generate → save → reuse" business loop
  5. Complete end-to-end integration and deliver a demo-ready AI product prototype

Project Overview

You will build an intelligent travel planning Agent platform:

FeatureDescription
Itinerary PlanningUsers enter origin, destination, dates, budget, and preferences; the system generates daily itineraries
Budget BreakdownItinerary results include budget allocation and suggestions
History ManagementUsers can save, regenerate, and export past plans
Admin DashboardAdmins view popular destinations, failed tasks, and user feedback

PRD

The requirements document for this project is on GitHub: View PRD

Part 1: Requirements Analysis

1.1 Read the PRD

Open the PRD document and answer these key questions:

  • Should the first version only support single-destination trips?
  • Must the itinerary output be structured? What is the structure?
  • How deep should export capabilities go? (share link / PDF / image)
  • What is the scope of admin statistics and task logs?

WARNING

If the above questions don't have clear answers, don't start coding. Unclear requirements are the most common cause of rework.

1.2 Confirm System Architecture

mermaid
flowchart TD
  prd["PRD"] --> planner["Planning Page"]
  planner --> agent["Agent Orchestration Layer"]
  agent --> model["Model Call"]
  agent --> db["Database"]
  db --> history["Plan History"]
  db --> admin["Admin Statistics & Logs"]

Part 2: Project Scaffolding

2.1 Generate Frontend Pages

Prompt reference:

text
Based on the current PRD, help me generate a frontend scaffold for an intelligent travel planning Agent platform.

Requirements:
1. Pages: homepage, planning page, itinerary detail, history, admin dashboard
2. Planning page has a form on the left and result preview on the right
3. Only generate page structure with mock data first, no real API integration
4. Style should look like a modern AI product

2.2 Verify Page Structure

Check each item:

  • [ ] Planning page form fields match the PRD
  • [ ] Result preview area can display structured itinerary data
  • [ ] History page can display multiple plans
  • [ ] Admin dashboard can display statistics

Part 3: Iterative Development

3.1 Module-by-Module Progress

  1. Authentication: Registration, login
  2. Planning Form: Structured input (origin, destination, dates, budget, preferences)
  3. Agent Orchestration: Receive input → Call model → Parse structured output
  4. Result Display: Show itinerary by day, budget breakdown, suggestions
  5. History Management: Save plans, regenerate, export
  6. Admin Dashboard: Popular destinations, failed tasks, user feedback
  7. Task Status: Generating / Success / Failed status management and error logging

3.2 Module Self-Check

Check ItemVerification Method
Input completenessDo form fields match the PRD?
Output structureIs the itinerary result structured data (not a wall of text)?
Data consistencyDo trip, itinerary, and logs data align?
Loop verificationCan you demo "input → generate → save → regenerate"?

Part 4: Integration & Launch

4.1 End-to-End Testing

At minimum, verify these scenarios:

  • Enter trip parameters → Generate daily itinerary → View budget breakdown → Save to history
  • Regenerate itinerary from history
  • Admin views task statistics and failure logs

Deliverables

After completing this project, submit the following:

  • [ ] Accessible live demo link
  • [ ] Source code repository link (with README)
  • [ ] PRD document
  • [ ] Core page screenshots (planning page, itinerary detail, history, admin dashboard)
  • [ ] 60-second demo video

Grading Criteria

DimensionBasic RequirementsAdvanced Requirements
PRD AlignmentPages, features, and data structures basically match PRDCan clearly explain design decisions
Product LoopPlan → Save → History → Regenerate works end-to-endSupports export and sharing
Output QualityItinerary results are structured and readableBudget breakdown is reasonable, suggestions are relevant
Admin CapabilityTask statistics and failure logs viewableHas popular destination analysis
Engineering CompletenessFrontend, backend, database, model call pipeline connectedTask status management is robust, errors are traceable

References