🧪 Skills
Haresh Cart Management
--- name: haresh-cart-management description: "Manage shopping cart operations via n8n webhook integration" user-invocable: true --- # Cart Management Skill ## Purpose Handles all shopping cart oper
v1.0.1
Description
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
- Extract product_id from user message
- Validate product_id format
- Check quantity (default to 1)
- Call n8n webhook at http://localhost:5678/webhook/cart-add
- Confirm success to user
Remove from Cart
- Extract product_id to remove
- Check current quantity
- If quantity greater than 1, ask user for confirmation
- Call n8n webhook at http://localhost:5678/webhook/cart-remove
- ALWAYS confirm with user before removing
Update Quantity
- Extract product_id and new quantity
- Validate quantity is positive integer
- Call n8n webhook at http://localhost:5678/webhook/cart-update
- Confirm update to user
Safety Rules
- NEVER allow negative quantities
- ALWAYS confirm before removing items
- Validate product_id exists before operations
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!