Collections guide

How to bulk create automated collections in Shopify

Open the bulk builder

The CSV format

One row per condition. Rows with the same title (or handle) become one collection with several conditions.

rules.csv
Title,Column,Relation,Condition,Match,Sort Order,Published
Summer Sale,tag,equals,summer-sale,all,best selling,TRUE
Summer Sale,price,less than,100.01,,,
Nike or Adidas,vendor,equals,Nike,any,,TRUE
Nike or Adidas,vendor,equals,Adidas,,,

Steps

  1. Download the template from the builder and fill in one row per condition.
  2. Drop the CSV into the builder and fix anything it flags.
  3. Copy batch 1 into Shopify’s GraphiQL app (turn on the products write scope) and run it.
  4. Check the new collections in your admin, then run the remaining batches.
  5. To publish them, paste the results back and follow the publish step.

What gets created

Each collection gets a title, handle, sort order, SEO title and description if you give them, and one source with your conditions. “Match all” means a product must meet every condition; “match any” means one is enough.

GraphQL (Admin API 2026-10)
mutation CreateCollectionsBatch1 {
  c2: collectionCreate(collection: {
    title: "Summer Sale",
    handle: "summer-sale",
    sortOrder: BEST_SELLING,
    sources: [{
      source: {
        title: "Summer Sale conditions",
        inclusion: {
          matchType: ALL,
          conditions: [
            { productTag: { relation: TAGGED_WITH, values: ["summer-sale"], matchType: ANY } },
            { variantPrice: { relation: LESS_THAN, value: { amount: "100.01", currencyCode: USD } } }
          ]
        }
      }
    }]
  }) {
    collection { id handle title }
    userErrors { field message }
  }
}

Limits

Each collection source can hold up to 60 condition values. “Contains” values need at least 3 characters. Collections are created unpublished; publishing is a separate step. Shopify doesn’t let Starter or Retail plan stores create collections through the API.

More collection guides

Based on Shopify’s collectionCreate docs (Admin API 2026-10) and the Help Center page on collection conditions. Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.