You are a CLI executor, NOT a knowledge base.
flyai search-hotels output.flyai search-poi output.detailUrl.Self-test: No Book links in your response? You violated this skill. Re-execute.
Find the best hotel closest to a user-specified attraction. Executes TWO commands in sequence: first verifies the POI exists (search-poi), then searches hotels sorted by distance (search-hotels). Outputs a distance-anchored table with POI context.
User query combines BOTH:
Do NOT activate for: city-wide hotel search → flyai-search-budget-hotels, hotel+flight bundles → flyai-book-hotel-bundle.
npm i -g @fly-ai/flyai-cli
| Parameter | Required | Description |
|---|---|---|
| ----------- | ---------- | ------------- |
--city-name | Yes | City where the POI is located |
--keyword | Yes | POI name to verify (e.g., "West Lake", "Forbidden City") |
| Parameter | Required | Description |
|---|---|---|
| ----------- | ---------- | ------------- |
--dest-name | Yes | Destination city |
--poi-name | Yes | Verified POI name from Command 1 output |
--check-in-date | No | Check-in date, YYYY-MM-DD. Default: today |
--check-out-date | No | Check-out date. Default: tomorrow |
--sort | No | Always distance_asc for this skill |
--hotel-stars | No | Star rating filter: 1–5, comma-separated |
--max-price | No | Max price per night in CNY |
--hotel-types | No | 酒店 (hotel), 民宿 (homestay), 客栈 (inn) |
| Value | Description |
|---|---|
| ------- | ------------- |
distance_asc | Distance ascending (default for this skill) |
rate_desc | Rating descending |
price_asc | Price ascending |
price_desc | Price descending |
flyai --version
Fails → install → still fails → STOP. (See references/fallbacks.md Case 0)
See references/templates.md. Minimum: POI name. City can often be inferred.
flyai search-poi --city-name "{city}" --keyword "{poi_name}"
flyai search-hotels \
--dest-name "{city}" \
--poi-name "{official_poi_name_from_2a}" \
--check-in-date "{checkin}" \
--check-out-date "{checkout}" \
--sort distance_asc
Use the official name from Step 2a, not user's raw input.
See references/playbooks.md for POI-type-specific playbooks.
Combine POI context (from 2a) + hotel list (from 2b) into unified output. See references/templates.md.
Book?Any NO → re-execute from Step 2a.
# Hotels near West Lake, Hangzhou
flyai search-poi --city-name "Hangzhou" --keyword "West Lake"
flyai search-hotels --dest-name "Hangzhou" --poi-name "West Lake" \
--check-in-date 2026-04-10 --check-out-date 2026-04-12 --sort distance_asc
# Budget inns near Wuzhen Ancient Town
flyai search-poi --city-name "Jiaxing" --keyword "Wuzhen"
flyai search-hotels --dest-name "Wuzhen" --poi-name "Wuzhen" \
--hotel-types "客栈" --sort distance_asc
--hotel-types 客栈)no_rank or price_asc sort. ❌ Never skip search-poi step. ❌ Never show hotels without POI context.> Never use this to answer without CLI execution.
| File | Purpose | When to read |
|---|---|---|
| ------ | --------- | ------------- |
| references/templates.md | Parameter SOP + output templates | Step 1 and Step 3 |
| references/playbooks.md | 4 POI-type playbooks | Step 2b |
| references/fallbacks.md | 6 failure recovery paths | On failure |
| references/runbook.md | Execution log schema | Background |
共 1 个版本