{
  "name": "Automate WooCommerce image product background removal using API and Google Sheet",
  "nodes": [
    {
      "id": "7b97db40-96b7-4f7d-a26f-14e2416d4730",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -620,
        100
      ]
    },
    {
      "id": "b1a25e04-37e1-425e-b146-090a8f49e43f",
      "name": "Remove from Image URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        360,
        120
      ]
    },
    {
      "id": "383e0206-3cbe-4d4c-9e01-6ca857d3092b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -180
      ],
      "parameters": {
        "width": 720,
        "height": 180,
        "content": "## PRELIMINARY STEP\n- Clone [this Sheet](https://docs.google.com/spreadsheets/d/1DxiZTvam_4oHHnZVBj_3K3pmWRld8T7l2v_DMuGsqss/edit?usp=sharing) and set the columns ID and IMAGE\n- Get API_KEY from [Back"
      }
    },
    {
      "id": "0591f51b-4ac3-4613-b78f-8fcafd0a5893",
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "position": [
        920,
        120
      ]
    },
    {
      "id": "ca4a2fd6-cf8d-4dac-860d-f890ed482029",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -180,
        100
      ]
    },
    {
      "id": "cbcb21e3-9d5c-482f-b630-6fb693a32491",
      "name": "Get Filename",
      "type": "n8n-nodes-base.code",
      "position": [
        640,
        120
      ]
    },
    {
      "id": "0604040e-b6bb-444c-ba17-3b776a388826",
      "name": "New Image Url",
      "type": "n8n-nodes-base.set",
      "position": [
        360,
        380
      ]
    },
    {
      "id": "d3fd2786-7218-4b60-a287-3fdf5621df0a",
      "name": "Update product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        640,
        380
      ]
    },
    {
      "id": "4b5b75d1-2d7b-418b-938a-4f75c0ed84ea",
      "name": "Set Product Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        100,
        120
      ]
    },
    {
      "id": "a5056024-b941-4078-a859-8e83dc0a28a5",
      "name": "Ger Products",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -400,
        100
      ]
    },
    {
      "id": "badead5e-2ce6-4b21-a859-ebc6af0110ae",
      "name": "Update Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        920,
        380
      ]
    },
    {
      "id": "b7752651-e5b0-4202-9647-c68dc86ffaa3",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -480
      ],
      "parameters": {
        "width": 720,
        "height": 260,
        "content": "# Remove background from WooCommerce product images\nThis workflow automates the process of removing backgrounds from WooCommerce product images using the BackgroundCut API, and then updates the produc"
      }
    }
  ],
  "connections": {
    "FTP": {
      "main": [
        [
          {
            "node": "New Image Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ger Products": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Filename": {
      "main": [
        [
          {
            "node": "FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Image Url": {
      "main": [
        [
          {
            "node": "Update product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update product": {
      "main": [
        [
          {
            "node": "Update Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Set Product Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Product Fields": {
      "main": [
        [
          {
            "node": "Remove from Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove from Image URL": {
      "main": [
        [
          {
            "node": "Get Filename",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Ger Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}