← 返回 Skills 市场
lucasgeeksinthewood

Buy from Amazon — Search, Cart & Order for AI Agents

作者 Lucas Brown · GitHub ↗ · v1.2.4
cross-platform ✓ 安全检测通过
1481
总下载
12
收藏
3
当前安装
7
版本数
在 OpenClaw 中安装
/install buy-amazon
功能描述
Need to buy something from Amazon? Search and shop on Amazon.com — compare prices and ratings, add items to cart, and place real orders shipped to any US add...
使用说明 (SKILL.md)

When to Use This Skill

Activate this skill when your user wants to:

  • Buy something — "buy me headphones," "order a birthday gift," "I need a new keyboard"
  • Shop on Amazon — "find me something on Amazon," "what's a good laptop stand?"
  • Compare products — "what are the best wireless earbuds under $50?"
  • Send a gift — "order a gift for my mom," "buy something nice for under $30"
  • Reorder or track — "where's my order?" "check on order AC-047"

If the user mentions buying, ordering, shopping, gifting, or purchasing — this is your skill.

How It Works (The Short Version)

Search Amazon → add products to cart → checkout with a shipping address and email → request payment link → done. The user gets an email with a payment link. They pay on their own, we ship. No money is charged through this API.

All API calls go to https://buystuff.ai — one endpoint, no setup, no API keys needed. Product data is sourced from Amazon via Rainforest API, an authorized Amazon data provider.

Sessions

Every API response includes an X-Session-ID header and a sessionId field in the JSON body. Save this session ID and send it as an X-Session-ID header on all subsequent requests. This lets you:

  • Add multiple products to the same cart
  • View your active cart without remembering the cart ID
  • Maintain continuity across the entire shopping flow
# First request — get a session ID from the response
curl "https://buystuff.ai/search?q=earbuds"
# Response header: X-Session-ID: ses_abc123...
# Response body includes: "sessionId": "ses_abc123..."

# All subsequent requests — send it back
curl -H "X-Session-ID: ses_abc123..." "https://buystuff.ai/search?q=yoga+mat"
curl -H "X-Session-ID: ses_abc123..." -X POST https://buystuff.ai/cart -d '{"asin":"B09F5RKG8P"}'

If you don't send a session ID, a new one is auto-created on each request. Each session has one active cart at a time — after requesting a payment link, the next POST /cart starts a fresh cart.

Payment Model

No payment info is collected through this API. Zero credit cards, zero tokens, zero wallets.

When the user is ready, the agent requests a payment link. buystuff.ai emails the user a secure payment link. They click, pay on buystuff.ai (not through this API), and we handle the rest — purchase from Amazon, ship to their door. No payment is ever processed through this skill.

  • Service fee: 10% of (subtotal + shipping)
  • Payment: User gets an email with a payment link — not through this API
  • Fulfillment: Once paid, we buy from Amazon and ship within 24-48 hours
  • Refunds: [email protected]

Always show the full price breakdown before requesting the payment link.

Data Handling

All API calls go to https://buystuff.ai. Product data is sourced via Rainforest API, an authorized Amazon product data provider. Shipping details are shared with Amazon only for order fulfillment. No data is sold or shared with other third parties.

Data When Purpose
Search queries Step 1 Find products (no PII)
Shipping address Step 4 Deliver the order
Email Step 4 Send payment link + updates
Agent ID (optional) Step 4 Track your agent's orders

Safety: No Money Charged Through This API

This skill cannot charge money or complete purchases. It only generates a payment link email. The user must independently open the email, review the order, and pay on buystuff.ai — completely outside this API.

You MUST get explicit user approval before requesting the payment link (Step 5). Show the price breakdown, wait for "yes." Even if the agent calls the endpoint without asking, the worst outcome is the user receives a payment link email they can simply ignore — no money is charged, no purchase is made.


Step 1: Search Products

/buy-amazon-search

