Auto-generate and publish AI short videos with Sora 2, Veo 3.1, Gemini & Blotato
Enter a text idea in n8n → Gemini rewrites it into a video prompt → parallel calls to Sora 2 Pro and Veo 3.1 → auto-publish to multiple platforms via Blotato
- Who
- Content creators, brand operators, and UGC teams who need high-frequency AI video production and cross-platform publishing
- You get
- One chat message triggers video generation from two models, auto-distribution to YouTube, TikTok, and Instagram, plus email notifications
- You need
- n8n · gemini · gmail · google-sheets
Constraints
Prerequisites: n8n instance; Google Gemini API key (googlePalmApi credential); OpenAI Sora 2 API key (httpHeaderAuth credential); Wavespeed (Veo 3.1) API key (httpHeaderAuth credential); Blotato account with connected YouTube/TikTok/Instagram channels; Gmail OAuth2; optional Google Sheets. Costs: video APIs charge per call; Blotato pricing follows platform policies. Limits: Sora/Veo availability depends on region and account access; rendering time varies by prompt complexity; Blotato requires completed social account authorization before publishing.
What they did
Author amitxd published an official n8n template (workflow ID 11276) demonstrating how a single chat message can trigger a complete AI video generation and publishing pipeline. In the template, Google Gemini serves as a prompt enhancer, rewriting a brief idea into a detailed description suitable for video generation models. The flow then branches in parallel into a Sora 2 Pro branch and a Veo 3.1 (Wavespeed) branch, each with distinct distribution paths. The Sora branch downloads the MP4 and publishes directly to YouTube, TikTok, and Instagram via Blotato, sends a confirmation email, and logs to Google Sheets. The Veo branch polls asynchronously for the result link, emails it to the user, and optionally uploads to Blotato for publishing.
How it went
The source reports this template is suitable for creators, brands, and UGC teams building high-frequency AI video pipelines (author_report). It includes toggles to flexibly enable or disable models and platforms. As of collection, the template had 1299 views on n8n.io.
Worth knowing
1) This site has not tested the template; reproduction=not_tested. 2) Sora 2 Pro and Veo 3.1 API availability and pricing depend on region and provider policies, and costs can be significant. 3) Blotato publishing requires completed social account authorization; otherwise nodes will fail. 4) The Google Sheets node has empty documentId and sheetName in the template and must be filled by the user. 5) TikTok and Instagram publishing toggles default to unset in the template and must be enabled as needed. 6) The Veo branch Wait node is fixed at 60 seconds; actual rendering time may be longer and should be adjusted based on Wavespeed response.
n8n workflow template
Structure checked · Not run-testedUse “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.
Setup and test checklist
Credentials to connect
- Google Gemini Chat Model node: connect Google Gemini/PaLM API credentials.
- Download Sora Video node: connect HTTP Header Auth credentials.
- Upload Sora Video to Blotato node: connect blotatoApi credentials.
- Publish Sora to YouTube node: connect blotatoApi credentials.
- Publish Sora to TikTok node: connect blotatoApi credentials.
- Publish Sora to Instagram node: connect blotatoApi credentials.
- Create Veo 3.1 Video node: connect HTTP Header Auth credentials.
- Get Veo Result node: connect HTTP Header Auth credentials.
- Upload Veo Video to Blotato node: connect blotatoApi credentials.
- Publish Veo to YouTube node: connect blotatoApi credentials.
Configuration to replace
- Source template is n8n public workflow #11276 (~25 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
- Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.
Test input and expected output
- Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
- Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.
Template changes
- Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
- No business-logic edits; verify keys, quotas and privacy compliance before use.
Template retrieved: 2026-10-25
Steps
Input idea and enhance prompt
Send a text idea through the Chat Trigger. n8n passes the input to the Gemini Prompt Enhancer (AI Agent node, linked to Google Gemini Chat Model). Its systemMessage expands the user input into a detailed video prompt suitable for Sora 2 and Veo 3.1, covering action, scene, lighting, mood, camera movement, and style. Output is plain text, shared by both downstream branches.
Execution prompt · Source text。Gemini Prompt Enhancer node systemMessage field
You are an AI assistant that rewrites user ideas into highly detailed AI video generation prompts. Rules: - Take the user input and expand it into a single improved prompt suitable for models like OpenAI Sora 2 and Google Veo 3.1. - Focus on describing action, scene, lighting, mood, camera movement and style. - Make it safe for all audiences. - Output ONLY the improved prompt as plain text (no JSON, no keys).
Configure toggles and credentials
In the Config – Toggles node (Set node), set booleans: useSora, useVeo, publishToYouTube, publishToTikTok, publishToInstagram, logToGoogleSheets. Then add credentials in n8n: googlePalmApi (Gemini), httpHeaderAuth (Sora and Wavespeed), blotatoApi (Blotato). Replace the placeholder accountId in Blotato nodes with your actual account ID. Fill documentId and sheetName in the Google Sheets node.
Sora branch: generate, download, and publish to multiple platforms
If useSora is true, the flow enters the Sora branch. The Create Sora 2 Pro Video node POSTs to https://api.openai.com/v1/videos with parameters: model=sora-2-pro, size=1280x720, seconds=8, prompt=enhanced prompt. The returned id is used by Download Sora Video to fetch the MP4. Upload Sora Video to Blotato uploads the media, then Publish Sora to YouTube/TikTok/Instagram publishes via Blotato (postContentText and postContentMediaUrls from upstream). Email Sora Upload Confirmation sends a confirmation email, and Log Sora Video to Google Sheets optionally records metadata.
Veo branch: generate, wait, retrieve result, and notify
If useVeo is true, the flow enters the Veo branch. The Create Veo 3.1 Video node POSTs to https://api.wavespeed.ai/api/v3/google/veo3.1/text-to-video with parameters: aspect_ratio=9:16, duration=8, generate_audio=true, resolution=720p, prompt=enhanced prompt. Wait for Veo Result pauses 60 seconds, then Get Veo Result GETs /predictions/{data.id}/result for the output link. Email Veo Video Link emails the link. Optional: Upload Veo Video to Blotato → Publish Veo to YouTube for upload and publishing.
Optional extensions and customization
Suggested extensions from the source: add a title/description generator for YouTube Shorts; insert a thumbnail generator (image AI model); extend logging with Sheets or a database; add additional platforms supported by Blotato; use different prompt strategies for cinematic, viral, or niche content styles. All are optional and do not affect the core workflow.
Prompt you can copy
Setup guidance · Editorial suggestion。Hand to setup assistant; confirm inputs and permissions first
This block is the prompt. Ads are never placed here.
You are reproducing n8n template 11276: Sora 2 + Veo 3.1 + Gemini + Blotato automated video publishing. First confirm you have the following credentials: Google Gemini (googlePalmApi), OpenAI Sora 2 (httpHeaderAuth), Wavespeed Veo 3.1 (httpHeaderAuth), Blotato (blotatoApi), Gmail OAuth2. Check that the Config – Toggles match your publishing needs, and replace the placeholder accountId in Blotato nodes with your real account ID. Test the Chat Trigger with a simple prompt first to verify the Gemini Prompt Enhancer output format, then enable the Sora/Veo branches.
Before building, verify 5 API credentials and Blotato social account connections
Source
Generate & publish AI videos with Sora 2, Veo 3.1, Gemini & Blotato · amitxd · n8n.io · 2025-11-27
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.