{
  "name": "New blog post to social post drafts",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyDay",
              "hour": 9
            }
          ]
        },
        "feedUrl": "https://YOUR-NEWSLETTER.beehiiv.com/feed"
      },
      "id": "a6daa010-5b47-571a-b4da-d75260d13a17",
      "name": "New post in my feed",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "typeVersion": 1,
      "position": [
        200,
        300
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "messages": {
          "values": [
            {
              "content": "=Write 3 different social posts about this article for beginners. Under 220 characters each. Plain language, no hashtag spam, include the link. Return JSON only: {\"posts\": [\"\", \"\", \"\"]}.\n\nTitle: {{ $json.title }}\nLink: {{ $json.link }}\nDescription: {{ ($json.contentSnippet || '').slice(0, 1000) }}"
            }
          ]
        },
        "options": {},
        "jsonOutput": true
      },
      "id": "61e465c6-5e93-5676-bc3a-e0a4a23fbe23",
      "name": "Write 3 social posts",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        420,
        300
      ]
    },
    {
      "parameters": {
        "fieldToSplitOut": "message.content.posts",
        "options": {
          "destinationFieldName": "post_text"
        }
      },
      "id": "ab53e3ab-52fa-5c4f-b409-cef9b608533d",
      "name": "One row per post",
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        640,
        300
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "url"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "date": "",
            "post_text": "={{ $json.post_text }}",
            "status": ""
          },
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "id": "111f86ba-cdad-5d44-9778-d742104ffc9d",
      "name": "Add to posting sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        860,
        300
      ]
    },
    {
      "parameters": {
        "content": "## Draft, not yet tested\nThis workflow was written by Automation Recipes and has NOT been run end to end yet.\n\nAfter importing: open each node, connect your own accounts (credentials), and fill in anything left blank (sheet URL, Slack channel, label names). Then run it once by hand with test data before turning it on.",
        "height": 260,
        "width": 420
      },
      "id": "60dd0ebd-4403-5c62-a66c-56dd26bba864",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        20
      ]
    }
  ],
  "connections": {
    "New post in my feed": {
      "main": [
        [
          {
            "node": "Write 3 social posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write 3 social posts": {
      "main": [
        [
          {
            "node": "One row per post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "One row per post": {
      "main": [
        [
          {
            "node": "Add to posting sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}