返回 Skill 列表
extension
分类: 开发与工程无需 API Key

commerce-customers

在StateSet iCommerce中管理客户记录和个人资料。在列出、获取或创建客户,通过电子邮件查找,或运行`stateset-direct customers`时使用。

person作者: jakexiaohubgithub

Commerce Customers

Manage customer identity and profile data used across orders, carts, and analytics.

How It Works

  1. Find customers by email or ID.
  2. Create or update customer records.
  3. Use customer IDs for orders and carts.
  4. Report counts or segments as needed.

Usage

  • CLI: stateset "list customers" or stateset-direct customers <action>
  • Writes require --apply.
  • MCP tools: list_customers, get_customer, create_customer.

Output

{"status":"ok","customer_id":"cust_123","email":"customer@example.com"}

Present Results to User

  • Customer identifiers and key fields updated.
  • Any validation or deduping performed.
  • Next steps (orders, carts, or segmentation).

Troubleshooting

  • Customer not found: verify email or ID and search again.
  • Duplicate email: merge or update the existing record.

References

  • references/customer-commands.md
  • /home/dom/stateset-icommerce/examples/cli-reference.md
  • /home/dom/stateset-icommerce/cli/src/tools/customers.js