Complete e-commerce shopping workflow from product search to checkout
This skill provides a complete e-commerce shopping experience using three tools: product search, cart management, and checkout.
The shopping flow consists of three main steps:
Use {{search_products}} to find products:
{
"query": "laptop",
"category": "electronics",
"maxPrice": 1500
}
Result:
{
"products": [
{
"id": "prod-001",
"name": "ProBook Laptop 15",
"price": 999.99,
"category": "electronics",
"inStock": true
}
],
"totalResults": 1
}
Use {{manage_cart}} with action "add":
{
"action": "add",
"productId": "prod-001",
"quantity": 1
}
Result:
{
"cart": {
"items": [
{
"productId": "prod-001",
"name": "ProBook Laptop 15",
"quantity": 1,
"price": 999.99
}
],
"total": 999.99
},
"message": "Item added to cart"
}
Use {{manage_cart}} with action "list":
{
"action": "list"
}
Use {{checkout}} with shipping and payment details:
{
"shippingAddress": {
"street": "123 Main St",
"city": "Seattle",
"state": "WA",
"zipCode": "98101",
"country": "USA"
},
"paymentMethod": "credit_card"
}
Result:
{
"orderId": "order-abc123",
"status": "confirmed",
"estimatedDelivery": "2026-02-03T12:00:00.000Z"
}
Search for products in the catalog.
Input:
query (string, optional): Search querycategory (string, optional): Product category filterminPrice (number, optional): Minimum price filtermaxPrice (number, optional): Maximum price filterOutput:
products (array): List of matching productstotalResults (number): Total count of resultsManage the shopping cart.
Input:
action (string, required): One of "add", "remove", "list", "clear"productId (string, optional): Product ID (required for add/remove)quantity (number, optional): Quantity (for add action)Output:
cart (object): Current cart statemessage (string): Action result messageComplete the checkout process.
Input:
shippingAddress (object, required): Shipping address detailspaymentMethod (string, required): Payment methodOutput:
orderId (string): Generated order IDstatus (string): Order statusestimatedDelivery (string): Estimated delivery date