airbnb
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAirbnb Skill
Airbnb Skill
Overview
概述
Enables Claude to search for accommodations, manage bookings, communicate with hosts, and handle trip planning through Airbnb's platform via browser automation.
让Claude能够通过浏览器自动化,在Airbnb平台上搜索住宿、管理预订、与房东沟通并处理行程规划。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/airbnb/install.sh | bashOr manually:
bash
cp -r skills/airbnb ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/airbnb/install.sh | bash或手动安装:
bash
cp -r skills/airbnb ~/.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 AIRBNB_EMAIL "your-email@example.com"
undefinedcanifi-env set AIRBNB_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 listings by location, dates, guests, and amenities
- View listing details, photos, reviews, and availability
- Manage existing reservations and check-in instructions
- Communicate with hosts through Airbnb messaging
- Access saved listings and wishlists
- Check upcoming trips and past booking history
- 根据地点、日期、客人数量和设施搜索房源
- 查看房源详情、照片、评价和可预订情况
- 管理现有预订和入住须知
- 通过Airbnb消息功能与房东沟通
- 访问已保存的房源和心愿单
- 查看即将到来的行程和过往预订历史
Usage Examples
使用示例
Example 1: Search for Accommodations
示例1:搜索住宿
User: "Find me an Airbnb in Austin for next weekend, 2 guests, under $200/night"
Claude: I'll search Airbnb for Austin accommodations.
- Opens Airbnb via Playwright MCP
- Enters Austin, TX as location
- Sets dates for next weekend
- Filters: 2 guests, max $200/night
- Returns top 5 options with ratings, amenities, and total cost
- Offers to show more details or save to wishlist用户:"帮我找下周末奥斯汀的Airbnb,2位客人,每晚价格低于200美元"
Claude:我将为您搜索奥斯汀的Airbnb住宿。
- 通过Playwright MCP打开Airbnb
- 输入德克萨斯州奥斯汀作为地点
- 设置下周末的日期
- 筛选条件:2位客人,最高200美元/晚
- 返回排名前5的选项,包含评分、设施和总费用
- 提供查看更多详情或保存到心愿单的选项Example 2: Check Reservation Details
示例2:查看预订详情
User: "What are the check-in instructions for my Miami trip?"
Claude: I'll find your Miami reservation details.
- Navigates to Trips section
- Locates Miami booking
- Retrieves: Check-in 3pm, lockbox code 4521
- Address: 1234 Ocean Drive, Unit 5B
- Host contact: Maria (Superhost)
- Offers to add to LifeOS Trips database用户:"我迈阿密行程的入住须知是什么?"
Claude:我将为您查找迈阿密的预订详情。
- 导航至行程板块
- 定位到迈阿密的预订
- 提取信息:入住时间为下午3点,密码箱代码4521
- 地址:海洋大道1234号,5B单元
- 房东联系方式:Maria(超赞房东)
- 提供添加到LifeOS行程数据库的选项Example 3: Message Host
示例3:给房东发消息
User: "Ask my Airbnb host if early check-in is possible"
Claude: I'll send that message to your host.
- Opens conversation with upcoming trip host
- Composes message: "Hi! I wanted to check if early check-in might be available for my upcoming stay. Please let me know if there's any flexibility. Thank you!"
- Sends message
- Reports: Message sent to Maria, typically responds within 1 hour用户:"问下我的Airbnb房东是否可以提前入住"
Claude:我将为您向房东发送这条消息。
- 打开与即将入住行程房东的对话
- 撰写消息:"您好!我想咨询下即将入住时是否可以提前办理入住。如果有灵活性的话,请告知我。谢谢!"
- 发送消息
- 反馈:消息已发送给Maria,通常1小时内会回复Authentication Flow
认证流程
- Navigate to airbnb.com via Playwright MCP
- Click "Log in" and select email login
- Enter email from canifi-env
- Handle email verification code or password
- Complete 2FA if enabled
- Maintain session for subsequent requests
- 通过Playwright MCP导航至airbnb.com
- 点击“登录”并选择邮箱登录
- 输入canifi-env中的邮箱
- 处理邮箱验证码或密码
- 若启用则完成二次验证
- 维持会话以用于后续请求
Error Handling
错误处理
- Login Failed: Try Google OAuth fallback, notify via iMessage
- Listing Unavailable: Suggest similar alternatives
- Booking Failed: Check payment method, alert user
- Session Expired: Re-authenticate automatically
- Rate Limited: Wait 2 minutes, retry
- 2FA Required: Request code via preferred method
- 登录失败:尝试Google OAuth备用方案,通过iMessage通知用户
- 房源不可预订:推荐类似替代房源
- 预订失败:检查支付方式,提醒用户
- 会话过期:自动重新认证
- 请求受限:等待2分钟后重试
- 需要二次验证:通过首选方式请求验证码
Self-Improvement Instructions
自我改进说明
After each interaction:
- Document effective search filter combinations
- Track listing availability patterns
- Note host response time patterns
- Log UI changes for selector updates
Suggest updates when:
- Airbnb changes search interface
- New filter options become available
- Booking flow is modified
- Messaging system updates
每次交互后:
- 记录有效的搜索筛选组合
- 追踪房源可预订情况的模式
- 记录房东回复时间的模式
- 记录UI变化以更新选择器
在以下情况时建议更新:
- Airbnb更改搜索界面
- 新增筛选选项
- 预订流程修改
- 消息系统更新
Notes
注意事项
- Superhost listings tend to have better reliability
- Instant Book listings can be reserved immediately
- Long-term stays (28+ nights) often have discounts
- Always verify check-in instructions before travel
- Never complete payment transactions - user must confirm
- Guest reviews are only visible after completing a stay
- 超赞房东的房源通常可靠性更高
- 可即时预订的房源可立即完成预订
- 长期住宿(28晚及以上)通常有折扣
- 出行前务必确认入住须知
- 绝不完成支付交易 - 必须由用户确认
- 房客评价仅在完成住宿后可见