Create Shopify Collection
shopify_create_collectionCreate a Shopify collection as manual or smart. Smart collections use rules for automatic product membership; decide upfront as rules can't be added later.
Instructions
Create a collection.
Two kinds:
Manual (default): you choose the products, via shopify_collection_add_products.
Smart: pass ruleSet and Shopify keeps membership up to date automatically. e.g. { appliedDisjunctively: false, rules: [{ column: "TAG", relation: "EQUALS", condition: "sale" }] } appliedDisjunctively: false = products must match ALL rules; true = ANY rule. Common columns: TAG, TITLE, TYPE, VENDOR, VARIANT_PRICE, VARIANT_INVENTORY.
A collection's rule set cannot be added later — decide smart vs manual now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | ||
| title | Yes | ||
| handle | No | ||
| ruleSet | No | Provide to create a smart (automated) collection | |
| sortOrder | No | ||
| descriptionHtml | No |