Generate YouTube scripts and full SEO package with GPT-4o-mini and Gmail
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“YouTube Video Content Generator”). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: When someone submits an n8n form (“YouTube Video Content Generator”).
- 2. Set — Config Values (Edit Fields (Set)): sets 9 fields: recipientEmail, senderName, channelNiche…
- 3. AI Agent — Write Video Script (AI Agent): runs an AI agent, with model: 4. OpenAI — Script Model GPT-4o-mini
- 5. Set — Save Script and Config (Edit Fields (Set)): sets 9 fields: videoScript, videoTopic, targetAudience…
- 6. AI Agent — Generate SEO Package (AI Agent): runs an AI agent, with model: 7. OpenAI — SEO Model GPT-4o-mini; output parser: 8. Parser — Structured SEO Output
- 9. Code — Build Email (Code): runs custom JavaScript code
- 10. Gmail — Send Content Package (Gmail): uses Gmail
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in 3. AI Agent — Write Video Script (v1.7), 6. AI Agent — Generate SEO Package (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) 3. AI Agent — Write Video Script (v1.7), 6. AI Agent — Generate SEO Package (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail
From the author
Description 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…