{
  "name": "Etsy POD - Design to SEO listing (AI title/tags/description)",
  "flow": [
    {
      "id": 1,
      "module": "google-sheets:searchRows",
      "version": 6,
      "parameters": {
        "__IMTCONN__": "<GOOGLE_CONNECTION_ID>"
      },
      "mapper": {
        "mode": "select",
        "spreadsheetId": "/<SPREADSHEET_ID>",
        "sheetId": "Products",
        "includesHeaders": true,
        "filter": [],
        "limit": "100"
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Sheets: get products (design, type, price)"
        }
      }
    },
    {
      "id": 2,
      "module": "builtin:BasicFeeder",
      "version": 1,
      "mapper": {
        "array": "{{1.array}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Iterator: each product"
        }
      }
    },
    {
      "id": 3,
      "module": "anthropic-claude:createMessage",
      "version": 1,
      "parameters": {
        "__IMTCONN__": "<ANTHROPIC_CONNECTION_ID>"
      },
      "mapper": {
        "model": "claude-sonnet-5",
        "max_tokens": "1500",
        "system": "You are an expert Etsy SEO copywriter for print-on-demand in the nature / plant-medicine / spirituality niche. Return ONLY JSON: {\"title\": str (<=140 chars), \"tags\": [13 strings, each <=20 chars], \"description\": str}.",
        "messages": [
          {
            "role": "user",
            "content": "Product type: {{2.product_type}}\nDesign concept: {{2.design_concept}}\nCurated keyword seeds: {{2.keyword_seeds}}\nWrite the Etsy listing per the constraints."
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "Claude: generate SEO title/tags/description"
        }
      }
    },
    {
      "id": 4,
      "module": "etsy:createDraftListing",
      "version": 1,
      "parameters": {
        "__IMTCONN__": "<ETSY_CONNECTION_ID>"
      },
      "mapper": {
        "shop_id": "<SHOP_ID>",
        "quantity": "10",
        "title": "{{3.title}}",
        "description": "{{3.description}}",
        "price": "{{2.price}}",
        "who_made": "i_did",
        "when_made": "made_to_order",
        "taxonomy_id": "{{2.taxonomy_id}}",
        "type": "physical",
        "tags": "{{3.tags}}"
      },
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0,
          "name": "Etsy: create draft listing (generated SEO)"
        }
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "eu2.make.com"
  }
}