create_smart_collection
Create a smart collection by setting rules that automatically include matching products. Supports multiple conditions, AND/OR logic, and custom sorting.
Instructions
Create a new smart (automatic) collection with rules that determine which products are included.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Collection title (required). | |
| body_html | No | Collection description in HTML. | |
| published | No | Whether the collection is visible. Default: true. | |
| disjunctive | No | If true, products matching ANY rule are included. If false (default), ALL rules must match. | |
| sort_order | No | Sort order for products in the collection. | |
| rules | No | Rules that determine which products are included. |