Test Instagram trial reel hooks with Gemini, Veo 3.1, PostWire, and Sheets

Go to Workflow
0 views
Built by PostWire PostWire
Created on October 04, 2026

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 for the PostWire HTTP Request steps.
Add Google Gemini credentials with access to gemini-2.5-flash and 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 [email protected] with 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 (4)

Gmail
n8n-nodes-base.gmail
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest