Fields extracted
cityDestination city or place name — not the departure city
countryFull country name, not abbreviation
arrivalCheck-in, arrival, or start date (YYYY-MM-DD)
departureCheck-out, return, or end date (YYYY-MM-DD)
confidence"high" only if all four fields are clearly and explicitly stated; "low" if any field is inferred, ambiguous, or missing
Rules
NullsAny field that cannot be determined is returned as null
Non-travelIf the email is not a travel booking, all fields return null with confidence "low"
One destinationOnly one city is extracted per email — multi-leg bookings may need manual review
Model
Modelclaude-haiku-4-5 — fast and cost-efficient for structured extraction
Max tokens256 — enough for the JSON response and explanation