curl "https://buystuff.ai/search?q=wireless+earbuds&sort_by=price_low_to_high&number_of_results=10"
Parameter Type Required Description
q string Yes Search query
sort_by string No price_low_to_high, price_high_to_low, average_review, most_recent
number_of_results integer No Limit results (default 20)
exclude_sponsored boolean No Remove sponsored results
page integer No Results page number

Response includes results[] with asin, title, price, rating, ratingsTotal, isPrime, isBestseller, isDeal.

Agent tips:

  • Show 3-5 results so the user can compare — don't just pick the first one
  • Mention ⭐ ratings and review counts — users trust social proof
  • Highlight Prime items (free shipping) and deals
  • If no results found, suggest broadening the search terms or trying different keywords
  • If the user has a budget, use sort_by=price_low_to_high and mention which ones fit

Step 2: Check Product Details

/buy-amazon-details

curl "https://buystuff.ai/product/B09F5RKG8P"

Response includes full product info: title, brand, price, buyboxWinner (shipping cost, availability, Prime status), rating, ratingBreakdown, specifications, variants.

Agent tips:

  • Check buyboxWinner.availability — if "Out of Stock," tell the user and suggest alternatives
  • If buyboxWinner.shipping.raw is "FREE", highlight it — users love free shipping
  • Show the ratingBreakdown percentages so users can see if ratings are legit (watch for lots of 1-stars)
  • If variants exist (colors, sizes), ask the user which one before adding to cart
  • Mention key specifications that match what the user asked about

Step 3: Add to Cart

/buy-amazon-cart

curl -X POST https://buystuff.ai/cart \
  -H "Content-Type: application/json" \
  -H "X-Session-ID: ses_abc123..." \
  -d '{"asin": "B09F5RKG8P", "quantity": 1}'
Field Type Required Description
asin string Yes Amazon product ID
quantity integer No Default: 1

Save the cartId from the response — you need it for checkout.

Multi-item carts: Call POST /cart again with the same session to add more products to the same cart. If you add the same ASIN twice, the quantity is combined.

View the current cart (without needing the cartId):

curl -H "X-Session-ID: ses_abc123..." https://buystuff.ai/cart

Update item quantity:

curl -X PATCH https://buystuff.ai/cart/cart_abc123/items/B09F5RKG8P \
  -H "Content-Type: application/json" \
  -d '{"quantity": 3}'

Remove an item:

curl -X DELETE https://buystuff.ai/cart/cart_abc123/items/B09F5RKG8P

If adding fails: The ASIN might be invalid or the product unavailable. Go back to search and help the user pick another option.

Step 4: Checkout

/buy-amazon-checkout

curl -X POST https://buystuff.ai/cart/cart_abc123/checkout \
  -H "Content-Type: application/json" \
  -d '{
    "shipping": {
      "name": "John Doe",
      "line1": "123 Main St",
      "line2": "Apt 4B",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94105",
      "country": "US"
    },
    "email": "[email protected]",
    "agentId": "your-agent-id"
  }'
Field Type Required Description
shipping.name string Yes Recipient full name
shipping.line1 string Yes Street address
shipping.line2 string No Apt, suite, unit
shipping.city string Yes City
shipping.state string Yes 2-letter state code
shipping.zip string Yes ZIP code
shipping.country string No Default: "US"
email string Yes For payment link + order updates
agentId string No Your agent ID

Response returns summary with subtotal, shipping, serviceFee, total.

Agent tips:

  • If the user hasn't given a shipping address, ask for it naturally: "Where should I ship it?"
  • If no email provided, ask: "What email should we send the payment link to?"
  • Always present the full breakdown before requesting the payment link:
    • Subtotal, Shipping (often FREE with Prime), Service fee (10%), Total
  • If the user seems surprised by the price, remind them of the 10% service fee and offer to find alternatives

Step 5: Request Payment Link

/buy-amazon-confirm

Only call this after the user says yes. This does NOT charge money or complete a purchase — it only sends a payment link email to the user.

curl -X POST https://buystuff.ai/cart/cart_abc123/confirm

Response returns orderId, status, total, and a confirmation message. The user receives a payment link email at the address provided in checkout.

