{
  "name": "LinkedIn post automation with AI (GPT-4o) generation & Slack approval",
  "nodes": [
    {
      "id": "workflow-overview-linkedin",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1050,
        -450
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "sheets-trigger-note",
      "name": "Sheets Trigger Info",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -750,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ai-generation-note",
      "name": "AI Generation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        130,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "slack-approval-note",
      "name": "Slack Approval",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        730,
        -380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "webhook-handler-note",
      "name": "Webhook Handler",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -750,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "image-upload-note",
      "name": "Image Upload Process",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        950,
        -800
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "linkedin-publish-note",
      "name": "LinkedIn Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1450,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "status-update-note",
      "name": "Status Update",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2110,
        -900
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0cd3e628-1720-49f7-9280-a1039d2c2ca9",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        -260,
        -180
      ]
    },
    {
      "id": "c36d36d6-0035-49ac-a757-4598d56e574e",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        328,
        40
      ]
    },
    {
      "id": "9f521172-07f4-4a17-b358-bd998e9a9d02",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        208,
        40
      ]
    },
    {
      "id": "09b0b22f-eb64-468f-85b0-1c9a0608631e",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -700,
        -590
      ]
    },
    {
      "id": "4e2954d7-e4de-48bf-a974-5ec80c7b7b0c",
      "name": "Linkedin-Post-Topic",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -700,
        -180
      ]
    },
    {
      "id": "47c4cdd0-48ef-4e41-996b-ed29811b092e",
      "name": "Validate-Status",
      "type": "n8n-nodes-base.if",
      "position": [
        -480,
        -180
      ]
    },
    {
      "id": "908eee31-78eb-482c-b331-2d3467d56b0d",
      "name": "Linedin-Post-Creator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        -180
      ]
    },
    {
      "id": "882d6e5c-a7f0-425f-a501-1f7179f8857b",
      "name": "Format-Content",
      "type": "n8n-nodes-base.code",
      "position": [
        556,
        -180
      ]
    },
    {
      "id": "31aea874-516c-47c7-9c5f-bde873faae4d",
      "name": "Approval-on-Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        780,
        -180
      ]
    },
    {
      "id": "8592224a-0370-48c3-b803-fe3653284545",
      "name": "Format-Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -260,
        -590
      ]
    },
    {
      "id": "2c503653-e3b6-4229-a733-25fa666ba85a",
      "name": "Validate-Response",
      "type": "n8n-nodes-base.if",
      "position": [
        -40,
        -590
      ]
    },
    {
      "id": "be68592f-f6a8-4698-8343-58d439eed3ac",
      "name": "Set-Final-Message",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -590
      ]
    },
    {
      "id": "4ec34acf-1704-4fd7-b14d-680409acbeda",
      "name": "Linkedin-User-Detail",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        -580
      ]
    },
    {
      "id": "78293261-7fbd-4757-8353-c2275ba2089a",
      "name": "Linkedin-post",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1500,
        -590
      ]
    },
    {
      "id": "54ee84f1-42e2-4f25-96a4-958b27f798f4",
      "name": "Get-Group-id",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1720,
        -590
      ]
    },
    {
      "id": "4e3e1fc5-a0ae-469f-8399-79b9bf98ff41",
      "name": "Pick 1 by 1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1940,
        -590
      ]
    },
    {
      "id": "7309d6c0-bfec-4d06-b3c3-5b05ccab6df3",
      "name": "Post-Linkedin-Groups",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        -540
      ]
    },
    {
      "id": "63b25ac7-e5dc-4836-96cf-5767b57c7784",
      "name": "Update-Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2160,
        -740
      ]
    },
    {
      "id": "348ca4b6-fbb0-4a07-9c3d-9a581b95c7fe",
      "name": "Register Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        620,
        -580
      ]
    },
    {
      "id": "2dfdfc17-78f7-488b-82f2-cb229488062f",
      "name": "Upload-Image-data",
      "type": "n8n-nodes-base.set",
      "position": [
        840,
        -580
      ]
    },
    {
      "id": "a68a5ba8-8913-455f-9893-12013322e9c0",
      "name": "Get Image Binary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        -590
      ]
    },
    {
      "id": "37cfc754-d66f-43f8-b881-4b5f0e927fa2",
      "name": "Upload Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        -590
      ]
    },
    {
      "id": "c67c5ae9-c0c0-4400-a5ed-c2f96842e24d",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -40,
        -180
      ]
    },
    {
      "id": "8202c5f6-aa24-44d9-989e-b67d0c481e17",
      "name": "Set Topics and Images for Processing",
      "type": "n8n-nodes-base.code",
      "position": [
        -480,
        -600
      ]
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Set Topics and Images for Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Linedin-Post-Creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick 1 by 1": {
      "main": [
        [
          {
            "node": "Update-Status",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post-Linkedin-Groups",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get-Group-id": {
      "main": [
        [
          {
            "node": "Pick 1 by 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Linkedin-post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin-post": {
      "main": [
        [
          {
            "node": "Get-Group-id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update-Status": {
      "main": [
        []
      ]
    },
    "Format-Content": {
      "main": [
        [
          {
            "node": "Approval-on-Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Register Image": {
      "main": [
        [
          {
            "node": "Upload-Image-data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format-Response": {
      "main": [
        [
          {
            "node": "Validate-Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate-Status": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image Binary": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Approval-on-Slack": {
      "main": [
        []
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Linedin-Post-Creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set-Final-Message": {
      "main": [
        [
          {
            "node": "Linkedin-User-Detail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload-Image-data": {
      "main": [
        [
          {
            "node": "Get Image Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate-Response": {
      "main": [
        [
          {
            "node": "Set-Final-Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin-Post-Topic": {
      "main": [
        [
          {
            "node": "Validate-Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linedin-Post-Creator": {
      "main": [
        [
          {
            "node": "Format-Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin-User-Detail": {
      "main": [
        [
          {
            "node": "Register Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post-Linkedin-Groups": {
      "main": [
        [
          {
            "node": "Pick 1 by 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Linedin-Post-Creator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Set Topics and Images for Processing": {
      "main": [
        [
          {
            "node": "Format-Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}