← All N8N workflows
AI & researchAggregateCodeConvert To FileForm TriggerGoogle Drive

Creates a folder in Google Drive to store the generated content and outline

Configured with Aggregate, Convert To File, Form Trigger, Google Drive, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Files / mediacreate_folderGoogle DriveTransforminput_briefEdit FieldsTransformnew_linesEdit FieldsTransforminput_sectionsEdit FieldsTransformsection_textEdit FieldsTransformMergeMergeTransformSortSortTransformAggregateAggregateTransformfinal_articleEdit FieldsTransformset_introductionEdit FieldsTransformMerge1MergeTriggerreceive_topicForm TriggerData storeadd_rowGoogle SheetsTransformtopic_variablesEdit FieldsTransformmarkdown_to_fileConvert To FileTransformsplit_outSplit OutRoutingsection_starts_with_#IfRouting25_percent_chanceIfTransformset_section_contentEdit FieldsCodeadd_2_new_linesCodeTransformfinal_article_fileConvert To FileFiles / mediaupload_fiinalArticleGoogle DriveData storeupdate_article_linkGoogle SheetsFiles / mediaupload_outline_fileGoogle DriveAI & modelssection_paragraphsOpen AiAI & modelschange_section_formatOpen AiAI & modelscreate_outlineOpen Ai

Node categories in this workflow

  • Files / media
  • Transform
  • Trigger
  • Data store
  • Routing
  • Code
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
create_folderFiles / mediaGoogle Drivefolder
input_briefTransformEdit FieldsSee node parameters
new_linesTransformEdit FieldsSee node parameters
input_sectionsTransformEdit FieldsSee node parameters
section_textTransformEdit FieldsSee node parameters
MergeTransformMergeSee node parameters
SortTransformSortSee node parameters
AggregateTransformAggregateSee node parameters
final_articleTransformEdit FieldsSee node parameters
set_introductionTransformEdit FieldsSee node parameters
Merge1TransformMergeSee node parameters
receive_topicTriggerForm TriggerSee node parameters
add_rowData storeGoogle Sheetsappend
topic_variablesTransformEdit FieldsSee node parameters
markdown_to_fileTransformConvert To FiletoText
split_outTransformSplit OutSee node parameters
section_starts_with_#RoutingIfSee node parameters
25_percent_chanceRoutingIfSee node parameters
set_section_contentTransformEdit FieldsSee node parameters
add_2_new_linesCodeCodeSee node parameters
final_article_fileTransformConvert To FiletoText
upload_fiinalArticleFiles / mediaGoogle DriveSee node parameters
update_article_linkData storeGoogle Sheetsupdate
upload_outline_fileFiles / mediaGoogle DriveSee node parameters
section_paragraphsAI & modelsOpen AiSee node parameters
change_section_formatAI & modelsOpen AiSee node parameters
create_outlineAI & modelsOpen AiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api
  • googleSheetsOAuth2Api
  • openAiApi

Workflow notes

Overview

Overview

This workflow automates the generation of high-quality content using AI and integrates with tools like Google Drive and Google Sheets for content management and organization.

Key Features:

  • Form-Based Content Input: Collects user inputs via a form, including title, word count, keywords, and additional instructions.

  • AI-Generated Content Outline: Creates an outline using AI based on user inputs.

  • Detailed Section Processing: Each section of the content is refined individually.

  • Content Aggregation: Combines all sections into a cohesive article.

  • Document Management:

    - Saves generated content and outlines to Google Drive.
    - Updates links to generated content in Google Sheets.
    

Prerequisites:

  • Google Drive and Google Sheets API: Ensure the respective OAuth2 credentials are configured in n8n.

  • OpenAI API Key: Required for AI-powered content generation.

Sticky Note1
  • Captures user inputs like title, word count, keywords, and additional instructions for content generation. This is the starting point of the workflow

  • Parses form inputs into variables for easy access and consistent use in the workflow

Next Steps: Automate Social Media Posting

Next Steps: Automate Social Media Posting

  • Your content creation process is now complete! You can take automation to the next level by integrating this workflow with social media platforms such as Twitter, LinkedIn, or Facebook.

    • Use the generated article to create tailored posts for each platform.
    • Add nodes for social media integrations (e.g., Twitter, Facebook, or LinkedIn API).
    • Schedule posts using a timestamp or trigger them based on specific events.

This enhancement allows you to seamlessly distribute your content across multiple channels, ensuring a wider reach and saving even more time!

Creates a folder in Google Drive to store the generated content and outline

Creates a folder in Google Drive to store the generated content and outline

Purpose and structure

This folder contains the Creates a folder in Google Drive to store the generated content and outline workflow. Its executable nodes use aggregate, code, convertToFile, formTrigger, googleDrive, googleSheets, if, merge, openAi, set, sort, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

receive_topic

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0625_Splitout_Code_Create_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Creates a folder in Google Drive to store the generated content and outline
  • Sends user inputs to an AI model to generate a detailed content outline in Markdown format."
  • Uploads the AI-generated outline to the Google Drive folder created earlier.
  • Breaks the AI-generated outline into manageable sections. Each section will be individually processed to ensure clarity, structure, and relevance.
  • Refines each section using AI. Adds formatting, adjusts tone, and enhances readability. Ensures the content meets high-quality standards before merging into a full article.
  • Aligns all sections in the correct order. Prepares the refined content for aggregation into a single, cohesive article
  • Joins all ordered sections into a unified article. Ensures the flow and structure of the final content remain consistent and logical
  • Converts the aggregated article into a downloadable text file. Uploads it to the Google Drive folder created earlier, ready for review and sharing.
  • Records the generated outline and article links in a Google Sheets document. This ensures easy access and tracking of the generated content for future use.

More in AI & research