Generate YouTube, Reels, and TikTok scripts from one topic with GPT-4o-mini, Google Sheets, and Gmail
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Multi-Platform Video Script Generator”). Along the way it connects OpenAI Chat Model, Google Sheets and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Multi-Platform Video Script Generator”).
- 2. Set — Config Values (Edit Fields (Set)): sets 10 fields: sheetId, sheetName, recipientEmail…
- 3. AI Agent — Write 3 Platform Scripts (AI Agent): runs an AI agent, with model: 4. OpenAI — GPT-4o-mini Model; output parser: 5. Parser — Structured Scripts Output
- 6. Code — Split Scripts for Sheets (Code): runs custom JavaScript code
- 7. Google Sheets — Log Video Scripts (Google Sheets): append
- 8. IF — All Scripts Logged? (If): checks a condition and branches into true / false
- 9. Code — Build Email (Code): runs custom JavaScript code
- 11. Set — More Scripts (Edit Fields (Set)): sets 1 field: result
- 10. Gmail — Send Scripts Email (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 3 Platform Scripts (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 3 Platform Scripts (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- 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 - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Description Submit one video topic using a simple form and GPT-4o-mini generates three platform-ready scripts in a single AI call. You get a structured 700–900 word YouTube long-form script, a fast-paced 100–130 word Instagram Reels script with visual cues,…