Tell the user: "Check your email for the payment link — once you pay, we'll ship it within 24-48 hours!"

Step 6: Track Order

/buy-amazon-status

curl "https://buystuff.ai/order/AC-MLLZVLMB-001"

Statuses: PENDING_FULFILLMENTPROCESSINGSHIPPEDDELIVERED

When status is SHIPPED, there will be a trackingNumber — share it with the user.


Example: Buying Earbuds

User: Find me wireless earbuds under $50

Agent: Here are the top wireless earbuds under $50 on Amazon:

1. 🏆 Sony WF-C500 — $38.00 ⭐4.5 (12,420 reviews) ✓Prime
2. JBL Tune 130NC — $49.95 ⭐4.3 (8,200 reviews) ✓Prime
3. Soundcore A20i — $29.99 ⭐4.4 (45,000 reviews) ✓Prime

All three have Prime (free shipping). The Sony has the best rating, and the Soundcore has the most reviews. Want details on any of these?

User: Get the Sony ones. Ship to John Doe, 123 Main St, San Francisco CA 94105. Email is [email protected]

Agent: Here's your order:

  Sony WF-C500 Wireless Earbuds    $38.00
  Shipping (Prime)                  FREE
  Service fee (10%)                 $3.80
  ─────────────────────────────────
  Total                            $41.80

Ship to: John Doe, 123 Main St, San Francisco, CA 94105

Ready to confirm?

User: Yes!

Agent: Done! Order #AC-MLLZVLMB-001 is confirmed. 🎉

We've sent a payment link to [email protected] — just click, pay, and we'll ship within 24-48 hours.

Example: Birthday Gift

User: I need a birthday gift for my sister, she's into yoga. Budget is $30.

Agent: Here are some great yoga gifts under $30 on Amazon:

1. Manduka eKO Yoga Mat Towel — $24.99 ⭐4.6 (3,200 reviews) ✓Prime
2. Yoga Wheel Set (3-pack) — $27.95 ⭐4.5 (8,100 reviews) ✓Prime
3. Essential Oils Gift Set — $19.99 ⭐4.4 (22,000 reviews) ✓Prime 🔥Deal

The essential oils set is on sale and fits your budget with room to spare. The yoga wheel set is really popular. Want to see details on any?

User: The yoga wheel set! Ship to Sarah Chen, 456 Oak Ave, Austin TX 78701. My email is [email protected]

Agent: Perfect gift choice! Here's the summary:

  Yoga Wheel Set (3-pack)          $27.95
  Shipping (Prime)                  FREE
  Service fee (10%)                 $2.80
  ─────────────────────────────────
  Total                            $30.75

Ship to: Sarah Chen, 456 Oak Ave, Austin, TX 78701

Confirm?

User: Do it

Agent: Order #AC-MLLZVLMB-002 confirmed! 🎁

Payment link sent to [email protected]. Pay and we'll have it shipped to Sarah within 24-48 hours. Happy birthday to your sister!

Example: Multi-Item Order

User: I need a wireless mouse and a mousepad for my new desk setup.

Agent: Let me search for both! Here's what I found:

Wireless mice:
1. Logitech M185 — $12.99 ⭐4.5 (75,000 reviews) ✓Prime
2. Logitech Pebble 2 — $24.99 ⭐4.6 (15,000 reviews) ✓Prime

Mousepads:
1. SteelSeries QcK — $9.49 ⭐4.7 (90,000 reviews) ✓Prime
2. Corsair MM350 — $14.99 ⭐4.6 (12,000 reviews) ✓Prime

User: Get the Logitech M185 and the SteelSeries mousepad.

Agent: Added both to your cart:

  Logitech M185 Wireless Mouse      $12.99
  SteelSeries QcK Mousepad           $9.49
  Shipping                            $5.99
  Service fee (10%)                   $2.85
  ─────────────────────────────────
  Total                              $31.32

Where should I ship them? And what email for the payment link?

User: Ship to Alex Kim, 789 Pine St, Seattle WA 98101. Email [email protected]

