Skip to main content

Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research

Workflow preview

Workflow preview
100%
Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.formtrigger, n8n-nodes-base.googledocs, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.httprequest, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anshul Chauhan.

Original n8n.io source

1.1 Workflow description

Title
Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research
Workflow name
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:

  1. 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.
  2. 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

  1. On form submission Trigger: Configure your form to accept a field for your video topic (e.g., a field named topic).
  2. Tavily Nodes: In both Tavily nodes, select or create your Tavily API credential and paste in your API key.
  3. Google Gemini Chat Model: In the nodes labeled AI Agent and Create Outline, select your Google AI credential linked to your Gemini API key.
  4. Google Docs Nodes: For all four Google Docs nodes (Create Doc, Update Doc, etc.), select your Google OAuth2 credential.
  5. Activate the Workflow: Once all credentials are in place, save and activate the workflow.

🚀 How to Use

  1. Activate the workflow.
  2. Submit your topic via the connected form.
  3. Check your Google Drive a few moments later for your the new script!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 2 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 3 - Create Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 4 - Update Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 5 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Create Outline

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 7 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 8 - Create Doc1

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 9 - Update Doc1

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 10 - Tavily

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Tavily1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Reference Script

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Reference Script1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 15 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 16 - WebSearch Summary

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 17 - Websearch

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research
Complexity advanced
Nodes 22
Categories Content Creation, Multimodal AI
Author Anshul Chauhan
Published 07 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9342/9342.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate YouTube scripts for shorts & long-form with Gemini AI and Tavily Research do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.