LuxTrip Best Hotel
Purpose
Use this skill when an agent needs to operate a high-end hotel booking workflow for LuxTrip/BestHotel scenarios, including B2C concierge booking and B2B assisted booking. The skill guides an agent from vague travel intent through search, recommendation, rate comparison, benefit optimization, booking, payment handoff, and post-booking service.
First Steps
- Identify the user's intent: login/account lookup, profile update, hotel discovery, explicit hotel booking, order management, or member/benefit inquiry.
- Prefer atomic scripts before manually sequencing API calls:
- Script map and examples:
references/atomic-scripts.md - CLI entrypoint:
scripts/luxtrip_api.py
- Script map and examples:
- Load only the additional reference needed:
- API endpoints and system layering:
references/api-layering.md - Conversation-to-booking workflow:
references/booking-workflows.md - Travel user profile memory model:
references/traveler-profile.md
- API endpoints and system layering:
- Preserve safety boundaries: never fabricate availability, prices, cancellation rules, coupons, or payment status. Treat API results as authoritative and include timestamps or queried dates when presenting prices.
Capability Map
- Login and account: guide login token acquisition, read current user, list coupons, points, cash balance, member status, and orders.
- Fuzzy hotel discovery: resolve destination, clarify dates/area/party/preferences, search hotels, enrich with minimum prices and recommendation rationale.
- Explicit booking target: resolve hotel ID, fetch hotel detail, fetch all rate pages, inspect rate details, compare coupons/member discounts/points/cash, and recommend the best booking option.
- Booking and payment: assemble order payload, ask for explicit confirmation before creating an order, then prepare payment handoff if online prepay is supported.
- Order service: list/detail/cancel orders and download confirmation PDFs when requested.
- Profile memory: maintain a travel-specific profile and update it from conversation evidence and order history.
Command Intents
These are user-facing intent patterns, not shell commands. Map natural language to the closest workflow.
登录/login: explain that Mini Program login requires WeChatwx.logincode or mobile authorization code. If the environment cannot obtain those codes, ask the host app to supply a validX-LoginToken.我的信息/profile: call current user, coupon list, order list, points history, and cash history when authenticated; summarize identity, membership, balance, active coupons, and recent bookings.查酒店/search hotels: use the fuzzy discovery workflow unless dates, destination, hotel, and party size are all explicit.预订酒店/book hotel: use the explicit booking workflow and require confirmation before order creation.取消订单/cancel order: fetch order detail first, present cancellation-relevant status/rules, then require confirmation before cancellation.
API Use Rules
- Prefer
python3 scripts/luxtrip_api.py <subcommand>for common workflows. It returns compact JSON so the agent does not need to load or summarize full raw API responses. - Base URL:
https://luxtrip.com.cn/api/front/v1 - Default headers:
content-type: application/json,X-DeviceToken: lux-dt,X-Platform: MiniProgram,X-Version: 1.20.1, andX-LoginTokenafter login. - For hotel rates, keep calling
/hotel/rateswithnextResultReferenceCodeuntil it is empty. - Use
/tlpromotion/rate/couponsper shortlistedrateNobefore recommending the final cheapest payable option. - For write operations (
order/create,order/cancel, member order creation, withdraw), first show the exact consequence and ask for explicit user confirmation. - Payment endpoints return WeChat payment parameters; they do not complete payment by themselves.
Recommendation Heuristics
Rank options with this order unless the user says otherwise:
- Hard constraints: destination, dates, rooms/guests, hotel/brand, cancellation needs, bed/smoking/family requirements.
- Availability and total payable amount after member benefits, coupons, points, and cash balance.
- Value: breakfast, cancellation flexibility, benefits, room size/bed type, hotel location, and user profile fit.
- Confidence: direct API detail beats inferred data; label missing data clearly.
Memory Discipline
Keep a structured traveler profile, but do not overfit from one message. Mark fields as explicit, inferred, or observed_from_booking, and record the evidence. Ask before storing sensitive personal details such as phone, full legal names, card data, or loyalty card numbers.
Installation Notes
This directory is a portable Codex skill. To install it into another agent environment, copy the luxtrip-best-hotel folder into that agent's skills directory, then invoke it explicitly as $luxtrip-best-hotel or allow implicit triggering from hotel booking tasks.




