booking-com

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Booking.com Skill

Booking.com 技能

Overview

概述

Enables Claude to search for hotels and accommodations, compare prices, manage reservations, and access Genius loyalty benefits through Booking.com's platform.
让Claude能够通过Booking.com平台搜索酒店及住宿、对比价格、管理预订,以及享受Genius会员福利。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/booking-com/install.sh | bash
Or manually:
bash
cp -r skills/booking-com ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/booking-com/install.sh | bash
或者手动安装:
bash
cp -r skills/booking-com ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set BOOKING_EMAIL "your-email@example.com"
undefined
canifi-env set BOOKING_EMAIL "your-email@example.com"
undefined

Privacy & 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:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化配置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. 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, guests, and preferences
  • Filter by amenities, rating, price, and property type
  • View detailed property information and guest reviews
  • Manage existing bookings and cancellations
  • Access Genius member discounts and benefits
  • Compare prices across room types and rate plans
  • 根据地点、日期、入住人数及偏好搜索酒店
  • 按设施、评分、价格及住宿类型筛选
  • 查看住宿详细信息及真实住客评价
  • 管理现有预订及取消订单
  • 享受Genius会员折扣及福利
  • 对比不同房型及价格方案

Usage Examples

使用示例

Example 1: Search Hotels

示例1:搜索酒店

User: "Find hotels in Paris near the Eiffel Tower for December 20-23"
Claude: I'll search Booking.com for Paris hotels.
- Opens Booking.com via Playwright MCP
- Enters Eiffel Tower area, Paris
- Sets dates Dec 20-23, 2 adults
- Applies Genius filter for member discounts
- Returns top 5 hotels: ratings, prices, amenities
- Notes free cancellation options
用户:"帮我找12月20日至23日巴黎埃菲尔铁塔附近的酒店"
Claude:我将通过Booking.com搜索巴黎的酒店。
- 通过Playwright MCP打开Booking.com
- 输入巴黎埃菲尔铁塔区域
- 设置日期为12月20-23日,2位成人
- 应用Genius会员折扣筛选器
- 返回排名前五的酒店:包含评分、价格、设施
- 标注可免费取消的选项

Example 2: Check Booking Details

示例2:查询预订详情

User: "What's the confirmation number for my London hotel?"
Claude: I'll retrieve your London booking.
- Navigates to My Bookings
- Locates London reservation
- Returns: Confirmation #4829571634
- Hotel: The Strand Palace
- Check-in: Dec 15 at 3pm
- Room: Superior Double, breakfast included
用户:"我伦敦酒店的确认号是多少?"
Claude:我将为你调取伦敦的预订信息。
- 导航至"我的预订"页面
- 定位到伦敦的预订记录
- 返回:确认号 #4829571634
- 酒店:斯特兰德宫酒店
- 入住时间:12月15日下午3点
- 房型:高级双人间,含早餐

Example 3: Compare Room Options

示例3:对比房型选项

User: "Show me room options at the Marriott in Chicago for next week"
Claude: I'll check available rooms at that property.
- Searches for Marriott Chicago
- Opens property page
- Lists room options:
  - Standard King: $189/night, city view
  - Deluxe Queen: $219/night, lake view
  - Suite: $359/night, separate living area
- Notes Genius Level 2 discount: 15% off
用户:"帮我看看下周芝加哥万豪酒店的房型选项"
Claude:我将查询该酒店的可用房型。
- 搜索芝加哥万豪酒店
- 打开酒店详情页
- 列出房型选项:
  - 标准特大床房:189美元/晚,城市景观
  - 豪华双床房:219美元/晚,湖景
  - 套房:359美元/晚,独立客厅区域
- 标注Genius等级2折扣:立减15%

Authentication Flow

认证流程

  1. Navigate to booking.com via Playwright MCP
  2. Click "Sign in" and enter email
  3. Complete email or password verification
  4. Handle 2FA if enabled on account
  5. Verify Genius status after login
  6. Maintain session cookies
  1. 通过Playwright MCP导航至booking.com
  2. 点击“登录”并输入邮箱
  3. 完成邮箱或密码验证
  4. 若账户启用了双因素认证则完成验证
  5. 登录后验证Genius会员状态
  6. 保留会话Cookie

Error Handling

错误处理

  • Login Failed: Retry with password flow, alert via iMessage
  • Property Sold Out: Suggest similar properties nearby
  • Booking Failed: Verify payment, suggest alternate dates
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Wait 60 seconds, retry
  • 2FA Required: Retrieve code from email via Playwright
  • 登录失败:重试密码登录流程,通过iMessage发送提醒
  • 住宿已售罄:推荐附近的类似住宿
  • 预订失败:验证支付信息,建议更换日期
  • 会话过期:自动重新认证
  • 请求受限:等待60秒后重试
  • 需要双因素认证:通过Playwright从邮箱获取验证码

Self-Improvement Instructions

自我优化说明

After each interaction:
  • Track effective search filters
  • Log price patterns by day/season
  • Note Genius discount availability
  • Document selector changes
Suggest updates when:
  • Booking.com UI changes
  • New filter options added
  • Genius program terms change
  • Property type categories update
每次交互后:
  • 记录有效的搜索筛选条件
  • 按日期/季节记录价格规律
  • 标注Genius折扣可用情况
  • 记录页面选择器变化
在以下情况时建议更新:
  • Booking.com界面变更
  • 新增筛选选项
  • Genius会员计划条款变更
  • 住宿类型分类更新

Notes

注意事项

  • Genius Level 2+ gets 10-15% discounts on select properties
  • Free cancellation policies vary by property and rate
  • Mobile rates sometimes differ from desktop
  • Some properties require credit card guarantee
  • Price includes taxes unless otherwise noted
  • Reviews are verified from actual guests
  • Genius等级2及以上会员可在部分住宿享受10-15%的折扣
  • 免费取消政策因住宿及价格方案而异
  • 移动端价格有时与桌面端不同
  • 部分住宿需要信用卡担保
  • 价格默认包含税费,除非另有说明
  • 评价均来自真实住客的验证反馈