Submit a Trip Request (Consultant Handoff)
trip_idea_createSubmit the customer's trip to AirTreks — a human travel consultant takes over from there. Automatically runs plan_route to attach the full routing analysis and carrier recommendations to the trip request, so the consultant starts informed, not cold. Use this when the customer is ready to get a real quote. Requires the customer's name, email, at least 2 cities (3-letter IATA codes), a departure date for every leg, and answers to AirTreks' planning questions — call once without questionsAnswers to receive the current questions to ask.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Customer full name (required — the consultant contacts them by name) | |
| cabin | No | Cabin class preference | |
| dates | Yes | Departure dates, one per leg (ISO format, e.g. '2026-09-15') — a trip with N cities needs N-1 dates, all required. If the customer is unsure, use their best estimates and set flexibleDates. | |
| Yes | Customer email address (required) | ||
| notes | No | Additional notes or special requests from the customer | |
| phone | No | Customer phone number | |
| budget | No | Budget tier | |
| cities | Yes | Ordered list of 3-letter IATA city/airport codes (e.g. ['SFO', 'NRT', 'BKK']) | |
| passengers | No | Number of passengers (default 1) | |
| preferences | No | Travel preferences: 'no-lcc', 'lounge-access', 'short-layovers', 'surface-ok' | |
| agentContext | No | Summary of what the AI agent learned about this trip (auto-generated routing analysis, customer preferences discussed, etc.) | |
| flexibleDates | No | Are travel dates flexible? | |
| questionsAnswers | No | The customer's answers to AirTreks' planning questions, keyed by question name (e.g. {"guidance": "I want expert guidance from humans"}). A JSON-encoded string of the same object is also accepted. Required, but don't guess the questions: call once without this — the response lists the current questions and their options to ask the customer. |