{
  "name": "Process images with Background Remover AI and track results in Google Sheets",
  "nodes": [
    {
      "id": "72819496-27be-41bf-952e-b7cd3d3c705c",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -380,
        -20
      ]
    },
    {
      "id": "2a802d55-cd1c-4360-a65b-71fe90a0c232",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -140,
        0
      ]
    },
    {
      "id": "fd6755a4-f7ba-4af5-99ef-9cab758804d2",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        80,
        -20
      ]
    },
    {
      "id": "f772d815-5bd0-45c5-ab25-ddeac40a15a5",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        640,
        -60
      ]
    },
    {
      "id": "271d69a2-ece8-4880-9ce8-2d49549e7408",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        940,
        -220
      ]
    },
    {
      "id": "23ef4eb0-72ec-4c79-9e54-41a678ca64e5",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1240,
        -140
      ]
    },
    {
      "id": "09157090-fa1e-4ca4-9f2b-4ca5eccd1ba5",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1060,
        240
      ]
    },
    {
      "id": "391378d0-e0da-4986-acaf-6f4d65aa51d5",
      "name": "File Upload Api",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        360,
        -20
      ]
    },
    {
      "id": "f4cef78e-bb7c-4002-8ee7-4ffd6dcebb64",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1240,
        -460
      ],
      "parameters": {
        "width": 540,
        "height": 860,
        "content": "# Background Removal AI\n\n## **Use Case Benefits:**\nThis workflow automates the process of background removal from images using AI. When a user uploads an image, the background is removed, and the resu"
      }
    },
    {
      "id": "416bc2fc-6565-4639-a003-e35e96b3c011",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        -200
      ],
      "parameters": {
        "width": 220,
        "height": 340,
        "content": " **On form submission**:\n   - **Type**: Form Trigger\n   - **Description**: Triggers the workflow when a form is submitted, collecting an image file for background removal.\n"
      }
    },
    {
      "id": "d9861b51-a7b4-42ce-91e6-933b7c59e81f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": " **HTTP Request**:\n   - **Type**: HTTP Request Node\n   - **Description**: Sends the uploaded image to a background removal AI service via a POST request, receiving the processed image or failure statu"
      }
    },
    {
      "id": "81dced60-06f7-400a-b486-d2a1dc551718",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        60,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": " **Convert to File**:\n   - **Type**: Convert to File Node\n   - **Description**: Converts the base64-encoded image data returned by the AI service into a binary file.\n"
      }
    },
    {
      "id": "17a73e52-d0e6-4688-9083-746d9bee10e7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": "**File Upload API**:\n   - **Type**: HTTP Request Node\n   - **Description**: Uploads the processed image to a temporary file storage API, ensuring the image is stored temporarily.\n"
      }
    },
    {
      "id": "c232313d-5722-4be5-8d5e-8a975c2b19c6",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": "**If**:\n   - **Type**: Conditional Node\n   - **Description**: Evaluates the background removal status; proceeds to update Google Sheets if successful, or logs a failure otherwise.\n"
      }
    },
    {
      "id": "a5e0ea23-7f5c-488d-9d63-93269b6351eb",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -400
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "**Wait**:\n   - **Type**: Wait Node\n   - **Description**: Pauses the workflow briefly to ensure all processes, like image processing, are completed before continuing.\n"
      }
    },
    {
      "id": "847aaa09-7ce5-4f54-a451-8f34576205b4",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -300
      ],
      "parameters": {
        "width": null,
        "height": 300,
        "content": "**Google Sheets**:\n   - **Type**: Google Sheets Node\n   - **Description**: Appends or updates the Google Sheets document with the processed image link, name, and expiration time.\n"
      }
    },
    {
      "id": "5ce6be0a-387b-4623-b867-3246649a489c",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        980,
        40
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": "**Google Sheets1**:\n   - **Type**: Google Sheets Node (Failure Handling)\n   - **Description**: Logs a failure entry in Google Sheets, including the image name and a failure status with the current tim"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "File Upload Api",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Upload Api": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}