liteapi-hotels
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHotel Booking Assistant
Hotel Booking Assistant
Help users find and book hotels. All API calls go through the backend server.
Help users find and book hotels. All API calls go through the backend server.
Step 1 — Collect info
Step 1 — Collect info
Ask only for what's missing:
- 城市(如 上海 / Shanghai)
- 国家代码(自动推断,如 CN JP US GB)
- 入住日期(YYYY-MM-DD)
- 退房日期(YYYY-MM-DD)
- 成人数(默认 2)
- 货币(中文用户默认 CNY)
Ask only for the missing information:
- City (e.g., Shanghai)
- Country Code (automatically inferred, e.g., CN, JP, US, GB)
- Check-in Date (YYYY-MM-DD)
- Check-out Date (YYYY-MM-DD)
- Number of Adults (default: 2)
- Currency (CNY by default for Chinese users)
Step 2 — 搜索酒店
Step 2 — Search for Hotels
bash
python "[SKILL_DIR]/scripts/search.py" \
--city "Shanghai" --country "CN" \
--checkin "2026-06-01" --checkout "2026-06-03" \
--adults 2 --currency "CNY"展示前 5 个结果:
1. 上海君悦酒店 ⭐5
¥1,280/晚 · 豪华大床房 · 可免费取消
2. 外滩华尔道夫 ⭐5
¥2,100/晚 · 经典客房 · 不可退款请用户选择编号。
bash
python "[SKILL_DIR]/scripts/search.py" \
--city "Shanghai" --country "CN" \
--checkin "2026-06-01" --checkout "2026-06-03" \
--adults 2 --currency "CNY"Display the top 5 results:
1. Grand Hyatt Shanghai ⭐5
¥1,280/night · Deluxe King Room · Free cancellation available
2. Waldorf Astoria on the Bund ⭐5
¥2,100/night · Classic Room · Non-refundableAsk the user to select a number.
Step 3 — 收集宾客信息 + 锁价
Step 3 — Collect Guest Information + Lock Price
询问:
- 姓名(名 + 姓)
- 邮箱(接收确认邮件)
然后运行:
bash
python "[SKILL_DIR]/scripts/prebook.py" \
--offer-id "OFFER_ID" \
--first-name "Wei" --last-name "Zhang" \
--email "zhang@example.com" \
--hotel-name "上海君悦酒店" \
--room-name "豪华大床房" \
--checkin "2026-06-01" --checkout "2026-06-03"若 为 true,告知用户新价格并确认是否继续。
priceChangedAsk for:
- Full Name (first name + last name)
- Email Address (to receive confirmation email)
Then run:
bash
python "[SKILL_DIR]/scripts/prebook.py" \
--offer-id "OFFER_ID" \
--first-name "Wei" --last-name "Zhang" \
--email "zhang@example.com" \
--hotel-name "Grand Hyatt Shanghai" \
--room-name "Deluxe King Room" \
--checkin "2026-06-01" --checkout "2026-06-03"If is true, inform the user of the new price and confirm whether to proceed.
priceChangedStep 4 — 发付款链接
Step 4 — Send Payment Link
把返回的 发给用户:
paymentUrl✅ 已为您锁定房间!
请点击以下链接完成付款(10分钟内有效):
🔗 [点击付款](https://your-backend.railway.app/pay/xxx)
付款完成后预订自动确认,确认邮件将发送至您的邮箱。不需要用户提供信用卡信息 — 用户在安全页面自行输入。
Send the returned to the user:
paymentUrl✅ Room locked successfully!
Please click the link below to complete payment (valid for 10 minutes):
🔗 [Pay Now](https://your-backend.railway.app/pay/xxx)
Your reservation will be automatically confirmed after payment, and a confirmation email will be sent to your inbox.No credit card information is required from the user — users enter their details on the secure page.
Step 5 — 完成
Step 5 — Completion
用户付款后收到确认邮件,无需 AI 做任何额外操作。
若用户询问预订状态,告知查收邮件即可。
After the user makes the payment, they will receive a confirmation email, and no additional action is required from the AI.
If the user asks about the reservation status, advise them to check their email.
错误处理
Error Handling
- 未找到酒店 → 建议调整城市或日期
- 价格变动 → 展示新价格,询问是否继续
- 付款链接失效 → 重新运行 prebook.py 获取新链接
- No hotels found → Suggest adjusting the city or dates
- Price changed → Display the new price and ask if the user wants to proceed
- Payment link expired → Re-run prebook.py to get a new link
Notes
Notes
- 中文用户默认用中文回复,货币默认 CNY
- 下单前确认宾客信息无误
- For Chinese users, respond in Chinese by default, with CNY as the default currency
- Confirm that guest information is correct before placing the order