Automated AI Background Removal and Sheets Tracker - n8n Workflow

Use this powerful n8n workflow to automatically remove backgrounds from uploaded images using AI services, track results, and manage temporary download links in Google Sheets.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content Creators and E-commerce Managers needing bulk image processing.

  • Developers looking for robust n8n templates for integrating RapidAPI services.

  • Teams requiring automated logging and tracking of image processing outcomes in Google Sheets.

  • Anyone who needs a public submission form and automated backend image manipulation.

Overview

This comprehensive n8n workflow provides a robust solution for automating image processing using external AI services. The process begins with an easy-to-use public form, which acts as the primary n8n trigger. Once an image is uploaded, the automation takes over, sending the file to a specialized Background Remover AI via an HTTP Request n8n node. After processing, the resulting image (converted from base64) is uploaded to a temporary file hosting service, ensuring a secure, time-limited download link. The workflow then uses conditional logic (an If n8n node) to check the processing status. Finally, all results—whether success or failure, including the image name and temporary link—are meticulously logged in Google Sheets. This is one of the most practical n8n templates for combining AI services with core data tracking.

How it Works

The automated process begins when a user submits an image via the On form submission n8n trigger.


  1. AI Request: The uploaded image is immediately forwarded via an HTTP Request n8n node to the external Background Remover AI service (RapidAPI). This node is configured to send the file as multipart-form-data.

  2. Data Conversion: The response, which contains the processed image data, is typically base64 encoded. The Convert to File n8n node transforms this data into a usable binary file.

  3. Temporary Storage: The processed binary image is then uploaded using another HTTP Request n8n node (labeled 'File Upload Api') to a temporary hosting service, which returns a temporary URL.

  4. Conditional Branching: The If n8n node evaluates the status returned by the file upload service. It specifically checks if the status equals 'success'.

  5. Success Path: If successful, the workflow pauses briefly using the Wait n8n node, then logs the successful outcome, the temporary URL, the image name, and a calculated expiration time (60 minutes from $now) into Google Sheets.

  6. Failure Path: If the status check fails, the workflow uses the second Google Sheets1 n8n node to log the failure, including the original image name and a 'Failed' status, ensuring no event is missed. This strategic use of n8n nodes guarantees reliable tracking of every submission.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import the n8n template: Copy the provided JSON and import it into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Configure the Form Trigger: Activate the On form submission n8n trigger and note the webhook URL provided. This is where users will upload their images.

  3. RapidAPI Credentials: Update the two HTTP Request n8n nodes ('HTTP Request' and 'File Upload Api') with your actual RapidAPI keys. Replace the placeholder value 'your key' in the x-rapidapi-key header parameter.

  4. Google Sheets Setup: Create a new spreadsheet with columns like 'Image name', 'Link', 'Expire at', and 'status'.

  5. Google Sheets Credential Setup: Configure the Google API credentials for both Google Sheets n8n nodes. Ensure the 'Document ID' and 'Sheet Name' are correctly set to point to your tracking sheet. This step is crucial for the n8n node integration.

  6. Activate: Save the n8n workflow and activate it to start processing images.

Node Details

This n8n workflow utilizes several key nodes to achieve end-to-end automation:

On form submission (Form Trigger): This is the initiating n8n trigger. Its function is to provide a public endpoint for image uploads, requiring a single file input named 'Image'.
HTTP Request (Background Removal): Sends the binary image data to the background removal API. Key Configuration: Method: POST, Content Type: multipart-form-data, and required authentication headers (x-rapidapi-key). This n8n node performs the core AI function.
Convert to File: Converts the API response field (base64) into a storable binary format (data) needed for subsequent file uploads.
File Upload Api (HTTP Request): Uploads the processed image to a temporary host. Key Configuration: Similar POST configuration to handle binary data input from the 'Convert to File' n8n node.
If: A critical flow control n8n node that checks if the response status is 'success'. This determines the logging path.
Wait: Pauses execution (using a webhook) for a short duration, ensuring system readiness before logging results.
Google Sheets: Appends successful results. Key Configuration: Operation appendOrUpdate, mapping the output link and dynamically setting the Expire at time (current time + 60 minutes) based on expressions pulled from previous n8n nodes.
Google Sheets1 (Failure Logging): Logs failed attempts, setting the status column explicitly to 'Failed' and inserting the current timestamp.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by
Evoort Solutions
Evoort Solutions

Featured*