{
  "name": "Social Media Post Scheduler",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 30
            }
          ]
        }
      },
      "id": "6210fd96-1ccd-4345-83de-6734ce679c19",
      "name": "Every 30 min",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "operation": "read"
      },
      "id": "d1ee66a6-9ca0-42dd-a6c2-3b6d836f5845",
      "name": "Read Content Calendar",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        560,
        300
      ],
      "notes": "Assign Google Sheets credentials; point to your calendar sheet."
    },
    {
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "id": "5cc6e22b-cf5c-4b1e-ad60-6ec5c2b6ff06",
              "leftValue": "={{ $json.status }}",
              "rightValue": "scheduled",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ]
        }
      },
      "id": "7732464a-07ed-479b-947d-0e7783b6f106",
      "name": "Due Now?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        860,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ $json.platformEndpoint }}",
        "sendBody": true
      },
      "id": "7b794f3c-3da9-4c1e-903d-3d1a86d4459c",
      "name": "Publish Post",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1160,
        300
      ],
      "notes": "Swap for native LinkedIn/X nodes or keep as a generic API call."
    },
    {
      "parameters": {
        "operation": "update"
      },
      "id": "b6d2d287-c8e0-498e-8b72-4ab65114eeb5",
      "name": "Mark Published",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        260,
        520
      ]
    }
  ],
  "connections": {
    "Every 30 min": {
      "main": [
        [
          {
            "node": "Read Content Calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Content Calendar": {
      "main": [
        [
          {
            "node": "Due Now?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Due Now?": {
      "main": [
        [
          {
            "node": "Publish Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish Post": {
      "main": [
        [
          {
            "node": "Mark Published",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
