# Anthropic 開源 Claude Commerce Agents blueprint，提供可 fork 的購物與商務代理參考實作

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 原作者：ClaudeDevs (@ClaudeDevs) · 策展與摘要：EasyVibeCoding · 平台：X (Twitter) · 熱度：🔥🔥🔥🔥 · 日期：2026-09-03

> 原始來源：https://x.com/ClaudeDevs/status/2095233745167282602

## 證據與延伸閱讀

- [Anthropic 開源 Claude Commerce Agents blueprint，提供可 fork 的購物與商務代理參考實作。](https://x.com/ClaudeDevs/status/2095233746366808420) — 官方文件 · 最後核對：2026-09-03 · 支持主張：The repository defines shopping and merchant roles, backend contracts, three runtimes, staged writes and checkout handoff, fencing and provenance gates, memory validation, approval requirements, fictional examples, deployment caveats, and a commerce-builder plugin.
- [Claude Commerce Agents — github.com](https://github.com/anthropics/commerce-agents) — 官方 Repository · 最後核對：2026-09-03 · 支持主張：The repository defines shopping and merchant roles, backend contracts, three runtimes, staged writes and checkout handoff, fencing and provenance gates, memory validation, approval requirements, fictional examples, deployment caveats, and a commerce-builder plugin.
- [Claude Commerce Agents — @ClaudeDevs](https://x.com/ClaudeDevs/status/2095233748719817153) — 一手來源 · 最後核對：2026-09-03 · 支持主張：The linked first-party announcement adds concrete implementation scope beyond a teaser: shopping and merchant agent workflows, supported runtimes and cloud deployment options, catalog-grounded guardrails, human approval for proactive merchant changes, and an anthropics/commerce-agents repository with vertical starting points.
- [Claude Commerce Agents — claude.com](https://claude.com/blog/claude-for-commerce-agents) — 官方文件 · 最後核對：2026-09-03 · 支持主張：The linked first-party announcement adds concrete implementation scope beyond a teaser: shopping and merchant agent workflows, supported runtimes and cloud deployment options, catalog-grounded guardrails, human approval for proactive merchant changes, and an anthropics/commerce-agents repository with vertical starting points.
- [Anthropic 於 2026 年 9 月 2 日宣布推出 Claude Commerce Agents...](https://x.com/ClaudeDevs/status/2095233745167282602)

## 中文摘要

Anthropic 開源 Claude Commerce Agents blueprint，提供可 fork 的購物與商務代理參考實作。

**核心定位**  
Claude Commerce Agents 不是只有概念展示，而是一套可 fork 的 commerce agent 起始架構，協助工程團隊在數天內建立購物與商務營運流程。官方提供零售、旅遊、電信與票務／娛樂等四個垂直領域的參考案例；案例中的 ACME 品牌與商品目錄均為虛構、合成資料，不能直接視為正式產品規格。

**Shopping agent**  
Shopping agent 嵌入面向顧客的應用程式，將商品目錄、購物車、訂單、結帳、偏好與客服資訊串在同一段對話中，主要能力包括：

- 搜尋與比較商品，處理多項商品需求與購買規劃。
- 根據目錄資料建立購物車，記住使用者偏好。
- 回答訂單狀態、退貨、換貨與退款政策。
- 將使用者交給主機或平台的結帳 URL；模型不會看到該 URL，付款執行則由實作者負責。
- 以商品目錄作為產品與價格的事實來源，透過 guardrails 限制超出目錄的推薦，並避免操弄式加價推銷。

部署時需實作 `StorefrontBackend`，接上自身的商品目錄、購物車、訂單與政策系統。官方建議先從讀取流程開始，對尚未提供的寫入操作拒絕或暫時 stub。

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1788404845363-r5n23v1z.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/ee20cd975281d3a2.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> Claude for Commerce 架構藍圖與 shopping 及 merchant agent 實作介面展示。

**Merchant agent**  
Merchant agent 面向後台工作人員，負責回答銷售與庫存問題、維護商品與庫存、處理訂單提醒、提供價格與促銷建議，以及草擬行銷活動。它也包含銷售分析、目錄與庫存管理、行銷與促銷功能，並可透過 Portal UI 顯示圖表與儀表板。

所有可能主動改變商務狀態的操作都會先形成 staged change，必須由人員在核准介面確認後，才透過 `MerchantBackend` 實際套用。這項設計涵蓋庫存調整、價格、促銷與行銷活動，並非讓 Agent 直接發布變更。

**技術架構與部署**  
同一套角色定義、提示、技能、工具契約與安全閘門，可執行於三條路徑：

- Messages API
- Claude Agent SDK
- Claude Managed Agents beta

程式也可部署至 Claude API、Amazon Bedrock、Microsoft Foundry 或 Google Cloud Vertex AI。Repository 內的 backend method 在伺服器端呼叫服務，使用由主機持有的 session credentials，模型只能取得回傳結果；有順序要求的商務流程則必須在 backend 強制執行。官方另提供 commerce-builder plugin，供團隊快速建立骨架、擴充、評估與審查實作。

**安全邊界與實際成效**  
fencing（操作隔離）、來源追溯閘門、操作上限、記憶驗證與商務代理核准閘門，都會在三條執行路徑的工具呼叫內執行。不過範例沒有身分驗證，Managed Agents 的 MCP server 也只綁定 loopback，因此實際部署的授權、合規設定與其他安全控制仍由實作者補足，來源沒有提供各部署環境的具體限制。

ClaudeDevs 稱，採用 shopping agent 的零售商觀察到購物車最高成長為 35%，使用者完成購買的可能性最高成長為 60%；這些百分比是廠商自述數據，尚未經獨立基準測試驗證，不能當作普遍成效。完整參考實作位於 [anthropics/commerce-agents](https://github.com/anthropics/commerce-agents)，官方公告與工程說明則可參閱 [Building Commerce Agents with Claude](https://claude.com/blog/claude-for-commerce-agents)。

## 媒體內容

**Claude for Commerce 架構藍圖與 shopping 及 merchant agent 實作介面展示。**

**影片中的 Prompt 與操作**

Prompt：

```
尋找產品
```

原文：Find a product

Prompt：

```
規劃房間
```

原文：Plan a room

Prompt：

```
檢查訂單
```

原文：Check an order

Prompt：

```
儲存偏好設定
```

原文：Save a preference

Prompt：

```
我的姪女下個月滿九歲，她非常喜歡組裝模型和拼圖——什麼會是很棒的禮物？大約 45 美元以下。
```

原文：My niece turns nine next month and she's deep into building sets and puzzles — what would make a great gift? Somewhere under $45.

Prompt：

```
將木製積木組加入我的購物車——這樣就全部好了。我準備好要結帳了。
```

原文：Add the wooden block set to my cart — that's everything. I'm ready to check out.

Prompt：

```
今天早上有哪些事需要我關注？
```

原文：What needs my attention this morning?

Prompt：

```
擴充 BC-2102 說明 —
searchandcart 與內容品質
- @00:03 點擊 shopping agent 對話框中的預設提示按鈕
- @00:08 在 shopping agent 輸入結帳與加入購物車指令
- @00:10 點擊「Continue in app to place order」
- @00:13 切換至 merchant portal 後台介面
- @00:18 點擊 merchant portal 中的「Approve」按鈕
- @00:26 顯示 git clone 指令與專案資源連結
```

原文：Expand BC-2102 description —
searchandcart and content quality
- @00:03 點擊 shopping agent 對話框中的預設提示按鈕
- @00:08 在 shopping agent 輸入結帳與加入購物車指令
- @00:10 點擊「Continue in app to place order」
- @00:13 切換至 merchant portal 後台介面
- @00:18 點擊 merchant portal 中的「Approve」按鈕
- @00:26 顯示 git clone 指令與專案資源連結

## 標籤

新產品, 開源專案, SDK, Skills, Claude Commerce Agents, Anthropic, Amazon Bedrock, Microsoft Foundry, Google Cloud Vertex AI
