{
  "name": "📸 Automate photo background removal with Photoroom API and Google Drive",
  "nodes": [
    {
      "id": "b2441a46-bd10-4c0c-a804-3be138d2fd8e",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -460,
        220
      ]
    },
    {
      "id": "c98d1021-81f1-43e9-8001-8708a16c5fdc",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -440,
        860
      ]
    },
    {
      "id": "d6b4b139-1751-4e53-8bd3-e86d0b427301",
      "name": "Move to Original",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        260,
        880
      ]
    },
    {
      "id": "0be7ea89-f48b-4844-ad2a-29b7e23e0fd2",
      "name": "Save to Remove Background",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        220,
        300
      ]
    },
    {
      "id": "73369386-e3c9-452d-a89f-6bf66072d002",
      "name": "Download Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -220,
        300
      ]
    },
    {
      "id": "b127c813-9ae3-48d2-85da-36d2db1c6e63",
      "name": "Get all files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -800,
        220
      ]
    },
    {
      "id": "c3546db3-2a28-4f98-87bd-1556c8ee3e8c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        -120
      ],
      "parameters": {
        "width": 600,
        "height": 560,
        "content": "### 1. Collect all original images file names\nTrigger the workflow to collect the names of all the images you want to process that are stored in a specific folder.\n\n### How to set up?\n- **Search all f"
      }
    },
    {
      "id": "18181d47-99e1-4ec6-9f0c-4e46c5f42315",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -120
      ],
      "parameters": {
        "width": 1000,
        "height": 620,
        "content": "### 2. Remove backgrounds with Photoroom API & save the results in the sub-folder **Remove Background**\nFor each image, you use the API to remove the background. The result is saved in the sub-folder "
      }
    },
    {
      "id": "91ffb1ae-3a55-460b-8d29-6f28ae33c83d",
      "name": "Photoroom API Remove Background",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        300
      ]
    },
    {
      "id": "5c99a353-1a07-400e-996a-fbd83c735dce",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        540
      ],
      "parameters": {
        "width": 1000,
        "height": 560,
        "content": "### 3. Move Processed Images \nAfter processing, the images are moved to the sub-folder **Original**.\n\n### How to set up?\n- **Move file in Google Drive**:\n   1. Add your Google Drive API credentials to"
      }
    },
    {
      "id": "3a7e0bcd-eb5a-4609-9359-8e632cace6d3",
      "name": "Daily at 08:00 am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1020,
        220
      ]
    },
    {
      "id": "8281445b-9cf1-4e43-8a19-9e3b26b8d67e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -120
      ],
      "parameters": {
        "width": 660,
        "height": 460,
        "content": "### [📺Complete Tutorial](https://www.youtube.com/watch?v=gBn9wd0fJ54)\n![Thumbnail](https://www.samirsaci.com/content/images/2025/05/image-4.png)\n"
      }
    }
  ],
  "connections": {
    "Get all files": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          },
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Photoroom API Remove Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "Move to Original",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move to Original": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily at 08:00 am": {
      "main": [
        [
          {
            "node": "Get all files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Remove Background": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Photoroom API Remove Background": {
      "main": [
        [
          {
            "node": "Save to Remove Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}