Generate vertical product video ads with OpenAI, Groq, Google Drive and JSON2Video
Quick overview Our workflow takes product data, generates AI images and voiceover, stores assets in Google Drive, then combines everything into a 9:16 video with automatic captions using JSON2Video.
How it works Receives a product description and product image from an n8n Form Trigger submission. Uploads the submitted image to Google Drive and sends the description to Groq to generate three cinematic scene prompts. Downloads a sample reference image from Google Drive and uses OpenAI image editing (gpt-image-1-mini) to generate three scene images from the prompts, uploading each generated image back to Google Drive. Uses Groq to write a single-paragraph voiceover script based on the three scenes, then generates an audio voiceover with OpenAI and uploads the audio file to Google Drive. Lists and downloads the uploaded scene images from a Google Drive folder, then compiles a JSON2Video project payload that assembles the three images into timed scenes with audio and subtitle settings. Sends the payload to JSON2Video to render the video, waits briefly, checks rendering status, downloads the final video file, and returns it as the form completion response.
Setup Add Groq API credentials for the two Groq chat model steps (openai/gpt-oss-120b and openai/gpt-oss-20b). Add OpenAI credentials (or enable n8n’s AI Gateway) for image generation and audio generation. Connect a Google Drive OAuth2 account, ensure the target Drive folder used for scenes/audio exists and is accessible, and update any file/folder IDs if you don’t want to use the provided ones. Create a JSON2Video account, replace the hardcoded x-api-key header value with your own API key, and adjust the project JSON (resolution, scene durations, subtitles) if needed.
Requirements Product information Google Drive account OpenAI account Groq account JSON2Video API key Publicly accessible Google Drive files n8n Cloud workflow Internet connection
Customization Product information Google Drive account OpenAI account Groq account JSON2Video API key Publicly accessible Google Drive files n8n Cloud workflow Internet connection
Additional info Branding, colors, fonts, logo, background music, transitions, animations, call-to-action text, product positioning, scene order, video duration, and export format.
Related Templates
AI Weather Forecasts with MCP Integration
Real-time Weather Forecasts with MCP Tools This n8n workflow demonstrates how to integrate real-time weather intelligen...
Google Sheets UI for n8n Workflow
Google Sheets UI for Workflow Control This n8n template provides a practical and efficient way to manage your n8n workf...
Demo Workflow - How to use workflowStaticData()
This workflow demonstrates how to use the workflowStaticData() function to set any type of variable that will persist wi...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments