amazon

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Amazon 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 | bash
Or 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
undefined

First, ensure canifi-env is installed:

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

canifi-env set AMAZON_EMAIL "your-email@example.com" canifi-env set AMAZON_PASSWORD "your-password"
undefined
canifi-env set AMAZON_EMAIL "your-email@example.com" canifi-env set AMAZON_PASSWORD "your-password"
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 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

认证流程

  1. Navigate to amazon.com via Playwright MCP
  2. Click Sign In
  3. Enter email from canifi-env
  4. Enter password
  5. Handle 2FA/OTP if enabled (notify user via iMessage)
  6. Complete CAPTCHA if shown (notify user)
  7. Verify account access
  8. Maintain session cookies
  1. 通过Playwright MCP导航至amazon.com
  2. 点击“登录”
  3. 从canifi-env中读取邮箱并输入
  4. 输入密码
  5. 如果启用了2FA/OTP(通过iMessage通知用户)
  6. 如果出现CAPTCHA(通知用户完成验证)
  7. 验证账户访问权限
  8. 保存会话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:
  1. Document new UI elements
  2. Add support for new product features
  3. Log successful search patterns
  4. Update for Amazon redesigns
当遇到亚马逊新功能时:
  1. 记录新的UI元素
  2. 添加对新商品功能的支持
  3. 记录成功的搜索模式
  4. 适配亚马逊的界面改版

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定期购
  • 评论可按“已验证购买”筛选
  • 闪购活动有倒计时
  • 支持多个心愿单