Query China domestic transport options through one skill. Use when a user wants domestic flight or high-speed rail results, departure and arrival times, stat...
编程
Domestic Flight Search
试用Query China domestic flights with schedules, airline details, airport resolution, and Juhe reference prices. Use when a user asks for domestic China flight o...
它能做什么
Query China domestic flights with schedules, airline details, airport resolution, and Juhe reference prices. Use when a user asks for domestic China flight o...
技能文档
Domestic Flight Search
Use the local Python script in this skill to query China domestic flights from the Juhe flight API. Tell users they must apply for their own Juhe API key before live queries will work.
Provider docs: https://www.juhe.cn/docs/api/id/818
Setup Requirement
This skill does not ship with an API key. Users must create their own Juhe account, subscribe to the flight API, and set JUHE_FLIGHT_API_KEY before running live searches.
Quick Start
Set the API key first:
export JUHE_FLIGHT_API_KEY='your_juhe_api_key'
Run a direct query:
python3 {baseDir}/scripts/domestic_flight_service.py search \
--from 北京 --to 上海 --date 2026-03-20 --pretty
Optional reusable local HTTP mode:
python3 {baseDir}/scripts/domestic_flight_service.py serve --port 8765
Then call:
curl 'http://127.0.0.1:8765/search?from=北京&to=上海&date=2026-03-20'
Workflow
-
Resolve the user's origin and destination. Accept common Chinese city names, airport names, or IATA codes. If the user says “北京首都” or “浦东机场”, keep the airport-specific query.
-
Query the script. For a single answer, run the CLI. For repeated machine-to-machine calls, use the local HTTP service.
-
Summarize the result. Mention airline, flight number, departure and arrival airport, departure and arrival time, duration, and
ticket_price. Call the price参考票价, not a guaranteed bookable fare. -
Handle ambiguity and missing setup. If the city is not recognized, ask for a specific airport or 3-letter code. If the user wants a round trip, run two one-way queries. If
JUHE_FLIGHT_API_KEYis missing, tell the user to apply for a Juhe key and configure it before retrying.
Output Rules
- Sort results by lowest
ticket_pricefirst. - Prefer up to 5 options unless the user asked for more.
- State the exact travel date in
YYYY-MM-DD. - If the provider returns no results, say that no flight was found for that route/date under the current query.
- If the provider fails, surface the provider
error_codeandreasonbriefly.
Resources
- Use scripts/domestic_flight_service.py for CLI and optional HTTP modes.
- Use assets/data/domestic_city_codes.json and assets/data/airport_aliases.json for Chinese name resolution.
- Read references/provider-juhe.md when you need the provider contract, parameters, setup notes, or limitations.
相关技能
获得基于当前价格、签证、天气与当地活动调研的逐日行程方案。
Variflight Global Flight Fares searches one-way flight fares from the Variflight ticket API by departure IATA city code, arrival IATA city code, and departur...
全能出行管家技能 — 处理出行规划/行程安排/出差旅游等场景,整合高德地图(路线/天气/周边)与途牛旅行(机票/酒店/火车票/门票**价格查询与比价**)服务,提供场景识别、智能比价、行程规划与行程网页生成。能力与副作用完整披露:(1) 从环境变量读取 AMAP_API_KEY、TUNIU_API_KEY 用于本次查询调用,不跨会话上传第三方;本技能包不含任何密钥文件;(2) **仅调用查询/搜索类接口**(searchLowestPriceFlight / tuniu_hotel_search / searchLowestPriceTrain / query_cheapest_tickets
Generate complete, image-rich travel plans from trip dates and destination, including day-by-day itinerary, transportation, lodging area guidance, budget ran...
RollingGo Hotel Search & Booking Assistant. Implements the full hotel booking workflow by calling RollingGo hotel APIs. Supported scenarios: ① Search hotels by city, attraction, metro, airport, etc. ② Filter by star rating, budget, tags (pool, breakfast, family, pet-friendly) ③ Query real-time room