Submit your video topic, target audience, video length, and tone of voice using a simple form and two sequential AI agents do the rest. The first writes a complete structured video script with hook, three content sections, conclusion, and call to action. The second generates the full SEO metadata package: an optimized title, three alternative titles, a full YouTube description with hashtags, 15 tags, and timestamped chapters. Everything arrives in one clean Gmail email ready to record and upload. Built for YouTube creators, video marketers, and SEO agencies who want a complete production-ready video package in minutes instead of hours.
⚠️ OpenAI API key appears in 2 steps — connect it in both 4. OpenAI — Script Model GPT-4o-mini and 7. OpenAI — SEO Model GPT-4o-mini
Estimated Setup Time: 10–15 minutes
Import the workflow — Open n8n → Workflows → Import from JSON → paste the workflow JSON → click Import
Fill in Config Values — Open node 2. Set — Config Values → replace all three placeholders:
| Field | What to enter |
|---|---|
PASTE_YOUR_EMAIL_HERE |
The email address where the content package should be sent |
PASTE_YOUR_NAME_HERE |
Your name for the email greeting and sign-off |
PASTE_YOUR_CHANNEL_NICHE_HERE |
Your channel's topic area (e.g. personal injury law, SaaS marketing, medical aesthetics) — GPT uses this to personalize both the script and metadata |
Connect OpenAI for the script step — Open node 4. OpenAI — Script Model GPT-4o-mini → click the credential dropdown → add your OpenAI API key → test the connection
Connect OpenAI for the SEO step — Open node 7. OpenAI — SEO Model GPT-4o-mini → click the credential dropdown → select the same OpenAI API credential → confirm it is connected
Connect Gmail — Open node 10. Gmail — Send Content Package → click the credential dropdown → add Gmail OAuth2 → sign in with the Gmail account where you want to receive packages → authorize access
Activate the workflow — Toggle the workflow to Active → copy the Form URL from node 1. Form — YouTube Content Request → open it in a browser to submit your first video
Step 1 — Form: YouTube Content Request
You open the form URL in a browser and fill in five fields: the video topic, target audience, video length (e.g. "8 minutes"), tone of voice (optional, defaults to "educational and engaging"), and your name. Submitting the form starts the workflow immediately.
Step 2 — Set: Config Values
Your email, sender name, channel niche, and all five form inputs are stored here. Today's date is auto-generated for the email subject. Tone of voice defaults to "educational and engaging" if left blank on the form.
Step 3 — AI Agent: Write Video Script
GPT-4o-mini receives the video topic, target audience, video length, tone of voice, and channel niche. It writes a complete spoken video script in plain English with no bullet points or markdown. The structure is fixed: a 30-second hook with 3–4 punchy sentences, a short introduction paragraph, three named content sections each with 2–3 paragraphs, a conclusion summarizing the three key takeaways, and a 2-sentence call to action asking viewers to like, subscribe, and comment.
Step 4 — OpenAI: Script Model GPT-4o-mini
This is the language model powering the script writing step. It runs at temperature 0.7 for creative, natural-sounding spoken language and is capped at 2,000 tokens to accommodate a full-length video script.
Step 5 — Set: Save Script and Config
The completed script is saved from the previous step's output. All nine config values — email, name, niche, topic, audience, length, and today's date — are explicitly re-carried forward here so the SEO agent has full context. This bridge step is necessary because n8n agents pass their output to the next step, not the full context from earlier in the workflow.
Step 6 — AI Agent: Generate SEO Package
GPT-4o-mini receives the video topic, target audience, channel niche, and video length. It returns five structured fields: a main YouTube title under 60 characters, an array of three alternative titles (one curiosity angle, one number angle, one question angle each under 60 characters), a full description under 250 words with keyword hook, learning points, call to action, and hashtags, an array of 15 keyword tags mixing short and long tail terms, and an array of timestamped chapter objects spaced evenly across the video length starting at 0:00.
Step 7 — OpenAI: SEO Model GPT-4o-mini
This is the language model powering the SEO metadata step. It runs at temperature 0.3 for precise, consistent output — lower than the script step because metadata needs to be accurate and structured, not creative.
Step 8 — Parser: Structured SEO Output
This step enforces the exact five-field schema GPT-4o-mini must return for the SEO package. It validates that title, alternativeTitles, description, tags, and chapters are all present and correctly typed before the email is assembled.
Step 9 — Code: Build Email
The SEO output and the saved script are combined into one complete plain-text email. The email is organized into clearly labeled sections: topic summary header, main title and three alternative titles, all 15 tags as a comma-separated list, chapters as timestamp-title pairs, the full description, and the complete video script. The email subject is automatically set to "YouTube Content Package — [main title] — [today's date]".
Step 10 — Gmail: Send Content Package
The complete email is sent to your configured email address with no attribution footer. One email contains everything needed to record, upload, and optimize the video.
✅ Two specialized AI agents in sequence — Script writing and SEO metadata are handled by separate GPT instances with different temperatures so each task is optimized independently
✅ Script temperature tuned for creativity — The script agent runs at 0.7 so the language sounds natural and spoken, not robotic or like a list
✅ SEO metadata temperature tuned for precision — The metadata agent runs at 0.3 so titles stay under 60 characters, chapters start at 0:00, and tag arrays are clean
✅ Channel niche personalizes both outputs — Your niche is passed to both agents so the script examples and the SEO keywords stay relevant to your actual audience
✅ Structured output enforced for metadata — A schema parser validates all five SEO fields before the email is built — no broken or incomplete packages
✅ Chapters spaced to your video length — The chapters step reads your submitted video length and distributes timestamps evenly so chapters actually match the content structure
✅ Single email with every deliverable — Script, titles, tags, chapters, and description all arrive in one email with clear section headers — ready to copy-paste into your recording notes and YouTube upload form
✅ Tone defaults to educational if blank — Leaving the Tone of Voice field empty on the form triggers a sensible default instead of failing the workflow
Change the script structure — In node 3. AI Agent — Write Video Script, edit the structure instructions to add or remove sections — for example replace "Section 3 — common mistake" with "Section 3 — case study example" to change the content format for your channel style.
Add a Google Docs save alongside the Gmail — After node 9. Code — Build Email, add a Google Docs step that creates a new document with the email body — giving you a permanent editable copy in Drive alongside the email delivery.
Generate a shorter script for YouTube Shorts — Add a second form field option for "Short format (under 60 seconds)" and branch after step 2 — if the video length is under 60 seconds, route to a shorter prompt in the AI Agent that writes just a hook and one main point.
Send the package to a Slack channel — After node 10. Gmail — Send Content Package, add a Slack step that posts the main title, first alternative title, and today's date to a #youtube-content channel so your team sees new packages without checking email.
Increase script length for longer videos — In node 4. OpenAI — Script Model GPT-4o-mini, raise maxTokens from 2000 to 3000 to allow GPT to write a more detailed script for 15–20 minute videos — useful for in-depth tutorial formats.
Form submission not starting the workflow:
Script agent not generating content:
maxTokens is too low for your video length, the script may be cut off — increase from 2000 to 2500 in node 4SEO package missing fields or failing schema validation:
Gmail not sending the package:
PASTE_YOUR_EMAIL_HERE in node 2. Set — Config Values is replaced with your actual email addressEmail arriving with missing sections or garbled content:
seoOutput is null the step throws an errorvideoScript field forward — check its output in the execution log to confirm the script text is present before the SEO agent runsNeed help setting this up or want a custom version built for your team or agency?
📧 Email: [email protected]
🌐 Website: https://www.incrementors.com/