{
  "name": "Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1",
  "nodes": [
    {
      "id": "10d3c8a9-737a-4d8a-a669-c81e5e8cf731",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "8cf02caa-0858-4550-840b-2901aee74fd3",
      "name": "Search files and folders",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "965ff1cd-6ea3-4767-be50-424fb86791aa",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        416,
        0
      ]
    },
    {
      "id": "3ff1d3c6-200f-40e8-b63a-78e0a07b73be",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        624,
        16
      ]
    },
    {
      "id": "38d2fd78-64ff-4ee4-a518-4e1b485424d6",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        832,
        16
      ]
    },
    {
      "id": "083107ff-776b-4bfe-beef-04947b107b73",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1040,
        16
      ]
    },
    {
      "id": "fe417275-a041-45b8-95e4-242cbc1016f8",
      "name": "Create file from text",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1392,
        16
      ]
    },
    {
      "id": "5325fd1c-1cb8-4113-b5c8-1bd165cebe92",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -1008
      ],
      "parameters": {
        "width": 1616,
        "height": 736,
        "content": "# Automate blog HTML creation from PDF using Google Drive and OpenAI\nThis workflow converts PDF files stored in Google Drive into SEO-optimized blog HTML using OpenAI.\nIt retrieves PDFs from a selecte"
      }
    },
    {
      "id": "1cd90d88-a16b-4b4e-869b-6a208cab3ff2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -176
      ],
      "parameters": {
        "width": 720,
        "height": null,
        "content": "PDF retrieval and sequential processing\n\n• Search files in source folder\n• Loop through each file\n• Download and extract text"
      }
    },
    {
      "id": "470c0c2f-65f1-4c88-af97-77f58bd513f2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        -176
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "HTML file creation\n\n• Converts AI response to file\n• Saves .html file to destination folder\n• Keeps original filename structure"
      }
    }
  ],
  "connections": {
    "Download file": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Create file from text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create file from text": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search files and folders": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Search files and folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}