Automate video background removal and composition using n8n. This powerful n8n workflow template processes video files, applies custom image backgrounds, handles polling, and saves the final output directly to Google Drive.
Download this n8n workflow template and start using it instantly.
This expert n8n workflow template provides an end-to-end solution for high-volume video composition tasks, solving the challenge of quickly generating branded or customized video content without needing complex desktop editing software. By utilizing an external video processing API combined with robust n8n flow control, the entire process—from submitting the video to final storage—is fully automated. Whether initiated by a webhook or a manual run, the n8n workflow efficiently handles job creation, composition settings (like the 'centered' template), continuous status polling, downloading the processed video (as binary data), and reliable delivery to Google Drive. This specific n8n workflow is perfect for standardizing the backgrounds of AI actors, product demos, or corporate talking head videos.
The automation begins with an n8n trigger, specifically the Webhook Trigger for external calls or the Manual Trigger for testing. Input data, consisting of the foreground video URL and background image URL, is consolidated by the Merge Triggers n8n node. The flow then interacts with the video processing API using multiple HTTP Request n8n nodes.
template: centered).To deploy this comprehensive n8n workflow, follow these steps:
VIDEOBGREMOVERKEY in your n8n settings (Settings -> Variables) and assign your API key as the value. This ensures secure storage, used via the expression ={{ $vars.VIDEOBGREMOVERKEY }} in the n8n node configurations. Webhook Trigger / Manual Trigger (n8n trigger): Initiates the n8n workflow. The Webhook is configured for POST requests to handle external automation.
Set (Extract Webhook Data / Sample URLs): Prepares and validates the input URLs for the foreground video and custom background image, ensuring the subsequent HTTP Request n8n nodes have clean data.
HTTP Request (1. Create Job): The initial API call to submit the foreground video URL for background removal. It uses the secure X-API-Key header.
HTTP Request (2. Start Image Composition): This n8n node defines the processing parameters, including the background image URL and the composition template (centered).
HTTP Request (3. Check Job Status): Used repeatedly in the polling loop to retrieve the current status of the video job.
If (Is Complete? / Has Failed? / From Webhook?): Core n8n flow control nodes. They manage the state of the job, directing the flow based on whether the status is 'completed,' 'failed,' or still 'processing.'
Wait (Wait 20s): Essential for the polling mechanism, this n8n node pauses the execution for 20 seconds before checking the job status again, preventing unnecessary resource consumption and potential API rate limits.
HTTP Request (4. Download Video): Downloads the final processed MP4 file using the URL provided by the status check. It configures the response to be a file (binary data).
Google Drive n8n node, naming it dynamically based on the job ID and timestamp, providing persistent storage.Automate robust version control for your critical n8n workflow assets using GitLab. This dynamic n8n template organizes backups into customer-specific folders, tracks changes, and prevents unnecessary commits.

Automate robust address verification for HighLevel CRM contacts using the Lob API. This n8n workflow ensures mail deliverability and automatically updates contact tags.

Use this powerful n8n workflow to verify form submission emails using Hunter, enrich contact data with Clearbit, and automatically sync high-quality leads into HubSpot CRM.

Create a searchable knowledge base from video transcripts. This powerful n8n workflow uses Google Drive, VLM Run, and an AI Agent powered by GPT-4 and Google Sheets for video Q&A.

Automate video transcription using this robust n8n workflow. Trigger transcription on Google Drive upload, leverage VLM Run AI for processing, and automatically save segmented results to Google Docs. Get started with these n8n templates.









































