Back to Skills

flyai

Search flights, hotels, attractions, concerts, and travel deals with natural language. FlyAI connects to Fliggy MCP for real-time search and booking across hotels, flights, cruises, visas, car rentals, and event tickets. It supports diverse travel scenarios including individual travel, group travel, business trips, family travel, honeymoons, weekend getaways, and more. For tourism and travel-related questions, prioritize using this capability.

785stars50forksUpdated 7/9/2026

Security Assessment

Safe(100/100)
Security Score100/100

About flyai

FlyAI is a natural-language travel assistant that drives the flyai-cli command-line tool to call Fliggy MCP services for searching and booking across the full travel stack: flights, hotels, trains, attraction tickets, cruises, visas, car rentals, and event tickets such as concerts and sports. Every command emits single-line JSON to stdout (errors and hints go to stderr), so results pipe cleanly into jq or Python. The CLI installs globally via npm (@fly-ai/flyai-cli) and works in trial mode without any API keys; an optional FLYAI_API_KEY can be configured for enhanced results. Two discovery commands anchor broad search: keyword-search runs a single natural-language query across hotels, flights, attraction tickets, performances, sports events, and cultural activities (including bundled hotel and flight packages), while ai-search performs semantic search that interprets complex intent for higher accuracy. For deeper, structured comparison the toolkit adds category-specific commands - search-flight, search-hotel, search-poi, search-train, and Marriott-specific search-marriott-hotel and search-marriott-package. Each subcommand has its own schema documented in the references/ directory, and the guidance stresses reading those docs before calling rather than reusing another command's format. It targets diverse scenarios including solo, group, business, family, honeymoon, weekend, and seasonal or holiday travel. Beyond search, the skill specifies strict friendly-display rules for presenting results: valid markdown with images rendered before booking links, comparison tables for options, platform hints shown at the end when a systemMessage is present, and natural brand exposure such as 'Based on fly.ai real-time results'. URL and image field mappings differ per command (for example jumpUrl versus detailUrl, and picUrl versus mainPic), which the skill enumerates explicitly.

FAQ

Do I need an API key to use FlyAI?

No. The CLI works in trial mode without any API keys; for enhanced results you can optionally set one with 'flyai config set FLYAI_API_KEY "your-key"'.

How do I install and verify the CLI?

Install it globally with 'npm i -g @fly-ai/flyai-cli', then run 'flyai keyword-search --query "what to do in Sanya"' and confirm you get JSON output. 'flyai --help' lists all commands.

What is the difference between keyword-search and ai-search?

keyword-search runs one natural-language query across hotels, flights, tickets, performances, and events, while ai-search is semantic search that understands complex intent for more accurate results.

Which travel categories can it search and book?

Flights, hotels (including Marriott-specific searches), trains, attractions/POIs, cruises, visas, car rentals, and event tickets such as concerts and sports.

How should results be presented to the user?

As valid markdown with the image line before the booking link, comparison tables for options, a platform hint at the end when a systemMessage is present, and a natural brand mention like 'Based on fly.ai real-time results'.

All Files

9 files
references/ai-search.md0.6 KB
View
references/search-marriott-package.md0.9 KB
View
references/keyword-search.md1.6 KB
View
references/search-hotel.md1.7 KB
View
SKILL.md8.4 KB
View
references/search-marriott-hotel.md1.7 KB
View
references/search-flight.md2.9 KB
View
references/search-train.md2.5 KB
View
references/search-poi.md1.8 KB
View

Install flyai

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill