Generate highly personalized, data-driven product videos automatically using this advanced n8n workflow. Integrates Foreplay competitor data, Google Gemini, and video generation APIs.
Download this n8n workflow template and start using it instantly.
This advanced n8n template is ideal for:
Performance Marketers: Automating the creation of new video ad concepts based on proven competitor strategies.
Brand Managers: Generating high-volume, personalized video assets quickly without relying on manual scripting.
Content Creators: Leveraging AI tools like Gemini and Sora 2 clones directly within an integrated n8n workflow.
Automation Specialists: Users seeking complex, multi-API integrations using the powerful http request n8n node and AI agents.
Generating high-quality, conversion-focused video ads often requires extensive research and creative time. This sophisticated n8n workflow solves this by merging data-driven competitor analysis with cutting-edge generative AI.
It leverages Foreplay’s API to fetch successful ad data (descriptions, transcripts, emotional drivers) for a specific niche. This data is then fed into a Google Gemini Agent (running within an n8n node) which crafts a compelling, cinematic video prompt. This prompt, alongside a product image fetched from Google Drive, is sent to a text-to-video API (Kie.ai, using a Sora-like model) for rendering. Finally, the finished video is automatically saved back to Google Drive.
This robust n8n automation ensures you can generate personalized, high-quality video ads in batches, scaling your creative output dramatically. This is a perfect example of what complex n8n templates can achieve.
This powerful n8n workflow follows a complex, iterative process:
Manual Trigger starts the process. Credentials and product context (niche, category, name) are set using dedicated Set n8n nodes.HTTP Request n8n node to pull recent, high-performing video ad data from the Foreplay API, filtering by niche and duration.Split Foreplay Response node separates the array of competitor ads, and the Assemble Video Input Data node combines this competitor data (description, mood, transcript) with the public product image URL.Iterate Over Ad Examples node ensures that the subsequent AI steps run for each competitor ad example fetched, generating a unique video concept for each item.Generate Video Prompt n8n node (a Langchain Agent powered by the Google Gemini LLM) processes the combined data. It uses a detailed system prompt to create a rich, cinematic text-to-video description, incorporating product details and competitor emotional drivers.HTTP Request n8n node sends the AI-generated prompt and the product image URL to the Kie.ai API to initiate the text-to-video rendering task.Check Video Generation Status http request n8n node, a Switch node, and a Wait Before Checking Again n8n node. If the video is still processing, the flow waits for 1 minute and checks again. This loop continues until 'success' or 'failure' is reported.Download Finished Video http request n8n node retrieves the final video file, which is then saved to the designated folder using the Upload Generated Video to Google Drive n8n node. The loop then continues to process the next item in the batch.To deploy this expert n8n workflow, follow these steps:
Set Workflow Credentials n8n node and update the placeholder expressions for GOOGLEDRIVEFOLDERID (for source images and generated videos) and FOREPLAYAPI_KEY.Google Gemini LLM n8n node.Create Video Task and Check Video Generation Status n8n nodes.Set Product Information n8n node to match your specific product name, niche, category, and target market.Manual Trigger n8n trigger to test your first batch of video generations.This n8n workflow utilizes several specialized n8n nodes to manage data flow and AI integration:
Set Workflow Credentials (Set n8n node): Stores sensitive data and IDs (like Foreplay API key, Google Drive folder IDs) using expressions, centralizing configuration for the entire n8n template.
Fetch Competitor Video Data (HTTP Request n8n node): Acts as the data engine, securely calling the Foreplay API to retrieve competitor ad details based on specific product filters.
Assemble Video Input Data (Set n8n node): Consolidates necessary inputs (transcription, mood scores, product image URL) into a single data item before running the generative AI processes.
Iterate Over Ad Examples (Split In Batches n8n node): Crucial for batch processing. It processes each competitor ad data item individually, allowing the video generation process to run in parallel or sequence for multiple video ideas.
Generate Video Prompt (Agent n8n node, powered by Gemini): This is the core creativity n8n node. It functions as an intelligent agent, taking structured data and applying complex instructions (defined in the system message) to generate a high-quality, descriptive text prompt suitable for state-of-the-art text-to-video models.
Create Video Task (HTTP Request n8n node): Submits the AI-generated prompt and product image to the Kie.ai video API, starting the intensive video rendering process.
Check Video Generation Status (HTTP Request n8n node) & Video Generation Status (Switch n8n node): Manages the asynchronous nature of video rendering. This combination of n8n nodes polls the API until the job status changes to 'success'.
Wait Before Checking Again (Wait n8n node): Pauses the n8n workflow for 1 minute to avoid overloading the generation API while the video is being rendered.
Use this powerful n8n workflow to automate competitor research via Google Search, generate high-quality, SEO-optimized product content using AI models, and store the output directly in Google Sheets. Explore n8n templates for digital marketing.

Use this comprehensive n8n workflow to automate competitive product research. It leverages OpenAI to generate highly effective search queries, aggregates results via Google Custom Search, and delivers a summarized pricing report via email. Get started with this powerful n8n template today.

Deploy a multi-agent n8n workflow for automated product research. This n8n templates leverages GPT-4o, SerpAPI, and sophisticated n8n node parallelism to find, review, and compile comparison reports automatically.

Instantly generate custom sales proposals using an n8n workflow triggered by a form submission. This n8n automation integrates OpenAI content generation with Google Slides text replacement for rapid document delivery.

Use this powerful n8n workflow to build a sophisticated Retrieval-Augmented Generation (RAG) system. Automatically ingest PDFs and CSVs from Google Drive, generate context-aware embeddings using OpenAI, store data in a Supabase vector database, and deploy an AI chatbot agent.

Implement a robust n8n workflow for advanced RAG chatbots. This n8n template uses OpenAI, Qdrant vector storage, LangChain n8n nodes, and webhooks to handle complex Q&A, calendar booking, and external API tracking.








































