Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that writes a YouTube script from a topic. Tavily searches the web and OpenAI summarizes the pages, with an outline step for long videos. An agent then writes a Short or a long script into a new Google Doc.
YouTube short and long script writer with web research is an n8n workflow in the Marketing & SEO category, listed by Mindket. It is free. This is version 2, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Topic form
It starts when someone sends the Provide topic form with:
A script for a Short or a long video, saved as a new Google Doc
What you need before you start.
Language models
Runs chatgpt-4o-latest for the summaries, the outline and the long script, and gpt-4o-mini for the Short script.
NeedsOpenAI API key
Web search
Searches the topic and returns the text of the top pages, three for Shorts and ten for long videos.
NeedsTavily API key, in an HTTP Header Auth credential
Documents
Creates a document in your folder, titled with the topic, and inserts the script.
NeedsGoogle Docs OAuth2 credential, and a Drive folder ID
Checked by Mindket on 13 Nov 2026
This n8n workflow writes a YouTube script from a topic. A form takes the topic and a choice between a Short and a long video. Tavily searches the web, OpenAI condenses what the pages say, and an agent writes the script. A Short gets a quick pass: three pages, one summary, one script. A long video gets ten pages, a summary of about 1,000 words and an outline before the script. Either way the script lands in a new Google Doc.
Creators who script their own videos, and the writers and agencies who script for others. It gives you a researched first draft to edit. Skip it if a script must be right on every fact, since its research is only the top pages one search returns.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Creators and solo channels | YouTubers who write their own scripts | Send each topic through the form and edit the draft that appears in Drive | A creator sends a topic on Monday and edits the long script that evening. |
| Agencies and freelancers | Scriptwriters for client channels | Keep one set of sample scripts per client and swap them before each run | A freelancer pastes a client’s past scripts into the style nodes so drafts match the channel. |
| Tech and product reviews | Channels that make list videos | Ask for a long script on a roundup and let the outline set the order | A review channel asks for a roundup, and each tool gets its own section. |
| Education | Course makers and tutors | Turn a how-to topic into a step-by-step script with demonstration cues | A tutor asks for a how-to script, and its steps follow the outline’s order. |
| Short-form video | Teams that post Shorts | Pick Short video for fast scripts with a hook and short lines | A social team gets a Short script for each trending topic. |
Any n8n that can reach Tavily, OpenAI and Google will run it. The scripts end up in a Drive folder, where a team can comment on them.
Get it saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Its author puts setup at about 13 minutes. Mindket replaced the two sets of sample scripts: in the original copy, each node held about 33,000 characters of its author’s own channel scripts.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key, for four AI nodes |
| Tavily | An API key, held in an HTTP Header Auth credential |
| An account that can create documents, for a Google Docs OAuth2 credential, and the ID of a Drive folder | |
| Your own scripts | A few finished scripts from your channel, short and long, to set the style |
workflow.json.Authorization and the value Bearer, a space and your Tavily key. Select it in Tavily and Tavily1.<YOUR_TAVILY_API_KEY> in the Authorization header too, so both agree. The brackets go as well.gpt-4o-mini, gpt-4o-mini1, WebSearch Summary and WebSearch Summary (Short).Create Doc, Update Doc, Create Doc1 and Update Doc1.Create Doc and Create Doc1, replace YOUR_FOLDER_ID with your folder’s ID, the part of its address after /folders/.Reference Script, replace the placeholder with one or two of your Shorts scripts. In Reference Script1, put a long script.Open the form from On form submission, type the topic in Provide topic and choose Short video or Long video. Both fields are required. The form confirms at once. The research and writing go on behind it, and the document shows up in your folder when the last node finishes.
| Choice | Research | Output |
|---|---|---|
| Short video | Tavily: basic depth, 3 results. One summary, then AI Agent writes the script | A document named after the topic with _Shorts added |
| Long video | Tavily1: advanced depth, 10 results. A summary of about 1,000 words, an outline, then AI Agent1 writes a script of 2,500 to 3,000 words | A document named after the topic |
| To change | Where |
|---|---|
| Style | The text in Reference Script and Reference Script1 |
| How much is read | max_results and search_depth in the jsonBody of Tavily and Tavily1 |
| Script length and structure | The text of AI Agent1 for long scripts and the system message of AI Agent for Shorts |
| Summary and outline | The messages in WebSearch Summary, WebSearch Summary (Short) and Create Outline |
| Document folder | folderId in Create Doc and Create Doc1 |
You type best free video editors for beginners and choose Long video. Tavily returns ten pages, OpenAI condenses them, and the outline lists each editor with its sub-points. The script follows that order and opens with a short hook. A Doc with the topic as its title appears in your folder. Choosing Short video instead gives a shorter script in a Doc titled best free video editors for beginners_Shorts.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This file has 19, but two are sticky notes that label the Short and long stretches. A credential is a key n8n stores for you and hands to the node you select it in. The style samples matter. The agent copies their tone and pacing.
For experts. Two OpenAI models share the work across four nodes, and the labels on the model nodes do not match what they run.
| Step | Model | What to know |
|---|---|---|
WebSearch Summary (Short) and WebSearch Summary | chatgpt-4o-latest | OpenAI’s moving alias. The long summary is told to write short sentences at a grade 6 to 8 reading level |
Create Outline and AI Agent1, through the node gpt-4o-mini | chatgpt-4o-latest | The node’s label says mini, its model field says otherwise |
AI Agent, through the node gpt-4o-mini1 | gpt-4o-mini | The Short script, as plain text with a blank line between beats |
The prompts expect a listicle, a how-to or an experiment, but the form sends only Short or Long. The agent has to work the type out from the topic and the outline.
Every run searches and calls the model several times, and the long path costs most.
An n8n workflow. Send a topic and a choice of Short or long video through its form. It researches the topic on the web,
writes a script and saves it as a new Google Doc.
workflow.json: the workflow as n8n exports it, 19 nodes. Two of them are sticky notes that label the Short and longReference Script nodes held about 33,000 characters of its author'sREADME.md: these notes.workflow.json.Authorization and the value Bearer, a space and your TavilyTavily and Tavily1.Bearer <YOUR_TAVILY_API_KEY>. Replace thegpt-4o-mini, gpt-4o-mini1, WebSearch Summary andWebSearch Summary (Short).Create Doc, Update Doc, Create Doc1 and Update Doc1.Create Doc and Create Doc1, replace YOUR_FOLDER_ID with the ID of your Drive folder: the part of its address/folders/.Reference Script and replace its placeholder with one or two of your Shorts scripts. Do the same inReference Script1 with a long script.| Choice | Research | Document |
|---|---|---|
| Short video | Tavily: basic depth, 3 results, one summary, then AI Agent writes the script | named after the topic, with _Shorts added |
| Long video | Tavily1: advanced depth, 10 results, a summary of about 1,000 words, an outline from Create Outline, then AI Agent1 writes a script of 2,500 to 3,000 words | named after the topic |
Reference Script and Reference Script1. The agents copy its tone, pacing and layout.max_results and search_depth in the jsonBody of the two Tavily nodes.AI Agent1, and the system message of AI Agent for Shorts.WebSearch Summary (Short), WebSearch Summary and Create Outline.gpt-4o-mini runs chatgpt-4o-latest, for the outline and thegpt-4o-mini1 runs gpt-4o-mini, for the Short script. Both summary nodes run chatgpt-4o-latest. OpenAImax_results in Tavily1 ifREADME.md 4 KB workflow.json 20 KB
Updated by Mindket to the current version of this kit.
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
nerijs · Kit
A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…
LiconStudio · Kit
Keeps characters, clothing, objects and backgrounds consistent in generated video by feeding the model up to five reference images. A LoRA for LTX-2.5 in Comfy…
nhathoangfoto · Kit
A LoRA for FLUX.2 Klein 9B that puts a character into the pose shown by a mannequin reference while keeping the character's face and style. For artists and des…