{
  "name": "Generate social media posts with GPT-4 for LinkedIn, X, and Facebook",
  "nodes": [
    {
      "id": "d4a6b0a9-9d75-4420-a752-2c970539dca8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2128,
        48
      ],
      "parameters": {
        "width": 820,
        "height": 720,
        "content": "## AI Social Media Content Generator\n\nAutomatically generates engaging marketing posts using OpenAI and publishes them across LinkedIn, Twitter (X), and Facebook. Creates platform-optimized content wi"
      }
    },
    {
      "id": "1fd10534-b70f-42ac-8f66-3610eb9ae0ad",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        256
      ],
      "parameters": {
        "width": 468,
        "height": 465,
        "content": "## 1. Trigger content generation\n\nRuns daily at 10 AM or can be triggered manually for on-demand content creation"
      }
    },
    {
      "id": "b797c0cb-a919-4ba4-959e-07214e9b27e9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        256
      ],
      "parameters": {
        "width": 668,
        "height": 465,
        "content": "## 2. Generate & optimize content\n\nUses OpenAI to create engaging posts and optimizes for each platform's requirements"
      }
    },
    {
      "id": "c489aaea-efbe-465c-ba47-8ac4f49c970b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 636,
        "height": 905,
        "content": "## 3. Publish to platforms\n\nPosts content to LinkedIn, Twitter, and Facebook with platform-specific formatting"
      }
    },
    {
      "id": "0c721a5a-2f20-4f18-9a89-1d85ef34e1a1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        144
      ],
      "parameters": {
        "width": 960,
        "height": 601,
        "content": "## 4. Track & notify\n\nStores post data in database and sends confirmation notifications to team via Slack"
      }
    },
    {
      "id": "36d9fe76-7799-456c-a6a2-8dc45b4743cc",
      "name": "Daily content generation at 10 AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1088,
        448
      ]
    },
    {
      "id": "a18aba08-7b8a-4c1e-9133-175880c69c5b",
      "name": "Select content topic and type",
      "type": "n8n-nodes-base.code",
      "position": [
        -864,
        448
      ]
    },
    {
      "id": "ac0ff0cc-779e-4d85-8bb5-1c14c482d561",
      "name": "Generate content with OpenAI GPT-4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -640,
        448
      ]
    },
    {
      "id": "a8a9b912-7470-41a2-b06a-48111ff94f24",
      "name": "Parse AI response and extract content",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        448
      ]
    },
    {
      "id": "7b8a73da-86cf-4d8c-82dd-53fdb8d0c4e2",
      "name": "Optimize content for each platform",
      "type": "n8n-nodes-base.code",
      "position": [
        -192,
        448
      ]
    },
    {
      "id": "1d0d4b10-be95-404b-86bc-c6372dc49bfd",
      "name": "Split content for each platform",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        32,
        448
      ]
    },
    {
      "id": "ad974eaa-30b9-4c41-bc43-12d0cc05adae",
      "name": "Route to appropriate platform",
      "type": "n8n-nodes-base.switch",
      "position": [
        256,
        432
      ]
    },
    {
      "id": "034ef4da-8e8e-46e5-86cf-e2ed05d1967e",
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        160
      ]
    },
    {
      "id": "58b1fc79-70dc-4f66-ae13-2beb87b23926",
      "name": "Post to Twitter/X",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        352
      ]
    },
    {
      "id": "2bd704dc-22d4-4bdc-ba20-657239f191fb",
      "name": "Post to Facebook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        544
      ]
    },
    {
      "id": "17480ec1-6390-49a2-90e0-dd9bbff19fe4",
      "name": "Aggregate all platform results",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        704,
        352
      ]
    },
    {
      "id": "f3795911-062c-4e77-bd21-98c05d5b4221",
      "name": "Prepare database record",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        352
      ]
    },
    {
      "id": "4dd34fc5-6e0f-4d78-b402-432c04b08836",
      "name": "Store post record in PostgreSQL",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1152,
        352
      ]
    },
    {
      "id": "1b36c38f-c288-4517-b5ef-7a037218dfd3",
      "name": "Prepare Slack notification",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        544
      ]
    },
    {
      "id": "2f08c1c1-ad8c-4331-b760-34049e7b5b3d",
      "name": "Send confirmation to Slack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1376,
        544
      ]
    },
    {
      "id": "8801c163-69e4-4843-98df-c0ad31aad74f",
      "name": "Log success and update statistics",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        352
      ]
    }
  ],
  "connections": {
    "Post to Facebook": {
      "main": [
        [
          {
            "node": "Aggregate all platform results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post to LinkedIn": {
      "main": [
        [
          {
            "node": "Aggregate all platform results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post to Twitter/X": {
      "main": [
        [
          {
            "node": "Aggregate all platform results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare database record": {
      "main": [
        [
          {
            "node": "Store post record in PostgreSQL",
            "type": "main",
            "index": 0
          },
          {
            "node": "Prepare Slack notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Slack notification": {
      "main": [
        [
          {
            "node": "Send confirmation to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route to appropriate platform": {
      "main": [
        [
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post to Twitter/X",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post to Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select content topic and type": {
      "main": [
        [
          {
            "node": "Generate content with OpenAI GPT-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate all platform results": {
      "main": [
        [
          {
            "node": "Prepare database record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split content for each platform": {
      "main": [
        [
          {
            "node": "Route to appropriate platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store post record in PostgreSQL": {
      "main": [
        [
          {
            "node": "Log success and update statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily content generation at 10 AM": {
      "main": [
        [
          {
            "node": "Select content topic and type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate content with OpenAI GPT-4": {
      "main": [
        [
          {
            "node": "Parse AI response and extract content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optimize content for each platform": {
      "main": [
        [
          {
            "node": "Split content for each platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI response and extract content": {
      "main": [
        [
          {
            "node": "Optimize content for each platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}