hotels-com
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHotels.com Skill
Hotels.com Skill
Overview
概述
Enables Claude to search and book hotels worldwide, earn and redeem One Key rewards, manage reservations, and access member pricing through Hotels.com's platform.
让Claude能够通过Hotels.com平台搜索并预订全球酒店、赚取和兑换One Key奖励、管理预订以及获取会员专享价格。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/hotels-com/install.sh | bashOr manually:
bash
cp -r skills/hotels-com ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/hotels-com/install.sh | bash或手动安装:
bash
cp -r skills/hotels-com ~/.canifi/skills/Setup
设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set HOTELS_EMAIL "your-email@example.com"
undefinedcanifi-env set HOTELS_EMAIL "your-email@example.com"
undefinedPrivacy & Authentication
隐私与认证
Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭据,由您掌控。 Canifi LifeOS尊重您的隐私。
Option 1: Manual Browser Login (Recommended)
选项1:手动浏览器登录(推荐)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭据:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- Claude将使用您的已认证会话,且全程不会看到您的密码
Option 2: Environment Variables
选项2:环境变量
If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"注意:存储在canifi-env中的凭据仅能在您的本地机器上访问,绝不会被传输。
Capabilities
功能
- Search hotels by location, dates, and preferences
- Compare prices and read verified reviews
- Earn One Key rewards on bookings
- Access member prices and secret deals
- Manage existing reservations
- Filter by amenities, ratings, and property type
- 根据地点、日期和偏好搜索酒店
- 对比价格并查看真实住客评价
- 通过预订赚取One Key奖励
- 获取会员专享价格和秘密优惠
- 管理现有预订
- 根据设施、评分和酒店类型筛选
Usage Examples
使用示例
Example 1: Search Hotels
示例1:搜索酒店
User: "Find hotels in San Francisco near Union Square under $200"
Claude: I'll search Hotels.com for SF accommodations.
- Opens hotels.com via Playwright MCP
- Enters Union Square, San Francisco
- Filters: Under $200/night
- Shows results:
- Hotel Nikko: $179, 4.2 stars, free cancellation
- Handlery Union Square: $165, 4.0 stars
- The Marker: $195, 4.5 stars, member price
- Highlights One Key earning: 2% back用户:“帮我找旧金山联合广场附近200美元以下的酒店”
Claude:我将在Hotels.com上搜索旧金山的住宿。
- 通过Playwright MCP打开hotels.com
- 输入旧金山联合广场
- 筛选条件:每晚价格低于200美元
- 展示结果:
- 日航酒店:179美元,4.2星,免费取消
- 汉德利联合广场酒店:165美元,4.0星
- The Marker酒店:195美元,4.5星,会员专享价
- 重点说明One Key奖励:返现2%Example 2: Check One Key Status
示例2:查询One Key状态
User: "How many Hotels.com rewards do I have?"
Claude: I'll check your One Key account.
- Logs into Hotels.com account
- Navigates to rewards section
- Returns: Gold tier status
- One Key Cash: $125.50 available
- Nights booked this year: 12
- Next tier (Platinum): 8 more nights
- Benefits: Member prices, free breakfast at select hotels用户:“我有多少Hotels.com奖励?”
Claude:我将查询您的One Key账户。
- 登录Hotels.com账户
- 导航至奖励板块
- 返回结果:黄金会员等级
- One Key现金奖励:125.50美元可使用
- 今年已预订晚数:12晚
- 下一等级(白金):还需8晚
- 会员权益:专享价格、部分酒店免费早餐Example 3: Find Secret Deals
示例3:查找秘密优惠
User: "Show me Hotels.com secret deals in Miami"
Claude: I'll find secret deals for Miami.
- Navigates to Secret Prices section
- Searches Miami area
- Shows exclusive deals:
- "4-star South Beach hotel": $159 (was $245)
- "Brickell luxury suite": $189 (was $320)
- Notes: Must be logged in to see property names
- Secret Prices save average 15-20%用户:“展示迈阿密的Hotels.com秘密优惠”
Claude:我将为您查找迈阿密的秘密优惠。
- 导航至秘密价格板块
- 搜索迈阿密地区
- 展示专属优惠:
- “南海滩4星级酒店”:159美元(原价245美元)
- “布里克尔豪华套房”:189美元(原价320美元)
- 注意事项:需登录才能查看酒店名称
- 秘密价格平均可节省15-20%Authentication Flow
认证流程
- Navigate to hotels.com via Playwright MCP
- Click "Sign in" and enter email
- Complete password verification
- Handle email confirmation if required
- Verify One Key status displayed
- Maintain session for bookings
- 通过Playwright MCP导航至hotels.com
- 点击“登录”并输入邮箱
- 完成密码验证
- 如需验证邮箱则完成该步骤
- 确认One Key状态已显示
- 维持会话以进行预订
Error Handling
错误处理
- Login Failed: Try password reset, notify user
- Hotel Sold Out: Suggest similar properties nearby
- Price Changed: Alert user to new price
- Session Expired: Re-authenticate automatically
- Rate Limited: Wait 60 seconds, retry
- 2FA Required: Complete email verification
- 登录失败:建议重置密码并通知用户
- 酒店售罄:推荐附近的类似酒店
- 价格变动:提醒用户新价格
- 会话过期:自动重新认证
- 请求受限:等待60秒后重试
- 需要双因素认证:完成邮箱验证
Self-Improvement Instructions
自我改进说明
After each interaction:
- Track One Key earning patterns
- Note secret deal availability
- Log price comparison accuracy
- Document UI changes
Suggest updates when:
- Hotels.com updates interface
- One Key program changes
- New deal types available
- Search filters modified
每次交互后:
- 追踪One Key奖励赚取模式
- 记录秘密优惠的可用情况
- 记录价格对比的准确性
- 记录界面变更
在以下情况时建议更新:
- Hotels.com更新界面
- One Key计划变更
- 推出新类型的优惠
- 搜索筛选条件修改
Notes
注意事项
- One Key rewards work across Expedia, Hotels.com, and Vrbo
- Member prices require being logged in
- Free cancellation policies vary by property
- Secret Prices hide hotel name until booking
- Price Match Guarantee available
- Reviews are from verified guests only
- One Key奖励可在Expedia、Hotels.com和Vrbo通用
- 会员专享价格需登录账户
- 免费取消政策因酒店而异
- 秘密价格会隐藏酒店名称,直至完成预订
- 提供价格匹配保证
- 评价均来自真实住客