Ctrip Wendao AI Travel Assistant
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.comthrough Node.js. - Key handling: read
process.env.WENDAO_API_KEYfirst; 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, andevents; user-facing output should be taken only fromresult. - Invocation: prefer
node scripts/wendao_query.js "user question"to avoid quoting failures from one-linenode -escripts. - 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
Related Skills
A Python-based travel planner that integrates itinerary, attractions, budget, weather, currency, packing, and guide generation.
A fitness assistant for cutting, bulking, and maintenance with training check-ins, meal nutrition estimates, daily summaries, and goal calorie settings.
An AI health coach for interpreting check-up metrics, planning diet and exercise, and preparing symptom notes for visits; no diagnosis or prescriptions.
Create zero-configuration travel itineraries with daily plans, lodging, food, transit, and budget, then generate shareable travel cards.