L2 Construct: itinerary
travel itineraryDescription
The itinerary L2 generates a detailed travel itinerary based on the traveler's profile and vacation details. It uses natural language processing to create a personalized day-by-day plan that includes activities, dining suggestions, and incorporates specific travel arrangements provided in the input.
L2 Data
- Provider: pontus
- Module: travel
- Action: itinerary
Example Step
{
"name": "insert-your-step-name",
"type": "l2",
"l2_data": {
"provider": "pontus",
"module": "travel",
"action": "itinerary",
"metadata": {}
}
}
Input
Example
{
"traveler_profile": {
"TravelGroup": "Solo",
"TravelStyle": "Culture",
"TravelType": "Vacation"
},
"vacation_details": {
"DepartureFlight": {
"Airline": "American",
"ArrivalAirport": "LAX",
"DepartureAirport": "JFK",
"DepartureDate": "12-03-2025",
"FlightNo": 704
},
"Destination": "Los Angeles",
"Duration": "5 days"
}
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/pontus/travel/itinerary-input",
"$ref": "#/$defs/ItineraryInput",
"$defs": {
"ItineraryInput": {
"properties": {
"traveler_profile": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"vacation_details": {
"type": "object"
}
},
"additionalProperties": false,
"type": "object",
"required": ["traveler_profile", "vacation_details"]
}
}
}
Output
Example
{
"itinerary": "Day 1: Arrive at LAX, check-in to hotel, explore local area\nDay 2: Visit Getty Center, lunch at Grand Central Market\nDay 3: Hollywood Walk of Fame, Griffith Observatory\nDay 4: Santa Monica Pier, Venice Beach\nDay 5: Departure from LAX"
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/pontus/travel/itinerary-output",
"$ref": "#/$defs/ItineraryOutput",
"$defs": {
"ItineraryOutput": {
"properties": {
"itinerary": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": ["itinerary"]
}
}
}