Generate video ads with Gemini 2.5 flash images & FAL WAN animation
This automated workflow template transforms a single product image into a complete professional advertisement video with dynamic motion and custom soundtrack. Perfect for e-commerce businesses, marketing agencies, and content creators who need to quickly produce high-quality video ads for social media platforms like TikTok, Instagram Reels, and YouTube Shorts.
Note: This workflow uses FAL.ai API for AI image generation with Gemini Bano Banana and video creation with Wan, Google Gemini for intelligent storyboarding, ImgBB for image hosting, and Upload-Post.com for automated social media publishing.
Who Is This For?
- E-commerce Businesses: Transform product photos into engaging video advertisements that drive sales and increase conversion rates across social media platforms.
- Marketing Agencies: Scale video ad production for multiple clients without expensive video equipment or extensive editing time.
- Social Media Managers: Create consistent, professional video content for brands that stands out in crowded social feeds.
- Content Creators & Influencers: Generate eye-catching product showcase videos for sponsored content and affiliate marketing campaigns.
- Small Business Owners: Compete with larger brands by creating professional-quality video ads on a budget.
What Problem Does This Workflow Solve?
Creating professional video advertisements traditionally requires expensive equipment, design skills, and hours of editing time. This workflow addresses these challenges by:
- AI-Powered Visual Enhancement: Automatically generates 4 unique variations of your product image with different lighting, backgrounds, and visual effects.
- Intelligent Motion Generation: Converts static images into dynamic 5-second video clips with smooth camera movements, rotations, and visual effects.
- Automated Storyboarding: Uses AI to create a cohesive visual narrative that showcases your product from multiple appealing angles.
- Professional Audio Integration: Automatically generates and adds suitable background music that matches your product and brand aesthetic.
- Seamless Video Composition: Combines all video clips into a single 20-second advertisement with smooth transitions.
- Multi-Platform Publishing: Automatically uploads finished videos to TikTok, Instagram, and YouTube with optimized formatting.
How It Works
- Product Upload: Submit a single product image and brief description through the web form interface.
- AI Storyboard Creation: Google Gemini AI analyzes your product and creates a 4-frame visual story with lighting enhancements, background changes, and cinematic effects.
- Image Generation: FAL.ai Gemini 2.5 Flash creates 4 unique variations of your product image based on the AI-generated prompts.
- Video Animation: Each enhanced image is converted into a 5-second video clip with specific motion patterns (rotation, zoom, lighting sweeps, camera orbits).
- Quality Control: The system monitors video generation progress and ensures all clips are successfully created before proceeding.
- Video Sequencing: FFmpeg API combines all 4 video clips into a seamless 20-second advertisement with smooth transitions.
- Audio Enhancement: AI generates appropriate background music that matches your product category and brand style.
- Final Composition: Audio and video are merged to create the complete advertisement.
- Automated Publishing: The finished video is automatically uploaded to TikTok, Instagram Reels, and YouTube with your product description.
Setup
- FAL.ai API Setup:
- Create account at fal.ai and obtain API credentials
- Add your API token to the HTTP request authentication nodes
- Google Gemini API:
- Set up Google AI Studio account and get API key
- Configure the Google Gemini Chat Model node with your credentials
- ImgBB Configuration:
- Register at imgbb.com for image hosting
- Update the
imgbb_api_keyin the "Set APIs Vars" node
- Upload-Post Integration:
- Create account at upload-post.com
- Connect your social media accounts (TikTok, Instagram, YouTube)
- Add your Upload-Post credentials to the final upload node
- Workflow Configuration:
- Adjust video parameters (resolution, frame rate, duration) in the image-to-video nodes
- Customize audio prompts in the "Create Sounds" node
- Modify social media posting settings in the "Upload Post" node
Requirements
- Accounts: n8n, FAL.ai, Google AI Studio, ImgBB, Upload-Post.com
- API Keys: FAL.ai API token, Google Gemini API key, ImgBB API key, Upload-Post credentials
- Social Media: Connected TikTok, Instagram, and YouTube accounts for automated publishing
Features
- AI-Powered Image Enhancement: Creates 4 professional variations with lighting, background, and effect improvements
- Dynamic Video Generation: Converts static images to engaging videos with camera movements and visual effects
- Intelligent Audio Matching: Generates background music that complements your product and target audience
- Multi-Platform Optimization: Automatically formats videos for TikTok, Instagram Reels, and YouTube Shorts (9:16 aspect ratio)
- Progress Monitoring: Built-in status checking ensures reliable video generation before proceeding to next steps
- Automated Publishing: Direct upload to social media platforms with optimized descriptions and formatting
- Scalable Processing: Handles multiple video generations simultaneously for efficient batch processing
- Professional Quality: Produces broadcast-ready videos suitable for paid advertising campaigns
Use this template to revolutionize your product marketing strategy, automatically converting any product photo into multiple high-quality video advertisements ready for immediate social media deployment.
n8n Workflow: Generate Video Ads with Gemini, Flash Images & Animation
This n8n workflow automates the process of generating video ad content, leveraging the power of Google Gemini for AI-driven ideation, and integrating with external services for image and animation generation. It allows for dynamic content creation based on user input, making it ideal for marketing teams, content creators, or anyone looking to rapidly produce engaging video ad concepts.
What it does
This workflow orchestrates a series of steps to create video ad content:
- Triggers on Form Submission: The workflow starts when a user submits data through an n8n form. This form likely collects key information or prompts for the video ad generation.
- Initial Data Transformation: It processes the incoming form data, potentially setting or modifying fields to prepare them for AI processing.
- AI Agent for Ideation: An AI Agent (powered by LangChain) is invoked, using a "Think" tool. This agent likely processes the user's input to generate creative concepts, scripts, or outlines for the video ad.
- Google Gemini Chat Model: The AI Agent interacts with the Google Gemini Chat Model to perform complex natural language tasks, such as generating ad copy, storyboards, or detailed descriptions for video scenes.
- Structured Output Parsing: The output from the AI Agent is then parsed into a structured format, ensuring consistency and ease of use for subsequent steps.
- Conditional Logic: An "If" node introduces conditional logic, allowing the workflow to branch based on certain criteria from the AI's output or initial form data. This could be used to, for example, choose different image generation styles or animation types.
- External HTTP Requests: Depending on the conditional logic, the workflow makes HTTP requests to external APIs. These requests are likely used to:
- Generate Flash Images: Interact with an image generation service (e.g., DALL-E, Midjourney, or a custom API) to create visually appealing "flash images" for the video ad.
- Generate Animation: Call an animation service (e.g., LottieFiles, a custom video rendering API, or a GIF generator) to produce animated elements.
- Wait for External Processes: A "Wait" node is used to pause the workflow, allowing time for external services (like image or animation generation) to complete their tasks before proceeding.
- Aggregate Results: The results from different branches of the workflow (e.g., generated images, animation data) are aggregated back together.
- Split Out Data: The aggregated data is then split out, likely to process individual components or prepare them for final output or storage.
- Final Data Transformation: Another "Edit Fields (Set)" or "Code" node performs any final data manipulation, formatting, or cleanup before the workflow concludes.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance (cloud or self-hosted).
- Google Gemini API Key: Access to the Google Gemini API for the "Google Gemini Chat Model" node.
- External Image Generation Service: Access to an API for generating "flash images" (e.g., a custom service, DALL-E, Midjourney, or similar). The "HTTP Request" node will need to be configured with the appropriate endpoint and credentials.
- External Animation Generation Service: Access to an API for generating animation (e.g., a custom service, LottieFiles, or similar). The "HTTP Request" node will need to be configured with the appropriate endpoint and credentials.
- n8n Form: The workflow is triggered by an n8n form submission. You'll need to configure this form within n8n.
Setup/Usage
- Import the Workflow: Download the provided JSON and import it into your n8n instance.
- Configure Credentials:
- Set up your Google Gemini API Key as an n8n credential and link it to the "Google Gemini Chat Model" node.
- Configure the HTTP Request nodes with the necessary API keys, tokens, or authentication methods for your chosen image and animation generation services.
- Customize the n8n Form Trigger: Adjust the "On form submission" node to match the fields and data you expect from your users.
- Review AI Agent Configuration: Examine the "AI Agent" and "Think" tool settings to ensure they align with your desired ad generation logic and prompts.
- Adjust HTTP Request Nodes: Modify the URLs, headers, and body of the "HTTP Request" nodes to correctly interact with your specific image and animation generation APIs.
- Activate the Workflow: Once configured, activate the workflow. You can then trigger it by submitting data to the n8n form URL provided by the "On form submission" node.
Related Templates
Automate Reddit brand monitoring & responses with GPT-4o-mini, Sheets & Slack
How it Works This workflow automates intelligent Reddit marketing by monitoring brand mentions, analyzing sentiment with AI, and engaging authentically with communities. Every 24 hours, the system searches Reddit for posts containing your configured brand keywords across all subreddits, finding up to 50 of the newest mentions to analyze. Each discovered post is sent to OpenAI's GPT-4o-mini model for comprehensive analysis. The AI evaluates sentiment (positive/neutral/negative), assigns an engagement score (0-100), determines relevance to your brand, and generates contextual, helpful responses that add genuine value to the conversation. It also classifies the response type (educational/supportive/promotional) and provides reasoning for whether engagement is appropriate. The workflow intelligently filters posts using a multi-criteria system: only posts that are relevant to your brand, score above 60 in engagement quality, and warrant a response type other than "pass" proceed to engagement. This prevents spam and ensures every interaction is meaningful. Selected posts are processed one at a time through a loop to respect Reddit's rate limits. For each worthy post, the AI-generated comment is posted, and complete interaction data is logged to Google Sheets including timestamp, post details, sentiment, engagement scores, and success status. This creates a permanent audit trail and analytics database. At the end of each run, the workflow aggregates all data into a comprehensive daily summary report with total posts analyzed, comments posted, engagement rate, sentiment breakdown, and the top 5 engagement opportunities ranked by score. This report is automatically sent to Slack with formatted metrics, giving your team instant visibility into your Reddit marketing performance. --- Who is this for? Brand managers and marketing teams needing automated social listening and engagement on Reddit Community managers responsible for authentic brand presence across multiple subreddits Startup founders and growth marketers who want to scale Reddit marketing without hiring a team PR and reputation teams monitoring brand sentiment and responding to discussions in real-time Product marketers seeking organic engagement opportunities in product-related communities Any business that wants to build authentic Reddit presence while avoiding spammy marketing tactics --- Setup Steps Setup time: Approx. 30-40 minutes (credential configuration, keyword setup, Google Sheets creation, Slack integration) Requirements: Reddit account with OAuth2 application credentials (create at reddit.com/prefs/apps) OpenAI API key with GPT-4o-mini access Google account with a new Google Sheet for tracking interactions Slack workspace with posting permissions to a marketing/monitoring channel Brand keywords and subreddit strategy prepared Create Reddit OAuth Application: Visit reddit.com/prefs/apps, create a "script" type app, and obtain your client ID and secret Configure Reddit Credentials in n8n: Add Reddit OAuth2 credentials with your app credentials and authorize access Set up OpenAI API: Obtain API key from platform.openai.com and configure in n8n OpenAI credentials Create Google Sheet: Set up a new sheet with columns: timestamp, postId, postTitle, subreddit, postUrl, sentiment, engagementScore, responseType, commentPosted, reasoning Configure these nodes: Brand Keywords Config: Edit the JavaScript code to include your brand name, product names, and relevant industry keywords Search Brand Mentions: Adjust the limit (default 50) and sort preference based on your needs AI Post Analysis: Customize the prompt to match your brand voice and engagement guidelines Filter Engagement-Worthy: Adjust the engagementScore threshold (default 60) based on your quality standards Loop Through Posts: Configure max iterations and batch size for rate limit compliance Log to Google Sheets: Replace YOURSHEETID with your actual Google Sheets document ID Send Slack Report: Replace YOURCHANNELID with your Slack channel ID Test the workflow: Run manually first to verify all connections work and adjust AI prompts Activate for daily runs: Once tested, activate the Schedule Trigger to run automatically every 24 hours --- Node Descriptions (10 words each) Daily Marketing Check - Schedule trigger runs workflow every 24 hours automatically daily Brand Keywords Config - JavaScript code node defining brand keywords to monitor Reddit Search Brand Mentions - Reddit node searches all subreddits for brand keyword mentions AI Post Analysis - OpenAI analyzes sentiment, relevance, generates contextual helpful comment responses Filter Engagement-Worthy - Conditional node filters only high-quality relevant posts worth engaging Loop Through Posts - Split in batches processes each post individually respecting limits Post Helpful Comment - Reddit node posts AI-generated comment to worthy Reddit discussions Log to Google Sheets - Appends all interaction data to spreadsheet for permanent tracking Generate Daily Summary - JavaScript aggregates metrics, sentiment breakdown, generates comprehensive daily report Send Slack Report - Posts formatted daily summary with metrics to team Slack channel
Generate, encrypt, and send invoices with PDF Generator API & Google Suite
Why Creating and sending invoices manually is a major administrative bottleneck. It's not only slow but also prone to human error, such as creating duplicate invoice numbers or sending sensitive financial data in an unsecured format. This workflow solves these problems by creating a robust, end-to-end automation. It ensures every invoice has a unique ID, is professionally generated, is password-protected, and is delivered to your customer automatically. What This workflow provides a complete, secure solution for automated invoicing. It is designed to be triggered by a Webhook (e.g., from your e-commerce store, CRM, or billing platform) that provides customer and order details. The workflow then executes the following steps: Generate & Verify ID: It first generates a new invoice ID. It then performs a critical check by reading your master Google Sheet to ensure this ID is unique, preventing duplicate invoices. Generate PDF: Once the ID is verified, it passes the data to the PDF Generator API. This service dynamically populates your custom invoice template. (PDF Generator API makes it incredibly easy to build and manage your document templates via their web-based editor). Encrypt Document: For enhanced security, the workflow uses a PDF Generator API operation to encrypt the newly generated invoice with a password, protecting your client's sensitive data. Store & Deliver: Finally, it uploads the secure PDF to a specified Google Drive folder for your records and then automatically sends it to the customer as an attachment using Gmail. How Prerequisites: You will need active accounts for: PDF Generator API (for both generation and encryption) Google Suite (for Sheets, Drive, and Gmail) PDF Generator API Setup: Log in to your PDF Generator API account and use their template builder to create your invoice design. Note your Template ID, API Key, and API Secret. In the n8n PDFGeneratorAPI node (Generate a PDF document), create new credentials using your Key and Secret. In the node's parameters, select your Template ID from the list. Google Sheets Setup: Create a Google Sheet to act as your master list of invoices. In the Check If ID Already Exists node, authenticate your Google Sheets account. Set the Spreadsheet ID and Sheet Name. In the "Columns to Return" field, enter the name of the column where you store your invoice IDs. Security & Delivery Setup: Encrypt Node: In the Encrypt PDF document node, authenticate your PDF Generator API credentials (the same ones from Step 2). You can set a static password, or for better security, use an expression to set a dynamic password from the webhook data (e.g., the customer's postal code or order ID). Google Drive Node: Authenticate the Upload file node and specify the Drive and Folder ID where invoices should be stored. Gmail Node: Authenticate the Send a message + file node. Use an expression to map the customer's email from the trigger data into the "To" field. Test & Activate: The Webhook node has pinned test data. You can click "Test workflow" to run the entire process with this sample data. Once you confirm the file is generated, encrypted, and sent, connect your live app (e.g., Shopify, Stripe, etc.) to the production Webhook URL. Activate the workflow.
Generate WordPress blog posts with GPT-4O and Pixabay featured images via form
This workflow automates the creation of a draft article for a blog Use Cases Rapidly generate blog content from simple prompts. Ensure content consistency and speed up time-to-publish. Automatically source and attach relevant featured images. Save your digital marketing team significant time. (Personalized touch based on your experience) Prerequisites/Requirements An OpenAI API Key (for GPT-4O). A Pixabay API Key (for image sourcing). A WordPress site URL and API credentials (username/password or application password). Customization Options Adjust the AI prompt in the AI Content Generation node to change the content tone and style. Modify the search query in the Pixabay Query HTTP node to influence the featured image selection. Change the reviewer email address in the final Send Review Notification node.