π¬ Test Instagram trial reel hooks with Gemini, Veo 3.1, PostWire, and Sheets
β‘ 17 views Β· π¬ Content Creation & Video
π‘ Pro Tip β Heads up β if this workflowβs Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.
Description
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
- Receives a submission from an n8n form with a video idea, target audience, and the number of variants to test.
- Uses Google Gemini to return JSON containing multiple variants with a hook, angle, Veo prompt, and Instagram caption.
- 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.
- 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.
- Checks whether PostWire reports a successful publish and appends a row to Google Sheets with the idea, variant, hook, status, and link.
- If publishing fails, appends a βneeds fixβ row to Google Sheets and sends a Gmail message containing the error and suggested fix details.
Setup
- 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. - Add Google Gemini credentials with access to
gemini-2.5-flashand the Veo model used for video generation. - 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.
- Connect your Gmail account and replace
you@example.comwith your email address for failure notifications. - Open the form URL from the form trigger and submit a test idea to validate posting, logging, and email behavior.
π Nodes Used
Google Sheets, HTTP Request, Gmail, n8n Form Trigger, Google Gemini
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File