๐ฌ Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research
โก 2,221 views ยท ๐ฌ Content Creation & Video
Description
๐ค 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 Long-form video, saving both directly to Google Docs.
โจ Key Features
- Dual-Format Output: Creates tailored scripts for both Shorts and long-form videos from one idea.
- AI-Powered Writing: Uses Google Gemini for all creative steps, from building a structured outline to writing the final scripts.
- Up-to-Date Research: Integrates Tavily AI to pull fresh, relevant information from the web.
- Fully Automated: An end-to-end process that takes a form submission and delivers final documents to your Google Drive with no manual steps.
โ๏ธ How It Works
After a topic is submitted, the workflow splits into two parallel branches:
- The Shorts Branch: This path is built for speed. It performs a quick web search and immediately uses an AI agent to write a short, punchy script.
- The Long-Form Branch: This path focuses on structure. It conducts a web search, uses an AI agent to first create a detailed outline, and then uses another AI agent to write a comprehensive script based on that outline.
๐ Prerequisites
- An active n8n instance.
- A form to submit your video topic.
- API keys for Tavily AI and Google Gemini.
- Google Account credentials (OAuth2) configured in n8n for Google Docs.
๐ ๏ธ Setup Guide
- On form submission Trigger: Configure your form to accept a field for your video topic (e.g., a field named
topic). - Tavily Nodes: In both
Tavilynodes, select or create your Tavily API credential and paste in your API key. - Google Gemini Chat Model: In the nodes labeled
AI AgentandCreate Outline, select your Google AI credential linked to your Gemini API key. - Google Docs Nodes: For all four Google Docs nodes (
Create Doc,Update Doc, etc.), select your Google OAuth2 credential. - Activate the Workflow: Once all credentials are in place, save and activate the workflow.
๐ How to Use
- Activate the workflow.
- Submit your topic via the connected form.
- Check your Google Drive a few moments later for your the new script!
๐ Nodes Used
HTTP Request, Google Docs, AI Agent, Basic LLM Chain, n8n Form Trigger, Google Gemini Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File