Test Instagram trial reel hooks with Gemini, Veo 3.1, PostWire, and Sheets
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
What it does
Quick Overview This workflow collects a video idea via an n8n form, uses Google Gemini to generate multiple opening-hook variants and Veo 3.1 to render a short vertical video for each, then uploads and publishes them to Instagram as trial reels via PostWire while logging results to Google Sheets and emailing failures via Gmail. How it works 1. Receives a submission from an n8n form with a video idea, target audience, and the number of variants to test. 2. Uses Google Gemini to return JSON containing multiple variants with a hook, angle, Veo prompt, and Instagram caption. 3. Splits the variants into individual items and, for each one, requests a PostWire upload URL, generates an 8-second 9:16 clip with Veo 3.1, uploads the video to PostWire, and finalizes it to get a hosted media URL. 4. Creates an Instagram Reel via the PostWire API with trial-reel enabled, using an idempotency key to avoid duplicate posts for the same test and variant. 5. Checks whether PostWire reports a successful publish and appends a row to Google Sheets with the idea, variant, hook, status, and link. 6. If publishing fails, appends a “needs fix” row to Google Sheets and sends a Gmail message containing the error and suggested fix details. Setup 1. Create a PostWire account, connect your Instagram professional account, and add an n8n HTTP Header Auth credential with Authorization: Bearer <your PostWire API key for the PostWire HTTP Request steps. 2. Add Google Gemini credentials with access to gemini-2.5-flash and the Veo model used for video generation. 3. Select or create a Google Sheets spreadsheet and worksheet, then map it to both Google Sheets append steps with columns for date, idea, variant, hook, status, link, and note. 4. Connect your Gmail account and replace [email protected] with your email address for failure notifications. 5. Open the form URL from the form trigger and submit a test idea to validate posting, logging, and email behavior.