作者:互联网 时间: 2026-08-09 08:15:01
Shopify 技能为 AI 代理和 Shopify Admin REST API 提供了强大的接口,实现了对电子商务运营的程序化控制。通过集成这些 Openclaw Skills,开发人员和商家可以自动化从列出新商品到跟踪客户履约的商店管理全生命周期。对于那些希望构建自主商务工作流并最大限度减少手动仪表板干预的人来说,这种集成至关重要。
下载入口:https://github.com/openclaw/skills/tree/main/skills/mrgoodb/shopify从源直接安装技能的最快方式。
npx clawhub@latest install shopify
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 shopify。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
要初始化此技能,您必须在终端或配置文件中设置以下环境变量:
export SHOPIFY_STORE="your-store.myshopify.com"
export SHOPIFY_ACCESS_TOKEN="shpat_xxxxxxxxxx"
此技能利用标准的 Shopify API 模式。作为 Openclaw Skills 框架的一部分,数据被组织成以下主要实体:
| 实体 | 数据类型 | 关键属性 |
|---|---|---|
| 产品 | JSON | title, body_html, vendor, variants, sku, price |
| 订单 | JSON | id, status, line_items, customer_info |
| 库存 | JSON | location_id, inventory_item_id, available |
所有传输的数据均遵循 Shopify Admin API v2024-01 规范,以确保最大兼容性。
name: shopify
description: Manage Shopify stores - products, orders, customers, and inventory via Admin API.
metadata: {"clawdbot":{"emoji":"??","requires":{"env":["SHOPIFY_STORE","SHOPIFY_ACCESS_TOKEN"]}}}
Manage e-commerce stores.
export SHOPIFY_STORE="your-store.myshopify.com"
export SHOPIFY_ACCESS_TOKEN="shpat_xxxxxxxxxx"
curl "https://$SHOPIFY_STORE/admin/api/2024-01/products.json" r
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"
curl -X POST "https://$SHOPIFY_STORE/admin/api/2024-01/products.json" r
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" r
-H "Content-Type: application/json" r
-d '{
"product": {
"title": "New Product",
"body_html": "<p>Description</p>",
"vendor": "My Brand",
"product_type": "Clothing",
"variants": [{"price": "29.99", "sku": "SKU123"}]
}
}'
curl "https://$SHOPIFY_STORE/admin/api/2024-01/orders.json?status=any" r
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"
curl "https://$SHOPIFY_STORE/admin/api/2024-01/orders/{order_id}.json" r
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN"
curl -X POST "https://$SHOPIFY_STORE/admin/api/2024-01/inventory_levels/set.json" r
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" r
-H "Content-Type: application/json" r
-d '{"location_id": 123, "inventory_item_id": 456, "available": 100}'