{
  "name": "AI Long Form Article Pipeline",
  "nodes": [
    {
      "parameters": {
        "formId": "NHJSyCVW"
      },
      "type": "n8n-nodes-base.typeformTrigger",
      "typeVersion": 1.1,
      "position": [
        -100,
        0
      ],
      "id": "50c41f7f-3237-4346-b664-f03a58265e04",
      "name": "Typeform Trigger",
      "webhookId": "f3925aab-90e9-44ea-b9cc-95cc9e9027ad"
    },
    {
      "parameters": {
        "keep": "lastItems"
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        560,
        0
      ],
      "id": "12cf88cb-658c-4125-a1f3-358e0b3f1858",
      "name": "Limit"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "GPT-4O"
        },
        "messages": {
          "values": [
            {
              "content": "Use the following JSON brief to write an engaging, comprehensive outline in Markdown format (atx).\nTone of voice: 50% spartan, casual.\n\nAdditionally, in the final outline, include a few descriptive placeholders to indicate where bullet points or numbered lists should be used. For example:\n\n(Insert bullet list of 3–5 key takeaways here)\n(Include a numbered list of 5 practical steps here)\nBe sure these placeholders appear in relevant sections, so that when the outline is later expanded, the lists are clearly incorporated."
            },
            {
              "content": "{\n    \"title\": \"Accessibility in Retail: How to Make Your Store More Accessible\",\n    \"sections\": 7,\n    \"primaryKeyword\": \"accessibility in retail\",\n    \"secondaryKeywords\": [\n        \"accessible e-commerce\",\n        \"how to make your website accessible\"\n    ],\n    \"internalLinks\": [\n        \"https://www.ontario.ca/page/how-make-websites-accessible\"\n    ],\n    \"externalLinks\": [\n        \"https://www.forbes.com/sites/forbesbusinesscouncil/2023/03/20/understanding-the-importance-of-web-accessibility/\"\n    ],\n    \"additionalInstructions\": \"Don't pitch the company at all - make it very informative and provide as much value as you can.\"\n}"
            },
            {
              "content": "# Accessibility in Retail: How to Make Your Store More Accessible\n\nOnline marketplaces have become increasingly popular since the mid-90s when retail juggernauts like Amazon initially burst onto the scene. And while it’s true that nearly everybody buys products in e-commerce stores these days, it’s crucial to understand that not all consumers have the same needs.\n\nOver one billion people have disabilities worldwide, meaning up to 15% of the global population may need assistive technology to use online shopping platforms. Addressing their needs is critical if you want to maximize your reach & customer experience.\n\nSo, how exactly does digital accessibility impact businesses, and what can we (practically) do about it? Read on for answers below.\n\n## Introduction\n- Briefly define what \"accessibility in retail\" means.\n- Highlight the importance of retail accessibility.\n\n## The Significance of Accessibility in Retail\n- Discuss how creating an accessible retail space can broaden market reach.\n- Discuss some benefits of retail accessibility.  \n  *(Insert bullet list of 2–3 major benefits, such as inclusivity, legal compliance, competitive advantage)*\n- Share valuable insights about retail accessibility from [Forbes](https://www.forbes.com/sites/forbesbusinesscouncil/2023/03/20/understanding-the-importance-of-web-accessibility/).\n\n## Exploring Accessible E-commerce: The New Normal in Retail \n- Explain the rise and importance of e-commerce in today's retail landscape.\n- Highlight how e-commerce has opened up more possibilities for accessibility in retail.\n\n## Guidelines to Make E-commerce Stores Accessible\n- Present some of the key accessibility standards for online stores.\n- Offer a brief step-by-step guide on how to make your website accessible.  \n  *(Insert a short numbered list of key steps, e.g., including alt-text, keyboard navigation)*\n- Indicate best practices in creating accessible e-commerce stores, citing resources from [Ontario.ca](https://www.ontario.ca/page/how-make-websites-accessible).\n\n## Physical Store Accessibility: Not to be Overlooked \n- Assert the need for physical store accessibility in addition to online stores.\n- Enumerate practical solutions for enhancing physical store accessibility.  \n  *(Insert concise bullet list with recommended adjustments, e.g., ramps, signs, aisle width)*\n\n## Encouraging Continuous Efforts for Accessibility\n- Inspire readers to continually strive for better accessibility in their retail environments.\n- Reiterate the benefits of accessibility in the retail sector for a more inclusive future.\n\n## Conclusion\n- Summarize the key points and lessons learned about retail accessibility.\n- Encourage readers to implement the suggestions provided.",
              "role": "assistant"
            },
            {
              "content": "={{ $json.toJsonString() }}"
            }
          ]
        },
        "options": {
          "maxTokens": 800,
          "temperature": 0.7
        }
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        1000,
        0
      ],
      "id": "ded93550-4473-451a-a7db-58ce55096dd2",
      "name": "Generate Outline",
      "retryOnFail": true,
      "waitBetweenTries": 5000
    },
    {
      "parameters": {
        "fieldsToSummarize": {
          "values": [
            {
              "aggregation": "concatenate",
              "field": "message.content",
              "separateBy": "\n"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.summarize",
      "typeVersion": 1,
      "position": [
        3520,
        0
      ],
      "id": "d48ded7f-ed12-4ee0-815a-56339d787356",
      "name": "Summarize"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "GPT-4O"
        },
        "messages": {
          "values": [
            {
              "content": "Categorize the following post and add the appropriate tags."
            },
            {
              "content": "# Accessibility in Retail: How to Make Your Store More Accessible\n\nOnline marketplaces have become increasingly popular since the mid-90s when retail juggernauts like Amazon initially burst onto the scene. And while it’s true that nearly everybody buys products in e-commerce stores these days, it’s crucial to understand that not all consumers have the same needs. \n\nOver one billion people have disabilities worldwide, meaning up to 15% of the global population may need assistive technology to use online shopping platforms. Addressing their needs is critical if you want to maximize your reach & customer experience.\n\nSo, how exactly does digital accessibility impact businesses, and what can we (practically) do about it? Read on for answers below.\n\n## Introduction\n\n- Briefly define what \"accessibility in retail\" means \n- Highlight the importance of retail accessibility.\n\n## The Significance of Accessibility in Retail\n\n- Discuss how creating an accessible retail space can broaden market reach \n- Discuss some benefits of retail accessibility. \n- Share valuable insights about retail accessibility from [\"Forbes\"](https://www.forbes.com/sites/forbesbusinesscouncil/2023/03/20/understanding-the-importance-of-web-accessibility/).\n\n## Exploring Accessible E-commerce: The New Normal in Retail \n\n- Explain the rise and importance of e-commerce in today's retail landscape. \n- Highlight how e-commerce has opened up more possibilities for accessibility in retail.\n\n## Guidelines to Make E-commerce Stores Accessible\n\n- Present some of the key accessibility standards for online stores.\n- Offer brief step-by-step guide on how to make your website accessible. \n- Indicate best practices in creating accessible e-commerce stores, citing resources from [\"Ontario.ca\"](https://www.ontario.ca/page/how-make-websites-accessible).\n\n## Physical Store Accessibility: Not to be Overlooked \n\n- Assert the need for physical store accessibility in addition to online stores.\n- Enumerate practical solutions for enhancing physical store accessibility.\n\n## Encouraging Continuous Efforts for Accessibility\n\n- Inspire readers to continually strive for better accessibility in their retail environments.\n- Reiterate the benefits of and the need for accessibility in the retail sector for a more inclusive future.\n\n## Conclusion\n\n- Summarize the key points and lessons learned about retail accessibility.\n- Encourage readers to implement the suggestions provided."
            },
            {
              "content": "{\"category\":\"Retail Accessibility\", \"tags\":[\"e-commerce\", \"digital accessibility\", \"guide\"]}",
              "role": "assistant"
            },
            {
              "content": "={{ $('Generate Outline').item.json.message.content }}"
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        4380,
        0
      ],
      "id": "d22c2af3-af1d-4efe-9e25-03a34e05d0c4",
      "name": "Categorize Blog"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "GPT-4O"
        },
        "messages": {
          "values": [
            {
              "content": "You're a helpful, intelligent writing assistant.",
              "role": "system"
            },
            {
              "content": "=The following is an outline for an award-winning article. Your task is to write one section and one section only: the one marked by a \"<--\". Tone of voice: 50% spartan, casual.\n\n---\n\n{{ $json.section }}"
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        3140,
        0
      ],
      "id": "fccaaf0e-30cd-4ce2-8116-4e1fd304a272",
      "name": "Generate Section"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Content Generator Brief"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Submitted At": "={{ $now.format('yyyy-MM-dd HH:mm') }}",
            "Additional instructions or specific requirements for the content.": "={{ $json[\"Additional instructions or specific requirements\"] }}",
            "What is the title of the content?": "={{ $json[\"What is the title of the content?\"] }}",
            "What is the primary keyword for the content?": "={{ $json[\"What is the primary keyword for the content?\"] }}",
            "What are the secondary keywords for the content?": "={{ $json[\"What are the secondary keywords for the content?\"] }}",
            "Are there any internal links that should be included in the content?": "={{ $json[\"Are there any internal links that should be included?\"] }}",
            "Are there any external links that should be included in the content?": "={{ $json[\"Are there any external links that should be included?\"] }}",
            "How many sections should the content have?": "={{ $json[\"How many sections should the content have?\"] }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "What is the title of the content?",
              "displayName": "What is the title of the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "How many sections should the content have?",
              "displayName": "How many sections should the content have?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "What is the primary keyword for the content?",
              "displayName": "What is the primary keyword for the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "What are the secondary keywords for the content?",
              "displayName": "What are the secondary keywords for the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Are there any internal links that should be included in the content?",
              "displayName": "Are there any internal links that should be included in the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Are there any external links that should be included in the content?",
              "displayName": "Are there any external links that should be included in the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Additional instructions or specific requirements for the content.",
              "displayName": "Additional instructions or specific requirements for the content.",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Submitted At",
              "displayName": "Submitted At",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {
          "useAppend": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        120,
        0
      ],
      "id": "752e4de3-9dd7-4c59-8677-410c644ac79e",
      "name": "Add to Sheet"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b0d3b9e2-176d-4f8b-ac84-178f2db1ae19",
              "name": "title",
              "value": "={{ $json[\"What is the title of the content?\"] }}",
              "type": "string"
            },
            {
              "id": "2de195b0-2b4e-4b5b-baf6-f997f2d2f47f",
              "name": "sections",
              "value": "={{ $json[\"How many sections should the content have?\"] }}",
              "type": "string"
            },
            {
              "id": "0a005693-9544-47d6-9324-5a365442f2a9",
              "name": "primaryKeyword",
              "value": "={{ $json[\"What is the primary keyword for the content?\"] }}",
              "type": "string"
            },
            {
              "id": "52d64a31-8ef1-4211-a22c-db42567efbe7",
              "name": "secondaryKeywords",
              "value": "={{ $json[\"What are the secondary keywords for the content?\"].split(\",\").map(item => item.trim()) }}",
              "type": "array"
            },
            {
              "id": "50e0ec72-042d-42c5-817a-c83caa67db59",
              "name": "internalLinks",
              "value": "={{ $json[\"Are there any internal links that should be included in the content?\"].split(\",\").map(item => item.trim()) }}",
              "type": "array"
            },
            {
              "id": "abf7f833-8fa7-4a41-8c77-89a9a11fdbc0",
              "name": "externalLinks",
              "value": "={{ $json[\"Are there any external links that should be included in the content?\"].split(\",\").map(item => item.trim()) }}",
              "type": "array"
            },
            {
              "id": "14bd83d2-60cb-46f5-8ad0-c8819906f1f5",
              "name": "additionalInstructions",
              "value": "={{ $json[\"Additional instructions or specific requirements for the content.\"] }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        780,
        0
      ],
      "id": "5b0757be-2fc5-4ddb-b722-8785ff455d18",
      "name": "Set Variables"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Content Generator Brief"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        340,
        0
      ],
      "id": "2b608659-da3b-4da5-9d65-72d732be6ce2",
      "name": "Get From Sheet"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Content Generator Brief"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Limit').item.json.row_number }}",
            "Folder URL": "=https://drive.google.com/drive/folders/{{ $('Create Folder').item.json.id }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "What is the title of the content?",
              "displayName": "What is the title of the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "How many sections should the content have?",
              "displayName": "How many sections should the content have?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "What is the primary keyword for the content?",
              "displayName": "What is the primary keyword for the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "What are the secondary keywords for the content?",
              "displayName": "What are the secondary keywords for the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Are there any internal links that should be included in the content?",
              "displayName": "Are there any internal links that should be included in the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Are there any external links that should be included in the content?",
              "displayName": "Are there any external links that should be included in the content?",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Additional instructions or specific requirements for the content.",
              "displayName": "Additional instructions or specific requirements for the content.",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Submitted At",
              "displayName": "Submitted At",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Folder URL",
              "displayName": "Folder URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        4760,
        0
      ],
      "id": "25a95288-a6ae-49d1-97c7-0b047d6e647e",
      "name": "Add Folder URL"
    },
    {
      "parameters": {
        "resource": "folder",
        "name": "={{ $('Limit').item.json[\"What is the title of the content?\"] }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_DRIVE_FOLDER_ID"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1380,
        0
      ],
      "id": "9143ef0b-4f13-43a8-89f3-48183ff7dedb",
      "name": "Create Folder"
    },
    {
      "parameters": {
        "resource": "folder",
        "operation": "share",
        "folderNoRootId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "reader",
            "type": "anyone"
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1600,
        0
      ],
      "id": "70700811-e328-44f8-a65c-8b792aff7cba",
      "name": "Make Folder Public"
    },
    {
      "parameters": {
        "folderId": "={{ $('Create Folder').item.json.id }}",
        "title": "=O: {{ $('Limit').item.json[\"What is the title of the content?\"] }}"
      },
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        1820,
        0
      ],
      "id": "714b8143-0f69-4afb-9423-f6301670e3b0",
      "name": "Create Outline"
    },
    {
      "parameters": {
        "operation": "update",
        "documentURL": "={{ $json.id }}",
        "actionsUi": {
          "actionFields": [
            {
              "action": "insert",
              "text": "={{ $('Generate Outline').item.json.message.content }}"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        2040,
        0
      ],
      "id": "51595ece-4c08-400b-898f-e369501f4a7f",
      "name": "Add Outline"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "733565ed-a0d3-4d2b-a371-d2f8b97c5956",
              "name": "lines",
              "value": "={{ $('Generate Outline').item.json.message.content.split(\"\\n\") }}",
              "type": "array"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2260,
        0
      ],
      "id": "5eb68829-3d80-4bab-aadf-ce4576a92dbc",
      "name": "Define Lines"
    },
    {
      "parameters": {
        "fieldToSplitOut": "lines",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        2480,
        0
      ],
      "id": "aaf6221a-1bb3-4606-9efc-41544235fc6a",
      "name": "Split Lines"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "aecc322b-170a-49e6-afb9-d591d912ff5e",
              "leftValue": "={{ $json.lines }}",
              "rightValue": "##",
              "operator": {
                "type": "string",
                "operation": "startsWith"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        2700,
        0
      ],
      "id": "b1233aa8-c68e-4d85-8dc8-8cf107e5aa71",
      "name": "Filter Subheadings"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "18387b1e-c117-4ad9-b59f-b7678e58ac5c",
              "name": "section",
              "value": "={{ $('Generate Outline').item.json.message.content.replace($json.lines, `${$json.lines}  <--`) }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2920,
        0
      ],
      "id": "9968d87a-fd1f-46f7-a4a7-900749357b90",
      "name": "Set Working Section"
    },
    {
      "parameters": {
        "folderId": "={{ $('Create Folder').item.json.id }}",
        "title": "=A: {{ $('Limit').item.json[\"What is the title of the content?\"] }}"
      },
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        3740,
        0
      ],
      "id": "1a7a56e8-be13-4a04-952e-e15e135d5a19",
      "name": "Create Article"
    },
    {
      "parameters": {
        "sendTo": "={{ $('Typeform Trigger').item.json['What\\'s your email?'] }}",
        "subject": "Here's your article, Chief",
        "emailType": "text",
        "message": "=Fresh from the article oven.\n\nCheck it out here: https://docs.google.com/document/d/{{ $('Create Article').item.json.id }}",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        4980,
        0
      ],
      "id": "9856ad3e-734a-4af8-b827-d6130fa7a50e",
      "name": "Gmail",
      "webhookId": "87ff19fc-7bb4-4841-8c07-85c12e64456a"
    },
    {
      "parameters": {
        "mode": "markdownToHtml",
        "markdown": "=# {{ $('Limit').item.json[\"What is the title of the content?\"] }}\n\n{{ $('Summarize').item.json.concatenated_message_content.replaceAll(\"##\", \"\\n##\") }}",
        "options": {}
      },
      "type": "n8n-nodes-base.markdown",
      "typeVersion": 1,
      "position": [
        3940,
        0
      ],
      "id": "afa93914-9a47-4e80-964c-efef57a13553",
      "name": "Blog to HTML"
    },
    {
      "parameters": {
        "method": "PATCH",
        "url": "=https://www.googleapis.com/upload/drive/v3/files/{{ $('Create Article').item.json.id }}",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDocsOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "uploadType",
              "value": "media"
            },
            {
              "name": "supportsAllDrives",
              "value": "true"
            }
          ]
        },
        "sendBody": true,
        "contentType": "raw",
        "body": "={{ $json.data }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4200,
        0
      ],
      "id": "e410163a-238a-412a-bf12-c76e9d1c8aa9",
      "name": "Add Article to Doc"
    }
  ],
  "connections": {
    "Typeform Trigger": {
      "main": [
        [
          {
            "node": "Add to Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Outline": {
      "main": [
        [
          {
            "node": "Create Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarize": {
      "main": [
        [
          {
            "node": "Create Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Section": {
      "main": [
        [
          {
            "node": "Summarize",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to Sheet": {
      "main": [
        [
          {
            "node": "Get From Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Variables": {
      "main": [
        [
          {
            "node": "Generate Outline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get From Sheet": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Categorize Blog": {
      "main": [
        [
          {
            "node": "Add Folder URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Folder": {
      "main": [
        [
          {
            "node": "Make Folder Public",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make Folder Public": {
      "main": [
        [
          {
            "node": "Create Outline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Outline": {
      "main": [
        [
          {
            "node": "Add Outline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Outline": {
      "main": [
        [
          {
            "node": "Define Lines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Lines": {
      "main": [
        [
          {
            "node": "Split Lines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Lines": {
      "main": [
        [
          {
            "node": "Filter Subheadings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Subheadings": {
      "main": [
        [
          {
            "node": "Set Working Section",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Working Section": {
      "main": [
        [
          {
            "node": "Generate Section",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Article": {
      "main": [
        [
          {
            "node": "Blog to HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Folder URL": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog to HTML": {
      "main": [
        [
          {
            "node": "Add Article to Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Article to Doc": {
      "main": [
        [
          {
            "node": "Categorize Blog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false
}
