Generate YouTube Scripts for Shorts & Long-Form with Gemini AI and Tavily Research

🤖 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 Tavily nodes, select or create your Tavily API credential and paste in your API key. Google Gemini Chat Model: In the nodes labeled AI Agent and Create 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!

0
Downloads
0
Views
8.1
Quality Score
intermediate
Complexity
Author:Anshul Chauhan(View Original →)
Created:10/9/2025
Updated:12/18/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments