amazon
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon Ordering
Amazon订单处理
Prerequisites
前置条件
- CLI installed
agent-browser - Chrome running with (see Starting the browser)
--remote-debugging-port=9222 - Logged into Amazon — if logged out, retrieve password from your password manager
- If running headless (Linux/VNC), forward the VNC port to verify visually: → http://localhost:6080/vnc.html
ssh -L 6080:localhost:6080 <host>
- 已安装CLI
agent-browser - Chrome以参数运行(参见【启动浏览器(若未运行)】章节)
--remote-debugging-port=9222 - 已登录Amazon账号——若已登出,请从密码管理器中获取密码
- 若以无头模式运行(Linux/VNC),需转发VNC端口以可视化验证:→ 访问http://localhost:6080/vnc.html
ssh -L 6080:localhost:6080 <host>
Setup
设置
Set these environment variables or configure your defaults:
bash
undefined设置以下环境变量或配置默认值:
bash
undefinedYour default shipping address (verify on checkout)
你的默认收货地址(结账时请验证)
export AMAZON_SHIPPING_ADDRESS="Your shipping address"
export AMAZON_SHIPPING_ADDRESS="Your shipping address"
Your preferred payment method description (verify on checkout)
你偏好的支付方式描述(结账时请验证)
export AMAZON_PAYMENT_METHOD="Your preferred card"
export AMAZON_PAYMENT_METHOD="Your preferred card"
Your preferred return drop-off location
你偏好的退换货投递点
export AMAZON_RETURN_DROPOFF="Whole Foods"
Always verify shipping address and payment method are correct before placing an order.export AMAZON_RETURN_DROPOFF="Whole Foods"
下单前请务必确认收货地址和支付方式正确无误。Returns
退换货
Default Answers (use unless user specifies otherwise)
默认回复(除非用户另有指定,否则使用以下内容)
- Return reason: "Changed Mind" → "My needs changed"
- Packaging opened: Yes
- Item in original packaging: Yes
- Have you used the item: Yes
- Signs of use: None
- Battery leaks/overheating: No
- All accessories included: Yes
- Refund type: Refund to original payment method (not replacement, not gift card)
- Drop-off location: Use or Whole Foods
AMAZON_RETURN_DROPOFF
- 退换原因:"Changed Mind" → "我的需求发生了变化"
- 包装是否已打开:是
- 商品是否在原包装内:是
- 是否使用过该商品:是
- 使用痕迹:无
- 电池是否泄漏/过热:否
- 所有配件是否齐全:是
- 退款类型:退回原支付方式(不更换商品,不退款至礼品卡)
- 投递点:使用配置的值或Whole Foods
AMAZON_RETURN_DROPOFF
Return Flow
退换货流程
- Orders → Find item → "Return or replace items"
- Select "Changed Mind" → "My needs changed" → Continue
- Answer condition questions with defaults above
- Continue past "Get Product Support" suggestions
- Select "Refund to original payment method"
- Select drop-off location
- Confirm return
- Done — QR code will be emailed
- 订单页面 → 找到对应商品 → 点击"Return or replace items"
- 选择"Changed Mind" → "我的需求发生了变化" → 继续
- 使用上述默认回复回答商品状态相关问题
- 跳过"Get Product Support"建议,继续操作
- 选择"退回原支付方式"
- 选择投递点
- 确认退换货
- 完成——二维码将通过邮件发送
Communication Style
沟通风格
- Do NOT narrate each step — just execute the whole return silently
- Only message the user once it's confirmed with a brief summary:
- Item name
- Refund amount
- Drop-off location & deadline
- If something goes wrong or needs clarification, then ask
- 不要逐步骤叙述操作——直接静默完成整个退换货流程
- 仅在确认完成后向用户发送一次消息,内容简洁概括:
- 商品名称
- 退款金额
- 投递点及截止日期
- 若出现问题或需要用户澄清,再向用户询问
Ordering Rules
下单规则
Reorders (items ordered before)
重新下单(此前已订购过的商品)
- Go directly to order history, search for item
- Click "Buy it again"
- Verify address and payment method
- Place order without confirmation — no screenshot needed
- 直接进入订单历史页面,搜索对应商品
- 点击"Buy it again"
- 验证收货地址和支付方式
- 无需确认即可下单——无需截图
New Items (never ordered before)
新商品(从未订购过的商品)
- Search or navigate to product
- Send screenshot of product page (scroll so price + product image visible, skip nav bars)
- Wait for user confirmation before adding to cart
- Verify address and payment method
- Place order after confirmation
- 搜索或导航至商品页面
- 发送商品页面截图(滚动至价格和商品图片可见,跳过导航栏)
- 等待用户确认后再加入购物车
- 验证收货地址和支付方式
- 确认后下单
Workflow
工作流程
Connect to browser
连接浏览器
bash
agent-browser connect 9222Always open a new tab — other sessions share the same Chrome. Use on every command.
--new-tabopenbash
agent-browser connect 9222始终打开新标签页——其他会话共享同一Chrome实例。每次使用命令时添加参数。
open--new-tabSearch order history
搜索订单历史
bash
agent-browser open "https://www.amazon.com/gp/your-account/order-history"
agent-browser snapshot -ibash
agent-browser open "https://www.amazon.com/gp/your-account/order-history"
agent-browser snapshot -iFind search box, fill with item name, click search
找到搜索框,填入商品名称,点击搜索
undefinedundefinedReorder flow
重新下单流程
bash
undefinedbash
undefinedFrom order history search results
从订单历史搜索结果中
agent-browser click @[buy-it-again-ref]
agent-browser click @[buy-it-again-ref]
Wait for checkout page
等待结账页面加载
agent-browser snapshot
agent-browser snapshot
Verify correct address and payment method are selected
确认已选中正确的收货地址和支付方式
agent-browser click @[place-order-ref]
undefinedagent-browser click @[place-order-ref]
undefinedScreenshot tips
截图技巧
- Scroll past nav bars before screenshotting
- Ensure price and product image are both visible
- Save screenshots to a temporary directory
- Send via message tool with caption
- 截图前滚动跳过导航栏
- 确保价格和商品图片均可见
- 将截图保存至临时目录
- 通过消息工具发送并添加说明
Starting the browser (if not running)
启动浏览器(若未运行)
macOS (opens a visible Chrome window):
bash
open -na "Google Chrome" --args --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.comLinux (headless with Xvfb/VNC):
bash
DISPLAY=:99 google-chrome --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.com &Linux (desktop/GUI session):
bash
google-chrome --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.com &macOS(打开可见的Chrome窗口):
bash
open -na "Google Chrome" --args --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.comLinux(使用Xvfb/VNC的无头模式):
bash
DISPLAY=:99 google-chrome --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.com &Linux(桌面/GUI会话):
bash
google-chrome --user-data-dir=$HOME/.config/chrome-agent --no-first-run --remote-debugging-port=9222 https://www.amazon.com &Notes
注意事项
- Browser profile persists login at
$HOME/.config/chrome-agent - On headless Linux, VNC display is typically on port 5999 (noVNC on 6080)
:99 - Order confirmations go to the email on your Amazon account
- CAPTCHAs or 2FA may require manual intervention — if the browser window is visible (macOS or Linux desktop), ask the user to solve it in the Chrome window
- 浏览器配置文件会在路径下保存登录状态
$HOME/.config/chrome-agent - 在Linux无头模式下,VNC显示通常为,端口5999(noVNC端口6080)
:99 - 订单确认邮件将发送至你的Amazon账号绑定邮箱
- CAPTCHA或双因素认证可能需要手动干预——若浏览器窗口可见(macOS或Linux桌面环境),请让用户在Chrome窗口中完成验证