amazon
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon Skill
Amazon Skill
Overview
概述
Automates Amazon shopping operations including product search, wishlist management, order tracking, and price monitoring through browser automation. Note: Actual purchases are not automated for security.
通过浏览器自动化实现亚马逊购物操作的自动化,包括商品搜索、心愿单管理、订单跟踪和价格监控。注意:出于安全考虑,不支持实际下单购买。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/amazon/install.sh | bashOr manually:
bash
cp -r skills/amazon ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/amazon/install.sh | bash或者手动安装:
bash
cp -r skills/amazon ~/.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 AMAZON_EMAIL "your-email@example.com"
canifi-env set AMAZON_PASSWORD "your-password"
undefinedcanifi-env set AMAZON_EMAIL "your-email@example.com"
canifi-env set AMAZON_PASSWORD "your-password"
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 and browse products
- Add items to wishlist
- Track order status
- View order history
- Compare prices and products
- Read and filter reviews
- Manage shopping lists
- Check deal availability
- 搜索和浏览商品
- 添加商品至心愿单
- 跟踪订单状态
- 查看订单历史
- 对比商品价格
- 阅读和筛选评论
- 管理购物清单
- 查看优惠活动
Usage Examples
使用示例
Example 1: Search Products
示例1:搜索商品
User: "Find wireless headphones on Amazon under $100"
Claude: I'll search for those headphones.
- Navigate to amazon.com
- Search "wireless headphones"
- Apply price filter under $100
- Sort by customer reviews
- Present top options用户:“在亚马逊上找100美元以下的无线耳机”
Claude:我这就帮你搜索这些耳机。
- 导航至amazon.com
- 搜索“wireless headphones”
- 应用100美元以下的价格筛选
- 按用户评论排序
- 展示最优选项Example 2: Add to Wishlist
示例2:添加至心愿单
User: "Add this product to my Amazon wishlist"
Claude: I'll add that to your wishlist.
- Navigate to product page
- Click "Add to List"
- Select wishlist
- Confirm added用户:“把这个商品添加到我的亚马逊心愿单”
Claude:我这就帮你添加到心愿单。
- 导航至商品详情页
- 点击“Add to List”
- 选择目标心愿单
- 确认添加成功Example 3: Track Order
示例3:跟踪订单
User: "Check the status of my recent Amazon order"
Claude: I'll check your order status.
- Navigate to Your Orders
- Find recent order
- Check shipping status
- Report delivery estimate用户:“查看我最近的亚马逊订单状态”
Claude:我这就帮你查看订单状态。
- 导航至“你的订单”页面
- 找到最近的订单
- 查看物流状态
- 告知预计送达时间Example 4: Compare Products
示例4:对比商品
User: "Compare the top 3 laptop stands on Amazon"
Claude: I'll compare those products.
- Search laptop stands
- Select top 3 by reviews
- Compare prices, features, ratings
- Present comparison summary用户:“对比亚马逊上排名前三的笔记本电脑支架”
Claude:我这就帮你对比这些商品。
- 搜索笔记本电脑支架
- 选择评论排名前三的商品
- 对比价格、功能、评分
- 展示对比总结Authentication Flow
认证流程
- Navigate to amazon.com via Playwright MCP
- Click Sign In
- Enter email from canifi-env
- Enter password
- Handle 2FA/OTP if enabled (notify user via iMessage)
- Complete CAPTCHA if shown (notify user)
- Verify account access
- Maintain session cookies
- 通过Playwright MCP导航至amazon.com
- 点击“登录”
- 从canifi-env中读取邮箱并输入
- 输入密码
- 如果启用了2FA/OTP(通过iMessage通知用户)
- 如果出现CAPTCHA(通知用户完成验证)
- 验证账户访问权限
- 保存会话Cookie
Error Handling
错误处理
- Login Failed: Clear cookies, verify credentials
- Session Expired: Re-authenticate automatically
- 2FA Required: iMessage for OTP code
- CAPTCHA Required: Notify user to complete
- Product Unavailable: Check other sellers
- Price Changed: Note the change
- Order Not Found: Search by date range
- Wishlist Error: Check list permissions
- 登录失败:清除Cookie,验证凭据
- 会话过期:自动重新认证
- 需要2FA:通过iMessage获取OTP验证码
- 需要CAPTCHA:通知用户完成验证
- 商品无货:查看其他卖家
- 价格变动:记录价格变化
- 未找到订单:按日期范围搜索
- 心愿单错误:检查清单权限
Self-Improvement Instructions
自我优化说明
When encountering new Amazon features:
- Document new UI elements
- Add support for new product features
- Log successful search patterns
- Update for Amazon redesigns
当遇到亚马逊新功能时:
- 记录新的UI元素
- 添加对新商品功能的支持
- 记录成功的搜索模式
- 适配亚马逊的界面改版
Notes
注意事项
- Purchases not automated for security
- Prices fluctuate frequently
- Prime benefits require membership
- Subscribe & Save for recurring items
- Reviews can be filtered by verified
- Deal timers for lightning deals
- Multiple wishlists supported
- 出于安全考虑,不支持下单购买
- 价格波动频繁
- Prime权益需要会员资格
- 支持Subscribe & Save定期购
- 评论可按“已验证购买”筛选
- 闪购活动有倒计时
- 支持多个心愿单