{
  "name": "📄🌐PDF2Blog - create blog post on Ghost CRM from PDF document",
  "nodes": [
    {
      "id": "58a4923b-3e8f-4abd-bebc-6488f8b04101",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        1340
      ],
      "parameters": {
        "width": 461,
        "height": 359.27075107113785,
        "content": "## Upload PDF and Extract Text"
      }
    },
    {
      "id": "eb0ec98a-9c9d-4203-9586-9e81e23e7232",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1087.027580347215,
        1340
      ],
      "parameters": {
        "width": 508.8267597424673,
        "height": 532.0416571599118,
        "content": "## Create Blog Post"
      }
    },
    {
      "id": "b2d3cb70-4335-43a2-80db-889559ebf020",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2020,
        1340
      ],
      "parameters": {
        "width": 370.4721755771028,
        "height": 352.3823858238478,
        "content": "## Publish Draft Blog Post to Ghost"
      }
    },
    {
      "id": "766daeb8-23e8-4ee9-acee-ea2a787bbfda",
      "name": "Upload PDF",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        660,
        1480
      ]
    },
    {
      "id": "055a734e-7128-487a-b109-a64214010bb2",
      "name": "Extract Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        860,
        1480
      ]
    },
    {
      "id": "44256745-276a-4c88-80b6-d12a568d07e9",
      "name": "Post to Ghost",
      "type": "n8n-nodes-base.ghost",
      "position": [
        2140,
        1480
      ]
    },
    {
      "id": "9796d4eb-e9d6-43bb-80c0-c527f3dc8843",
      "name": "gpt-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1180,
        1680
      ]
    },
    {
      "id": "719e7578-df85-441c-8d2f-cb7d3f7bb92f",
      "name": "Structured Output - JSON",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1400,
        1680
      ]
    },
    {
      "id": "5f16e695-3585-468f-8fcb-794f5e3b56d4",
      "name": "Separate Title & Content",
      "type": "n8n-nodes-base.code",
      "position": [
        1660,
        1480
      ]
    },
    {
      "id": "e4d41cf6-575d-469a-a7c5-fba0fc1cc568",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1840,
        1480
      ]
    },
    {
      "id": "b6b64f53-b689-440c-bc2e-478bccbfa5f5",
      "name": "Do Nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2020,
        1740
      ]
    },
    {
      "id": "20b12b54-d329-4c70-9fa2-0dc598477a66",
      "name": "Create Structured Blog Post",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1200,
        1480
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Post to Ghost",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Do Nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload PDF": {
      "main": [
        [
          {
            "node": "Extract Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Create Structured Blog Post",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text": {
      "main": [
        [
          {
            "node": "Create Structured Blog Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Separate Title & Content": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - JSON": {
      "ai_outputParser": [
        [
          {
            "node": "Create Structured Blog Post",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Create Structured Blog Post": {
      "main": [
        [
          {
            "node": "Separate Title & Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}