amazon-fresh

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Amazon Fresh Skill

Amazon Fresh Skill

Overview

概述

Automates Amazon Fresh operations including grocery browsing, list management, and delivery tracking through browser automation. Note: Actual orders are not automated for security.
通过浏览器自动化实现Amazon Fresh操作的自动化,包括生鲜商品浏览、购物清单管理和配送追踪。注意:出于安全考虑,实际下单操作未实现自动化。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/amazon-fresh/install.sh | bash
Or manually:
bash
cp -r skills/amazon-fresh ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/amazon-fresh/install.sh | bash
或者手动安装:
bash
cp -r skills/amazon-fresh ~/.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

功能特性

  • Browse fresh groceries
  • Search for products
  • Manage shopping lists
  • Track deliveries
  • View order history
  • Check Prime benefits
  • Find deals and coupons
  • Schedule delivery windows
  • 浏览生鲜商品
  • 搜索产品
  • 管理购物清单
  • 追踪配送状态
  • 查看订单历史
  • 查看Prime会员权益
  • 查找优惠和优惠券
  • 预约配送时段

Usage Examples

使用示例

Example 1: Browse Groceries

示例1:浏览生鲜商品

User: "Show me produce on Amazon Fresh"
Claude: I'll browse produce.
- Navigate to amazon.com/fresh
- Go to produce section
- Browse available items
- Present fresh options
用户:"给我看看Amazon Fresh上的农产品"
Claude:我这就去浏览农产品。
- 导航至amazon.com/fresh
- 进入农产品专区
- 浏览可用商品
- 展示生鲜选项

Example 2: Search Products

示例2:搜索产品

User: "Find whole grain bread on Amazon Fresh"
Claude: I'll search for that.
- Search "whole grain bread"
- Filter by Fresh items
- Show available options
- Present with prices
用户:"在Amazon Fresh上找全麦面包"
Claude:我这就去搜索。
- 搜索“全麦面包”
- 筛选Fresh商品
- 展示可用选项
- 附带价格信息

Example 3: Track Delivery

示例3:追踪配送

User: "Track my Amazon Fresh order"
Claude: I'll check your delivery.
- Navigate to Fresh orders
- Find active order
- Check delivery window
- Report status
用户:"追踪我的Amazon Fresh订单"
Claude:我这就去查询您的配送状态。
- 导航至Fresh订单页面
- 找到活跃订单
- 查看配送时段
- 反馈状态信息

Example 4: Find Deals

示例4:查找优惠

User: "What's on sale at Amazon Fresh?"
Claude: I'll find Fresh deals.
- Navigate to Fresh deals
- Browse discounted items
- List notable savings
- Present best offers
用户:"Amazon Fresh上有什么促销活动?"
Claude:我这就去查找Fresh的优惠。
- 导航至Fresh优惠页面
- 浏览折扣商品
- 列出值得关注的优惠
- 展示最佳折扣选项

Authentication Flow

认证流程

  1. Navigate to amazon.com/fresh via Playwright MCP
  2. Sign in with Amazon credentials
  3. Enter email from canifi-env
  4. Enter password
  5. Handle 2FA/OTP if enabled (notify user via iMessage)
  6. Verify Fresh access
  7. Maintain session cookies
  1. 通过Playwright MCP导航至amazon.com/fresh
  2. 使用Amazon凭证登录
  3. 从canifi-env中读取邮箱
  4. 输入密码
  5. 如果启用了2FA/OTP则进行处理(通过iMessage通知用户)
  6. 验证Fresh访问权限
  7. 保存会话Cookie

Error Handling

错误处理

  • Login Failed: Clear cookies, verify credentials
  • Session Expired: Re-authenticate automatically
  • 2FA Required: iMessage for verification code
  • Not Prime Member: Some features require Prime
  • Item Unavailable: Check availability
  • Delivery Window Full: Suggest alternatives
  • Address Not Eligible: Check Fresh availability
  • Order Not Found: Check order ID
  • 登录失败:清除Cookie,验证凭证
  • 会话过期:自动重新认证
  • 需要2FA:通过iMessage发送验证码请求
  • 非Prime会员:部分功能需要Prime会员资格
  • 商品无货:检查库存状态
  • 配送时段已满:推荐替代时段
  • 地址不支持:检查Fresh服务覆盖范围
  • 订单未找到:核对订单ID

Self-Improvement Instructions

自我优化说明

When encountering new Amazon Fresh features:
  1. Document new UI elements
  2. Add support for new categories
  3. Log successful patterns
  4. Update for Amazon changes
当遇到Amazon Fresh的新功能时:
  1. 记录新的UI元素
  2. 添加对新分类的支持
  3. 记录成功的操作模式
  4. 根据Amazon的更新调整技能

Notes

注意事项

  • Orders not automated for security
  • Prime membership recommended
  • Same-day delivery available
  • Whole Foods integration
  • EBT SNAP accepted
  • Delivery windows book fast
  • Substitution options available
  • 出于安全考虑,未实现自动下单
  • 推荐拥有Prime会员资格
  • 支持当日达配送
  • 整合Whole Foods功能
  • 接受EBT SNAP支付
  • 配送时段预订紧张
  • 提供商品替换选项