Templates / Create long-form documents from simple titles with GPT-5 and Google Docs

Create long-form documents from simple titles with GPT-5 and Google Docs

Ready for 3.0

by Nghia Nguyen ✓ · 447 views · created 2025-11-02 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs when someone submits an n8n form (“Generate Long Content”). Along the way it connects Google Docs and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Generate Long Content”).

  1. CreateDocument (Google Docs): uses Google Docs
  2. Form (n8n Form): shows the next form page
  3. ContentPlanner (AI Agent): runs an AI agent, with model: gpt-5-mini; output parser: Structured Output Parser
  4. GetSections (Edit Fields (Set)): sets 2 fields: sections, documentId
  5. Split Out: splits a list into separate items
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. ContentWriter (AI Agent): runs an AI agent, with model: gpt-; memory: Simple Memory
  8. UpdateDocument (Google Docs): update

Services it uses

Google DocsOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

How It Works 1. Generate the document structure based on the provided title or short description. 2. Use prompt chaining to create detailed content for each section while maintaining consistent context. 3. Append the final content to a Google Document for…

Excerpt from Nghia Nguyen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.