Automate UGC video creation with Gemini and Google Veo 3 & upload to Instagram via Postiz
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
n8n-nodes-postiz(Instagram)
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Postiz
n8n-nodes-postiz.postiz - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive
What it does
π₯π€ This workflow automates the creation and publishing of UGC (User-Generated Content) videos using Google Gemini and Google Veo 3, then uploads them directly to Instagram with Postiz. --- Advantages β
Full Automation β Eliminates manual video editing, caption writing, and uploading. β
High-Quality UGC Videos β Leverages Google Veo 3 for professional ad-like video generation. β
AI-Powered Creativity β Uses Google Gemini for both creative direction and social media copywriting. β
Time-Saving β From image to published Instagram post in a single automated flow. β
Consistency β Ensures branding and messaging remain aligned across campaigns. β
Scalability β Can easily generate multiple UGC ads for different products. β
Centralized Management β Stores videos in Google Drive and distributes them via Postiz. --- How It Works 1. Image Analysis & Creative Briefing: The workflow starts with a predefined product image. This image is analyzed by Google Gemini, which acts as a "Creative Director" to generate a detailed, cinematic prompt describing an 8-second commercial scene based on the image's content. 2. Parallel AI Task Execution: The creative director's prompt is then sent to two different AI agents simultaneously: Video Generation: One agent uses the prompt with Google Veo 3 to generate the actual video file, visualizing the described scene. Copywriting: The other agent, acting as a "Social Media Manager," uses the same prompt to generate compelling caption copy tailored for an Instagram audience. 3. Asset Distribution & Publishing: The generated video is uploaded to two destinations: Google Drive for storage and the Postiz API for social media management. The AI-generated caption is prepared. Finally, all data (video information from Postiz and the caption) is merged and sent to the Postiz node, which schedules and publishes the video as a post to the connected Instagram account. --- Set Up Steps To use this workflow, you need to configure the following credentials and node settings in n8n: 1. Image Source: In the "Set image" node, replace the default imageurl value with the URL of your own product image. 2. Google Gemini Credentials: The workflow uses three Gemini nodes. Ensure your Google Gemini API credentials (named "Google Gemini(PaLM) (Eure)" in this example) are correctly set up and have access to the specified models (gemini-2.5-pro and veo-3.0-generate-preview). 3. Google Drive Credentials: Configure the "Upload video" node with valid Google Drive OAuth credentials. Update the folderId parameter if you wish to save the generated videos to a different folder in your Drive. 4. Postiz Credentials: The "Upload Video to Postiz" and "Instagram" nodes require valid credentials for the Postiz API. You must have an active Postiz account and have connected your Instagram business account to it within the Postiz platform. 5. Postiz Integration ID: In the "Instagram" node, the integrationId field is specific to a connected social account within a Postiz account. You must replace this value with your own Instagram integration ID from Postiz. 6. (Optional) Video Parameters: You can adjust the video generation aspect ratio (e.g., 9:16 for Stories/Reels) in the options of the "Generate UGC Video" node. --- Need help customizing? Contact me(mailto:[email protected]) for consulting and support or add me on Linkedin.