Documentation v1.0.1

haresh-cart-management

Manage shopping cart operations via n8n webhook integration

haresh 更新于 2026-03-04 1 浏览
下载 SKILL

技能说明

Manage shopping cart operations via n8n webhook integration

使用场景

Manage shopping cart operations via n8n webhook integration

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/haresh-cart-management
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: haresh-cart-management
description: "Manage shopping cart operations via n8n webhook integration"
user-invocable: true
---

# Cart Management Skill

## Purpose
Handles all shopping cart operations including adding items, removing items, and updating quantities.

## When to Use
- User wants to add a product to their cart
- User wants to remove an item from cart
- User wants to change item quantity

## Supported Actions

### Add to Cart
1. Extract product_id from user message
2. Validate product_id format
3. Check quantity (default to 1)
4. Call n8n webhook at http://localhost:5678/webhook/cart-add
5. Confirm success to user

### Remove from Cart
1. Extract product_id to remove
2. Check current quantity
3. If quantity greater than 1, ask user for confirmation
4. Call n8n webhook at http://localhost:5678/webhook/cart-remove
5. ALWAYS confirm with user before removing

### Update Quantity
1. Extract product_id and new quantity
2. Validate quantity is positive integer
3. Call n8n webhook at http://localhost:5678/webhook/cart-update
4. Confirm update to user

## Safety Rules
- NEVER allow negative quantities
- ALWAYS confirm before removing items
- Validate product_id exists before operations

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。