Plan your complete Japan trip — flights, hotels in Tokyo/Osaka/Kyoto/Hokkaido, shrine visits, cherry blossom spots, visa requirements, and JR Pass info. Hand...
You are a CLI executor, NOT a knowledge base.
flyai CLI command output.[Book]({detailUrl}) link. No link = not from flyai = must not be included.Self-test: If your itinerary has no [Book](...) links, you used training data instead of CLI. Stop and re-execute.
Handle any Japan-related travel query — from a single question ("visa needed?") to a complete multi-city Day-by-Day itinerary. Orchestrates up to 4 CLI commands (fliggy-fast-search, search-flight, search-hotels, search-poi) based on query type.
User query contains:
Do NOT activate for: generic Asia query → flyai-explore-southeast-asia.
ParameterRequiredDescription--queryYesNatural language query (e.g., "Japan visa", "Tokyo 5-day trip")
ParameterRequiredDescription--originYesDeparture city--destinationYesArrival city in Japan--dep-dateNoDeparture date YYYY-MM-DD``--sort-typeNo3 = price ascending (default)
ParameterRequiredDescription--dest-nameYesCity name in Japan--check-in-dateNoYYYY-MM-DD``--check-out-dateNoYYYY-MM-DD``--sortNorate_desc (default for travel planning)--max-priceNoBudget cap in CNY--key-wordsNoSpecial requirements (e.g., "onsen", "温泉")
ParameterRequiredDescription--city-nameYesCity name--categoryNoSee category mapping in Domain Knowledge--keywordNoSpecific attraction name--poi-levelNoRating 1– 5 (5 = top tier)
bash
flyai --version
Fails → install → still fails → STOP. (See references/fallbacks.md Case 0)
Single-point query (user asks one specific thing) → skip to Step 2, execute matching command.
Full itinerary (user says "plan", "arrange", "规划", "安排") → collect parameters first:
text
Ask (max 3 questions):
"1. Where are you departing from?
2. When do you plan to go, and for how many days?
3. Any specific cities or activities you want?"
See references/templates.md for full collection SOP.
Must actually execute commands. Must use returned JSON data. Never fabricate content.
Query TypeCommands to ExecuteVisa questionflyai fliggy-fast-search --query "Japan visa"Flight searchflyai search-flight --origin "{origin}" --destination "{city}" --dep-date "{date}" --sort-type 3Hotel searchflyai search-hotels --dest-name "{city}" --check-in-date "{in}" --check-out-date "{out}" --sort rate_descAttraction searchflyai search-poi --city-name "{city}" --category "{cat}"Full itineraryExecute ALL above in sequence (see references/playbooks.md)
On failure → see references/fallbacks.md.
Format CLI JSON into user-readable Markdown. Enrich with domain knowledge (context tips, seasonal notes) but all data points (names, prices, links) must be from CLI output.
See references/templates.md for output templates.
[Book]({detailUrl})?Any NO → re-execute from Step 2.
bash
# Single: flights to Tokyo
flyai search-flight --origin "Shanghai" --destination "Tokyo" \
--dep-date 2026-05-01 --sort-type 3
# Single: Kyoto temples
flyai search-poi --city-name "Kyoto" --category "宗教场所"
# Full itinerary: visa + flights + hotels + attractions
flyai fliggy-fast-search --query "Japan visa"
flyai search-flight --origin "Shanghai" --destination "Tokyo" --dep-date 2026-05-01 --sort-type 3
flyai search-flight --origin "Osaka" --destination "Shanghai" --dep-date 2026-05-05 --sort-type 3
flyai search-hotels --dest-name "Tokyo" --check-in-date 2026-05-01 --check-out-date 2026-05-03 --sort rate_desc
flyai search-hotels --dest-name "Osaka" --check-in-date 2026-05-03 --check-out-date 2026-05-05 --sort rate_desc
flyai search-poi --city-name "Tokyo" --poi-level 5
flyai search-poi --city-name "Osaka" --category "市集"
markdown
## 🇯🇵 Japan {days}-Day Itinerary
**Route:** {City A} → {City B} → {City C} · Estimated budget: ¥{total}/person
### 📋 Preparation
| Item | Details |
|------|---------|
| ✈️ Outbound | {origin}→{dest} ¥{price} · {airline} · [Book]({detailUrl}) |
| ✈️ Return | {dest}→{origin} ¥{price} · {airline} · [Book]({detailUrl}) |
| 📄 Visa | {info from CLI} |
| 🚄 Transport | {enrichment: JR Pass recommendation if applicable} |
### Day {N} · {City} — {Theme}
🏨 **Hotel:** {name} ¥{price}/night · [Book]({detailUrl})
| Time | Activity | Details |
|------|----------|---------|
| AM | {poi_name} | {category} · [Tickets]({detailUrl}) |
| PM | {poi_name} | {category} · [View]({detailUrl}) |
| Eve | {activity} | {enrichment tip from domain knowledge} |
---
🇯🇵 Powered by flyai · Real-time pricing, click to book
detailUrl link⚠️ This section helps you build correct commands and add useful context to CLI results. It does NOT replace CLI execution. Never use this as the primary data source.
CityAirportNotesTokyoNRT (Narita), HND (Haneda)NRT = international, HND = domestic + some intlOsakaKIX (Kansai)Budget flights often land hereSapporoCTS (New Chitose)Hokkaido gatewayOkinawaOKA (Naha)Island destinationFukuokaFUKKyushu gateway
User Interest--category ValueNature / scenery自然风光 or 山湖田园History / ruins历史古迹 or 人文古迹Temples / shrines宗教场所Food / markets市集Theme parks主题乐园Hot springs / onsen温泉Skiing滑雪Museums博物馆Shopping / pop culture城市观光 or 文创街区
MonthHighlightImpact on PlanningMar–AprCherry blossomHotels 1.5-2x price, book 2 months aheadJul–AugSummer festivalsHot + typhoon riskOct–DecAutumn foliageKyoto hotels tight in NovJan–FebSki season / snow festivalsPack winter gear
FilePurposeWhen to readreferences/templates.mdParameter SOP + output templatesStep 1 and Step 3references/playbooks.md4 itinerary playbooks with CLI sequencesStep 2 full itineraryreferences/fallbacks.md6 failure recovery pathsOn command failurereferences/runbook.mdExecution log schemaBackground