Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs when someone submits an n8n form (“Provide topic”). Along the way it connects Google Docs, Google Gemini Chat Model and Google Gemini. It also calls api.tavily.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Provide topic”).
- If: checks a condition and branches into true / false
- Tavily (HTTP Request): calls api.tavily.com (POST)
- Tavily (HTTP Request): calls api.tavily.com (POST)
- Websearch (Google Gemini): uses Google Gemini
- WebSearch Summary (Google Gemini): uses Google Gemini
- Reference Script (Edit Fields (Set)): sets 1 field: short_style_ref
- Create Outline (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model
- Reference Script (Edit Fields (Set)): sets 1 field: style_ref
- Create Doc (Google Docs): uses Google Docs
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Gemini + Google Docs templates (72) · Other Google Gemini + Tavily templates (25) · Other Tavily + Google Docs templates (3)
HTTP calls to: api.tavily.com
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 AI Agent (v1.9), AI Agent1 (v1.9): 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).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9), AI Agent1 (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - Google Docs
n8n-nodes-base.googleDocs - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
From the author
🤖 Automated YouTube Script Generator (Shorts & Long-Form) This workflow is a content multiplier. Provide a single video topic via a form, and it automatically researches, outlines, and writes two separate scripts: one for a YouTube Shorts and another for a…