{
  "name": "Scrape blog articles into AI-generated LinkedIn posts with GPT-4o & human review",
  "nodes": [
    {
      "id": "2cda8e96-8faf-4a48-8758-0798b7d5214d",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -688,
        -48
      ]
    },
    {
      "id": "6a713237-fa9f-43b8-a141-7214fc0967d0",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        0,
        -48
      ]
    },
    {
      "id": "4e96a2f8-8e0e-4796-a95c-b203a24a7935",
      "name": "Fetch feed item HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        -272,
        -48
      ]
    },
    {
      "id": "4f8730da-4796-43d4-b2db-742cf59de1a1",
      "name": "Fetch n8n blog feed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        -48
      ]
    },
    {
      "id": "308446a4-b9eb-4fee-b722-bb1e5830def5",
      "name": "Extract Title,Link+Tag",
      "type": "n8n-nodes-base.html",
      "position": [
        208,
        -48
      ]
    },
    {
      "id": "ae3ffdda-fc62-47c0-95e7-d582d0689ca0",
      "name": "Fetch Article HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        -48
      ]
    },
    {
      "id": "21cf0d92-ea1e-41d7-9a25-87cd54f30e6e",
      "name": "Extract publishing datetime",
      "type": "n8n-nodes-base.html",
      "position": [
        832,
        -48
      ]
    },
    {
      "id": "2c42b3fc-dcd8-4a9d-ad87-569bfe9a442f",
      "name": "Post from last 24hrs?",
      "type": "n8n-nodes-base.if",
      "position": [
        1040,
        -48
      ]
    },
    {
      "id": "a5ce91f5-f19f-4b18-bfc9-3d5208b61234",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1536,
        96
      ]
    },
    {
      "id": "8d77d4d4-3f70-43fb-9b29-5e44a05b32f1",
      "name": "Summarize Article",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1472,
        -48
      ]
    },
    {
      "id": "6748104e-d2e5-433d-92a5-8fa4655e2130",
      "name": "Draft LinkedIn Post",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -128,
        576
      ]
    },
    {
      "id": "92674731-aaba-4b22-bc40-d92f1e14ef49",
      "name": "Article link",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        -48
      ]
    },
    {
      "id": "ad0e92d0-3b01-4868-af5c-4934f35ee2e5",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1712,
        976
      ]
    },
    {
      "id": "1cff8341-9cde-4230-9741-c245996bdd58",
      "name": "Set Initial Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        -336,
        576
      ]
    },
    {
      "id": "d3378b04-c420-4b8b-a858-ee5dc24efc9c",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -96,
        736
      ]
    },
    {
      "id": "9919b3b0-fb0b-4127-81c5-9ae5b016ffb7",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -704,
        960
      ]
    },
    {
      "id": "ba163d4f-6ce9-4406-b724-b91c325056aa",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        464,
        560
      ]
    },
    {
      "id": "81bbc886-1298-4f59-bbcd-63ce4fb79e4c",
      "name": "Retry",
      "type": "n8n-nodes-base.set",
      "position": [
        608,
        816
      ]
    },
    {
      "id": "f7b67b9c-0899-4861-b6fb-8c12f474aeb7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -192
      ],
      "parameters": {
        "width": 256,
        "height": 128,
        "content": "### ToDo\nChange to `<=24`\nSet to `480` only for testing so you see posts"
      }
    },
    {
      "id": "e5ce456f-045a-4431-8f13-75b6fc5b2562",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -256
      ],
      "parameters": {
        "width": 640,
        "height": 464,
        "content": "## Fetch n8n blog feed\nReads the n8n blog page every day and extracts the HTML of the article items"
      }
    },
    {
      "id": "a807957f-a767-4997-8212-6a0f114a3c96",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        -256
      ],
      "parameters": {
        "width": 1824,
        "height": 464,
        "content": "## Fetch each article\nSplit out the article list into multiple items. Extracts the title, link and tags from an article's HTML snippet.\nAlso check if the publishing time is within the last 24 hours so"
      }
    },
    {
      "id": "0e4293a5-5d0d-430d-a263-0550911f84e6",
      "name": "Fetch Article (LLM-friendly)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1296,
        -48
      ]
    },
    {
      "id": "296b4ffa-1cce-4c37-bc6e-d5ebf6e23cff",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        336
      ],
      "parameters": {
        "width": 288,
        "height": 880,
        "content": "## Loop over items\nIn case there are multiple new articles picked up, we need to process them one-by-one in a loop since we can always only wait for a single human review at a time ([Read about altern"
      }
    },
    {
      "id": "04e39ab4-deee-42ce-b276-ee6b51a79940",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        336
      ],
      "parameters": {
        "width": 1200,
        "height": 880,
        "content": "## Create LinkedIn Post with a Human in the Loop\nWe let the LLM draft a post based on the article and send it to **gotoHuman** for human review together with all relevant context.\nIn gotoHuman, the re"
      }
    },
    {
      "id": "2836897f-3121-43d0-a0a3-17dfcff72dd0",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        768
      ],
      "parameters": {
        "width": 288,
        "height": 448,
        "content": "## Publish approved post\nAfter human approval, submit to LinkedIn"
      }
    },
    {
      "id": "6690f132-c386-4086-bc11-766be70548e5",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        480
      ],
      "parameters": {
        "width": 256,
        "height": 288,
        "content": "![Source example](https://cdn.prod.website-files.com/6605a2979ff17b2cd1939cd4/6877ff9cd93f480ff6eb4def_677c04b5cd6a77eb434526bf9c0eaaca_gotoHuman%20full%20logo.svg)"
      }
    },
    {
      "id": "bf63d446-2691-4b0e-bfb6-3550169e925d",
      "name": "Human approval",
      "type": "@gotohuman/n8n-nodes-gotohuman.gotoHuman",
      "position": [
        224,
        576
      ]
    },
    {
      "id": "3f76a477-140b-433f-a811-6c7ec5a9d208",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        272
      ],
      "parameters": {
        "width": 672,
        "height": 752,
        "content": "![Source example](https://cdn.prod.website-files.com/6605a2979ff17b2cd1939cd4/689bbc4fd03868c12f591af5_gth-preview.JPG)"
      }
    },
    {
      "id": "d5a9011e-7612-4807-987d-2fd91cc6e4c2",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1504,
        -256
      ],
      "parameters": {
        "width": 672,
        "height": 912,
        "content": "## n8n News Assistant\n### Auto-detect news from n8n and turn into a human-approved LinkedIn post\n\nThis workflow monitors n8n's official blog. If it finds any newly published articles, it drafts a rela"
      }
    }
  ],
  "connections": {
    "Retry": {
      "main": [
        [
          {
            "node": "Draft LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Retry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Extract Title,Link+Tag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Article link": {
      "main": [
        [
          {
            "node": "Fetch Article HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Human approval": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Set Initial Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch n8n blog feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Article",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Summarize Article": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Article HTML": {
      "main": [
        [
          {
            "node": "Extract publishing datetime",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Draft LinkedIn Post",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Initial Prompt": {
      "main": [
        [
          {
            "node": "Draft LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Draft LinkedIn Post": {
      "main": [
        [
          {
            "node": "Human approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch n8n blog feed": {
      "main": [
        [
          {
            "node": "Fetch feed item HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch feed item HTML": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post from last 24hrs?": {
      "main": [
        [
          {
            "node": "Fetch Article (LLM-friendly)",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Extract Title,Link+Tag": {
      "main": [
        [
          {
            "node": "Article link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract publishing datetime": {
      "main": [
        [
          {
            "node": "Post from last 24hrs?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Article (LLM-friendly)": {
      "main": [
        [
          {
            "node": "Summarize Article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}