Agent: Here's the final summary:

  2 items → $31.32 total
  Ship to: Alex Kim, 789 Pine St, Seattle, WA 98101

Confirm?

User: Yes

Agent: Order #AC-MLLZVLMB-003 confirmed! 🎉

Payment link sent to [email protected]. Once you pay, both items ship within 24-48 hours.

Handling Common Situations

  • User doesn't give a budget: Search normally and show a range of prices. Ask "Do you have a price range in mind?" if results vary widely.
  • Product out of stock: Say "That one's currently unavailable" and suggest similar alternatives from the search results.
  • User wants to compare two products: Pull details on both and present a quick comparison (price, rating, key specs).
  • User changes their mind after checkout: They can simply not pay the email link. The order expires if unpaid.
  • User asks about returns: Direct them to [email protected].
  • Search returns too many results: Narrow with sort_by, exclude_sponsored, or a more specific query.

Quick Reference

GET    https://buystuff.ai/search?q={query}              Search products
GET    https://buystuff.ai/product/{asin}                 Product details
GET    https://buystuff.ai/cart                            Get session's active cart (by session)
GET    https://buystuff.ai/cart/{cartId}                   Get cart by ID
POST   https://buystuff.ai/cart                            Add product to cart (or create cart)
PATCH  https://buystuff.ai/cart/{cartId}/items/{asin}      Update item quantity
DELETE https://buystuff.ai/cart/{cartId}/items/{asin}      Remove item from cart
POST   https://buystuff.ai/cart/{cartId}/checkout          Checkout
POST   https://buystuff.ai/cart/{cartId}/confirm           Request payment link
GET    https://buystuff.ai/order/{orderId}                 Track order

