{
  "name": "Automate LinkedIn content creation with OpenAI, Notion, and Google Slides",
  "nodes": [
    {
      "id": "8254bcaf-7a2a-446f-9efd-7938bce14cc4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -256
      ],
      "parameters": {
        "width": 776,
        "height": 536,
        "content": "## Generate LinkedIn posts\n\nChecks if an idea was provided. \n\nNo idea: generates 10 generic posts across funnel stages (BOFU, MOFU TOFU)\nWith idea: creates 3 targeted posts."
      }
    },
    {
      "id": "883f3cd1-587a-47b9-ade0-ee5fa2e01760",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        832,
        32
      ]
    },
    {
      "id": "d2e9ebdb-a874-43c8-9042-a825ff2c095d",
      "name": "Idea available?",
      "type": "n8n-nodes-base.switch",
      "position": [
        1712,
        64
      ]
    },
    {
      "id": "2ebc8818-2c22-498e-801f-1ee8c6622bd0",
      "name": "Create 10 LinkedIn Posts",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1904,
        -80
      ]
    },
    {
      "id": "6f55b2bb-9bb4-4f50-b1c2-80d48e46b9a8",
      "name": "Create a database page",
      "type": "n8n-nodes-base.notion",
      "position": [
        2944,
        0
      ]
    },
    {
      "id": "48e11acf-9c22-40d2-a169-c4153416789a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2560,
        -64
      ]
    },
    {
      "id": "98369824-b76b-469c-a33b-32efe11d2b3b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        352
      ],
      "parameters": {
        "width": 1820,
        "height": 420,
        "content": "## Create carousel\n\nMonitors Notion for \"Create Carousel\" status. Generates slide content with OpenAI, populates a Google Slides template, and updates Notion with the carousel link."
      }
    },
    {
      "id": "c4ac427a-98b7-4ed1-a04a-e24fa2134fba",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        800
      ],
      "parameters": {
        "width": 2260,
        "height": 716,
        "content": "## Publish to LinkedIn\n\nChecks every minute for scheduled posts ready to publish. \n\nDetects if there's an image or document attached, posts to LinkedIn in the correct format, and updates the status to"
      }
    },
    {
      "id": "4a20f42f-14e6-4c57-8ae9-e2b7d1311ba1",
      "name": "Create 3 LinkedIn Posts from idea",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1904,
        128
      ]
    },
    {
      "id": "2d5ebcec-cde6-42c1-bed4-e0cbc1050349",
      "name": "Replace text",
      "type": "n8n-nodes-base.googleSlides",
      "position": [
        1856,
        512
      ]
    },
    {
      "id": "b5d7ae82-877d-4103-a46c-1d454be97fbd",
      "name": "Copy file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1616,
        512
      ]
    },
    {
      "id": "96a5a628-65d7-45f1-aa24-a5588f736a0e",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1264,
        512
      ]
    },
    {
      "id": "e2cf35fb-ba2e-4c92-9e0a-85deb94360d2",
      "name": "Get many database pages",
      "type": "n8n-nodes-base.notion",
      "position": [
        1040,
        512
      ]
    },
    {
      "id": "5a179e9f-bed9-4f09-b3aa-38b5d0fff5d5",
      "name": "Update a database page",
      "type": "n8n-nodes-base.notion",
      "position": [
        2112,
        512
      ]
    },
    {
      "id": "d50f6faa-783a-461e-a27d-0f4a74fefdf9",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        2032,
        1344
      ]
    },
    {
      "id": "9c84a850-4486-4597-b5ee-34d2804b0300",
      "name": "file uploaded?",
      "type": "n8n-nodes-base.if",
      "position": [
        1024,
        32
      ]
    },
    {
      "id": "77c14673-9264-4621-97ae-442759c5213a",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1264,
        -48
      ]
    },
    {
      "id": "bb058706-8a55-459a-9649-aff0dffe7e02",
      "name": "Set fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2816,
        0
      ]
    },
    {
      "id": "a137cfbb-b5bc-48b8-bc66-7c1076c85235",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -256
      ],
      "parameters": {
        "width": 860,
        "height": 536,
        "content": "## Upload file to Drive\n\nChecks if a file was submitted with the form. \n\nIf yes, uploads it to Google Drive and saves the shareable link."
      }
    },
    {
      "id": "130088be-c3af-4a17-8f02-f758c3bf256b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        -256
      ],
      "parameters": {
        "width": 1076,
        "height": 536,
        "content": "## Save posts to Notion\n\nCreates a Notion page for each generated post with all metadata. \n\nIf a file was uploaded, adds the file link to the page."
      }
    },
    {
      "id": "965b38cd-b9a1-4315-a327-302e26fa514f",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2272,
        32
      ]
    },
    {
      "id": "83bd01f3-2b5a-4f52-8cd1-d37923258acf",
      "name": "Set File Url",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        -48
      ]
    },
    {
      "id": "35e4dd51-601e-404b-90df-efb57f229251",
      "name": "Update database page (with file)",
      "type": "n8n-nodes-base.notion",
      "position": [
        3296,
        64
      ]
    },
    {
      "id": "2cca290c-c1c3-49ed-aaaa-41bb6df2b25f",
      "name": "File uploaded",
      "type": "n8n-nodes-base.if",
      "position": [
        3088,
        16
      ]
    },
    {
      "id": "ea43f68a-5a5b-4bd8-bd51-becff7d707fa",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        816,
        1056
      ]
    },
    {
      "id": "9aa185ad-5d7e-446e-aee1-f4c666d9e958",
      "name": "Get Ready Posts",
      "type": "n8n-nodes-base.notion",
      "position": [
        1040,
        1056
      ]
    },
    {
      "id": "958a2dc5-b21a-4687-ba47-c96622623806",
      "name": "Update Notion Posted Status",
      "type": "n8n-nodes-base.notion",
      "position": [
        2736,
        1120
      ]
    },
    {
      "id": "6b506af9-711b-4dfc-8509-8a15f4ccb68f",
      "name": "Create a post with image",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        2032,
        944
      ]
    },
    {
      "id": "100993fc-0338-4a28-998d-0658acb4be45",
      "name": "LinkedIn Media?",
      "type": "n8n-nodes-base.if",
      "position": [
        1296,
        1056
      ]
    },
    {
      "id": "997ea2b2-6953-4f03-bdde-405afec5aed6",
      "name": "Get file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1552,
        960
      ]
    },
    {
      "id": "0ca04776-5d08-4a54-ad66-48aecf4dd513",
      "name": "Extension",
      "type": "n8n-nodes-base.switch",
      "position": [
        1776,
        960
      ]
    },
    {
      "id": "9844e8b2-4ee3-414a-b09c-90d0a4e18448",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2288,
        1120
      ]
    },
    {
      "id": "32fc36b2-3e6a-4d4f-9ea2-8ab21399857a",
      "name": "Create a post with document",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        2032,
        1120
      ]
    },
    {
      "id": "4aec732e-fadf-4ef3-bbe7-406769185ab0",
      "name": "Notion Trigger",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        848,
        512
      ]
    },
    {
      "id": "fb85526e-eb0a-4a51-b02b-24647ebb0599",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -832
      ],
      "parameters": {
        "width": 1008,
        "height": 544,
        "content": "## How it works\n\nThis workflow automates your LinkedIn content from idea to post.\n\n**Generate content:** Submit an idea through a form. Get 10 generic posts or 3 custom posts saved to Notion.\n\n**Creat"
      }
    }
  ],
  "connections": {
    "Get file": {
      "main": [
        [
          {
            "node": "Extension",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Copy file": {
      "main": [
        [
          {
            "node": "Replace text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extension": {
      "main": [
        [
          {
            "node": "Create a post with image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create a post with document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set fields": {
      "main": [
        [
          {
            "node": "Create a database page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Set File Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace text": {
      "main": [
        [
          {
            "node": "Update a database page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set File Url": {
      "main": [
        [
          {
            "node": "Idea available?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Update Notion Posted Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File uploaded": {
      "main": [
        [
          {
            "node": "Update database page (with file)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion Trigger": {
      "main": [
        [
          {
            "node": "Get many database pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Update Notion Posted Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "file uploaded?": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Idea available?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Ready Posts": {
      "main": [
        [
          {
            "node": "LinkedIn Media?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Idea available?": {
      "main": [
        [
          {
            "node": "Create 10 LinkedIn Posts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create 3 LinkedIn Posts from idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn Media?": {
      "main": [
        [
          {
            "node": "Get file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Set fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Copy file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Ready Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "file uploaded?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a database page": {
      "main": [
        [
          {
            "node": "File uploaded",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a database page": {
      "main": [
        []
      ]
    },
    "Get many database pages": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create 10 LinkedIn Posts": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post with image": {
      "main": [
        [
          {
            "node": "Update Notion Posted Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post with document": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update database page (with file)": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create 3 LinkedIn Posts from idea": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}