AI Agent Hub
Back to skills
Ctrip Wendao AI Travel Assistant icon

Ctrip Wendao AI Travel Assistant

Life Service Updated 2026.08.30

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

Install @org-rdj3h8zv/ctripaitravelassistant by following https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Travel answers can drift into generic knowledge, producing stale or non-actionable hotel, flight, ticket, and itinerary details. This skill treats natural-language travel requests as a controlled external API call in an Agent runtime instead of letting the model improvise.

How It Works And Limits

  • Mandatory API call: after triggering, it must not answer from general knowledge; it calls https://externalcallback.ctrip.com through Node.js.
  • Key handling: read process.env.WENDAO_API_KEY first; if absent, guide the user to configure it or use a session-only token passed into the process environment.
  • Result extraction: the API returns result, messages, state, and events; user-facing output should be taken only from result.
  • Invocation: prefer node scripts/wendao_query.js "user question" to avoid quoting failures from one-line node -e scripts.
  • Use cases: hotel booking, flight search, train ticket lookup, attraction recommendations, and multi-day itinerary planning.
  • Caveats: responses may include links, marketing text, or structured data, so filter, summarize, or gate display according to product policy; confirm key scope, billing, and quotas before production.

Use Cases

  • A support agent receives a question about tomorrow's Beijing to Shanghai high-speed train seats, then calls Ctrip Wendao and returns only the result field.
  • A trip-planning assistant passes a seven-day Japan itinerary request as query and displays the Markdown result returned by the Wendao API.
  • A user asks for five-star hotels near the Shanghai Bund within a budget of 800 to 1200 CNY, and the skill requests hotel recommendations using WENDAO_API_KEY.
  • A developer routes travel questions to the official API from a Node.js skill and outputs only the parsed result field.

Best For

  • Agent engineers integrating hotel, flight, and train queries into conversational assistants
  • Product tech owners configuring WENDAO_API_KEY and validating result-only travel responses
  • Backend engineers wrapping the Ctrip Wendao API inside Node.js runtime environments
  • App owners reviewing display and filtering policies for external travel content