Create long-form documents from simple titles with GPT-5 and Google Docs
Ready for 3.0Ready 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.
Nodes used (10)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Edit Fields (Set)
n8n-nodes-base.set - Google Docs
n8n-nodes-base.googleDocs - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - n8n Form
n8n-nodes-base.form
What it does
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 easy access and review. How to Use 1. Open the submission form. 2. Enter your title and word count. 3. Click Submit to generate your Google Document link. 4. Wait a few minutes — completed document will be ready at that link. Requirements - OpenAI account - Google Docs account Customization Options - Adjust the document length by changing the word count input. - Modify the prompt logic to control writing style or tone. - Update the section structure to fit different document types (e.g., blog, report, proposal). - Replace the output destination if you prefer another storage option instead of Google Docs.