AI Agent Hub
Back to skills
Ctrip eBooking Hotel Merchant Data Assistant icon

Ctrip eBooking Hotel Merchant Data Assistant

Business Operations Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please install @org-rdj3h8zv/ctrip-ebk-skill according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Hotel merchants reviewing Ctrip eBooking metrics such as room nights, revenue, traffic, and market trends often have to open the backend, copy fields, and organize tables manually. If a model answers from memory, operational figures can be wrong.

How It Works

The skill wraps the query logic in scripts/ebk_query.js and forces a real-time API call on trigger, showing only the script's result. Key steps include:
- Reading the token from process.env.EBK_API_KEY or the current turn, reporting only missing/invalid without echoing it
- Structuring the script into CONFIG, AUTH, API, error handling, RENDERER, and MAIN so timeout, retry, and business error-code handling can be extended
- Organizing output by module, using cards for single metrics and line charts for multi-day trends

Boundaries

It is suited to viewing authorized EBK operational data, not offline estimation, and does not forward data to third parties. For 401/403, 429, network timeouts, or empty results, retry as prompted, replace the token, or contact EBK support.

Use Cases

  • Review yesterday's room nights, revenue, and traffic rank before the morning meeting.
  • Compare rentalRate and marketHeats trends with market averages to judge the last 7 days.
  • Re-fetch an expired EBK token, set it as an environment variable, and continue querying.
  • Structure dataItemRes by title, value, compareValue, and rank into a card-style preview.

Best For

  • Hotel operations staff who need daily room-night, revenue, and traffic summaries.
  • Merchant data analysts who compare market averages and ranks to track metric shifts.
  • Technical support engineers who troubleshoot EBK token, 429 rate-limit, or timeout failures.
  • Hotel owners who want core metrics quickly without manually copying backend reports.