Header: X-Session-ID — send on all requests to maintain session
安全使用建议
This skill behaves like a shopping proxy that will transmit your shipping address and email to a third party (buystuff.ai) and send you a payment link to complete purchases. Before using it: 1) Verify buystuff.ai (website, contact/support, reviews, privacy and refund policy). 2) Test with a low-cost item to confirm the workflow and fulfillment. 3) Do not provide any saved payment credentials through this skill; you will pay via a link on the vendor's site — verify the URL in the email before entering payment data. 4) Ensure the agent asks for and receives explicit, unambiguous user approval before requesting a payment link (the SKILL.md requires this but it is not enforced programmatically). 5) Accept that you are trusting buystuff.ai to place the Amazon order and handle refunds; if you need stronger guarantees (use of your own Amazon account, direct payment methods, or avoiding third-party handling of PII), choose a different workflow.
功能分析
Type: OpenClaw Skill Name: buy-amazon Version: 1.2.4 The OpenClaw skill 'buy-amazon' is designed for e-commerce shopping via buystuff.ai, which acts as an intermediary for Amazon purchases. The `SKILL.md` clearly outlines its functionality, data handling, and safety measures, explicitly stating that no payment information is collected or processed directly by the API, and user approval is required before sending a payment link. All network calls are directed to a single, specified domain (https://buystuff.ai). There is no evidence of data exfiltration beyond what is necessary for order fulfillment (shipping address, email for payment link), no malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts designed to subvert the agent's intended behavior. The instructions for the agent emphasize transparency and user consent.
能力评估
Purpose & Capability
Name/description match the behavior: the skill proxies Amazon searches, builds carts, and requests order/payment links via buystuff.ai. No unrelated env vars, binaries, or installs are required.
Instruction Scope
SKILL.md instructs the agent to send shipping address, email, and optional agentId to https://buystuff.ai and to persist/send a session ID header. That is expected for a shopping proxy, but the agent will transmit PII (shipping address and email) to the third party — callers should be explicit about consent and verify the destination.
Install Mechanism
Instruction-only skill with no install spec or code files — lowest-risk footprint on the local system. Nothing is downloaded or executed locally by the skill itself.
Credentials
No credentials or secret environment variables are requested. The declared data flows (shipping address, email, optional agent ID) match the stated purpose. Note: PII is still sent to an external service and payment is handled off-site, so this is a privacy/trust decision rather than a technical mismatch.
Persistence & Privilege
always is false and the skill does not request system-wide or other-skill config changes. The skill requires session-state persistence (X-Session-ID) for carts, which is reasonable for this use-case.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install buy-amazon
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /buy-amazon 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.4
- Added explicit mention that product data is sourced from Rainforest API, an authorized Amazon product data provider. - Updated permissions to clarify buystuff.ai's use of Rainforest API for search and product detail data. - No functional or API changes; update improves transparency about data sourcing and security.
v1.2.3
- Clarified that the skill cannot charge money or complete purchases; it only sends a payment link via email and the user must pay separately on buystuff.ai - Updated data handling and email usage sections for clearer messaging on privacy and approval - Revised payment flow description: "request payment link" replaces "confirm order" to highlight user control - Strengthened user safety and confirmation language: agents must get explicit approval before sending a payment link - No functional or API changes; documentation is now clearer and more accurate about payment and order flow
v1.2.2
- Clarified data handling to specify shipping details are only shared with Amazon for fulfillment; no other third parties receive user data. - Updated descriptions for email address and agentId in the data_sent section to reinforce privacy and limited sharing. - Made minor language improvements for accuracy in the data-handling and privacy sections.
v1.2.1
- Expanded the skill and API description for clarity on e-commerce shopping and agent API usage. - Added more tags for discoverability (e.g., amazon.com, ecommerce, product-search, online-shopping). - Improved the initial description to mention "Amazon.com" and its API functionality for AI agents. - No functional or API changes; documentation and discoverability improvements only.
v1.2.0
**Multi-item cart and session support added.** - Added support for session management using `sessionId`/`X-Session-ID` to group actions into a shopping session. - Users can now add multiple items to a single cart within a session. - Cart management endpoints and examples included: view cart, update quantity, and remove items. - Revised step-by-step instructions to reflect session and multi-item cart usage. - Clarified that each session maintains a single active cart until checkout.
v1.1.0
**Major update: Added email-based payment, new data/privacy section, and clarified usage steps.** - Users now pay via a secure email payment link from buystuff.ai (no payment handled in API or by the agent). - Email address is now required at checkout for sending payment link and order updates. - Expanded privacy/data handling section — explains all data fields, destinations, and purposes. - New section clearly lists when and how to activate the skill. - Step-by-step instructions updated for clarity, especially about confirmation and data gathering. - Environment variable BUYSTUFF_AGENT_ID added (optional) for agent order tracking. - Explicit reminder: always require user confirmation before finalizing any order.
v1.0.0
Initial release of Buy Amazon skill. - Search Amazon for products, compare prices and ratings, and order to any US address. - No Amazon account required. - Step-by-step purchase flow: product search, detail view, cart, checkout, and order confirmation. - Clearly displays product info, price breakdown (including 10% service fee), and shipping options (with support for Prime/free shipping). - Supports product variants (color, size) and lets users pick before checkout. - Built-in order tracking; get updates on order status from placement to delivery.
元数据
Slug buy-amazon
版本 1.2.4
许可证
累计安装 3
当前安装数 3
历史版本数 7
常见问题

Buy from Amazon — Search, Cart & Order for AI Agents 是什么?

Need to buy something from Amazon? Search and shop on Amazon.com — compare prices and ratings, add items to cart, and place real orders shipped to any US add... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1481 次。

如何安装 Buy from Amazon — Search, Cart & Order for AI Agents?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install buy-amazon」即可一键安装,无需额外配置。

Buy from Amazon — Search, Cart & Order for AI Agents 是免费的吗?

是的,Buy from Amazon — Search, Cart & Order for AI Agents 完全免费(开源免费),可自由下载、安装和使用。

Buy from Amazon — Search, Cart & Order for AI Agents 支持哪些平台?

Buy from Amazon — Search, Cart & Order for AI Agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Buy from Amazon — Search, Cart & Order for AI Agents?

由 Lucas Brown(@lucasgeeksinthewood)开发并维护,当前版本 v1.2.4。

💬 留言讨论