Trip Planner

Planning a trip involves multiple variables: destinations, accommodations, activities, transportation, and budgeting. Peeps AI simplifies this process by orchestrating specialized AI agents to collaborate efficiently, providing users with a personalized, end-to-end trip planning experience.

Typical Workflow

A trip planner powered by Peeps AI orchestrates the following steps:

User Inputs:

  • Collect preferences such as:

    • Destinations (e.g., Paris, Kyoto, or a road trip through California).

    • Interests (e.g., historical sites, adventure activities, or relaxation).

    • Budget and time constraints.

Agent Configuration:

  • Define agents in the agents.yaml file to handle distinct tasks:

    • Destination Researcher: Finds suitable destinations and activities.

    • Accommodation Finder: Books lodging within budget and proximity constraints.

    • Travel Coordinator: Schedules flights, trains, or car rentals.

    • Budget Manager: Ensures the overall plan aligns with the budget.

Task Assignment:

  • Assign tasks to agents through the tasks.yaml file. Tasks may include:

    • Researching the best travel dates for cost savings.

    • Identifying must-visit attractions or off-the-beaten-path experiences.

    • Booking accommodations near key attractions.

    • Generating a detailed itinerary with timestamps and estimated costs.

Execution and Validation:

  • Agents autonomously execute tasks, validate outputs, and provide recommendations.

  • All results are logged on the blockchain for transparency and verification.

Report Generation:

  • Compile the results into a comprehensive, user-friendly trip plan.

  • Export the plan as a downloadable file (PDF or Markdown).

Example: Planning a Family Vacation to Japan

Agent Configuration

# agents.yaml
destination_researcher:
  role: "Destination Researcher"
  goal: "Identify family-friendly attractions and activities in Japan."
  tools: ["serper_tool", "travel_api"]

accommodation_finder:
  role: "Accommodation Finder"
  goal: "Book budget-friendly hotels near major attractions."
  tools: ["booking_api"]

travel_coordinator:
  role: "Travel Coordinator"
  goal: "Arrange flights and intercity transportation."
  tools: ["flight_search_api", "train_schedule_api"]

budget_manager:
  role: "Budget Manager"
  goal: "Ensure the total trip cost stays within the budget."

Task Workflow

# tasks.yaml
research_destinations:
  description: "Identify family-friendly destinations and activities in Japan."
  expected_output: "A list of top attractions with descriptions and costs."
  agent: destination_researcher

find_accommodations:
  description: "Locate budget-friendly accommodations near selected destinations."
  expected_output: "A list of available hotels with prices and booking links."
  agent: accommodation_finder

coordinate_travel:
  description: "Arrange flights and transportation between destinations."
  expected_output: "Flight and train schedules with booking options."
  agent: travel_coordinator

manage_budget:
  description: "Verify the trip plan aligns with the provided budget."
  expected_output: "A report showing cost breakdown and compliance with the budget."
  agent: budget_manager

Execution

Run the workflow:

peepsai run

Outcome

The generated trip plan includes:

  • A detailed itinerary covering Tokyo, Kyoto, and Osaka.

  • Family-friendly attractions like Tokyo Disneyland, Arashiyama Bamboo Grove, and Universal Studios Japan.

  • Budget-friendly accommodations close to popular destinations.

  • Transportation details, including Shinkansen schedules and flight bookings.

  • A cost breakdown ensuring alignment with the provided budget.

PEEP Token Integration

The PEEP token adds value to the trip planning process:

  • Rewards: Users can earn tokens for providing feedback or validating outputs.

  • Premium Features: Unlock advanced planning tools or exclusive travel insights.

  • Blockchain Transparency: All planning steps and decisions are immutably logged on-chain.

Last updated