{
  "name": "Repurpose long-form content into Instagram and LinkedIn posts with OpenAI and Teams",
  "nodes": [
    {
      "id": "00980188-4add-43e4-982b-0bfd078aca17",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -2656,
        2432
      ]
    },
    {
      "id": "73113ccd-2992-449b-8f29-00ca9fa21758",
      "name": "Create project subfolder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1760,
        2432
      ]
    },
    {
      "id": "3007344c-6704-4495-a90d-d39382633b76",
      "name": "Move original to project folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1536,
        2432
      ]
    },
    {
      "id": "73b4a96c-6675-464c-899a-22f46d6dab3c",
      "name": "Log run metadata in Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1088,
        2432
      ]
    },
    {
      "id": "174b5843-74fc-4d7b-8cea-bec1b514d307",
      "name": "Extract URLs from approval data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1312,
        2432
      ]
    },
    {
      "id": "739e1ba6-c0dd-4ae1-aee4-c1fc3052f79c",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -2208,
        2432
      ]
    },
    {
      "id": "34cbcdd6-1916-4e21-b512-5160f6ee307c",
      "name": "Save original content to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1984,
        2432
      ]
    },
    {
      "id": "577896f6-f640-411a-aa3f-73d94f4bfec4",
      "name": "Auto-fixing Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        -736,
        2656
      ]
    },
    {
      "id": "e7f73315-67e7-4442-b917-90da49b11b34",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -864,
        2656
      ]
    },
    {
      "id": "566cf37a-e122-4638-98ca-22d7a9fe6beb",
      "name": "OpenAI Chat Model (parser)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -784,
        2864
      ]
    },
    {
      "id": "9f086d7b-4850-4446-98ad-1965b933ddce",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -592,
        2864
      ]
    },
    {
      "id": "46b02816-b2a1-4b2c-ae6d-393cf4147dd6",
      "name": "Update sheet: content pillars",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -144,
        2432
      ]
    },
    {
      "id": "abc421af-08c8-4f8c-8ba0-a31defacfba9",
      "name": "The Repurpose Strategist",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -832,
        2432
      ]
    },
    {
      "id": "7b504be3-e2a3-487c-bb72-5e968402c5a7",
      "name": "Auto-fixing Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        560,
        448
      ]
    },
    {
      "id": "b8ae9c7f-7f1b-4b17-82d0-b610d1402ece",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        304,
        448
      ]
    },
    {
      "id": "5f7bc48c-4bfb-434e-871b-ea2cb13f4364",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        544,
        688
      ]
    },
    {
      "id": "354fc061-60ac-401c-8796-bf734a6d22d8",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        704,
        656
      ]
    },
    {
      "id": "11b71d83-3851-4b11-8b30-b2ac46cef2be",
      "name": "Auto-fixing Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        704,
        1664
      ]
    },
    {
      "id": "e8dd6149-7786-4e8d-86f0-7ad4e67a2354",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        1664
      ]
    },
    {
      "id": "27063ea9-df13-4b97-af49-440f3ab8969e",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        608,
        1888
      ]
    },
    {
      "id": "5170486c-008f-4870-9e28-e8a956620b16",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        848,
        1872
      ]
    },
    {
      "id": "d5605956-c071-4c65-8e71-d1185d93c3fa",
      "name": "The IG/YT Specialist",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        352,
        224
      ]
    },
    {
      "id": "860927c2-4927-49ba-adb6-45a41cbb4645",
      "name": "The Linkedin Carousel Specialist",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        608,
        1440
      ]
    },
    {
      "id": "94b78f9b-bd2d-4f37-a1c8-4f2b0545f61d",
      "name": "Auto-fixing Output Parser3",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        496,
        2560
      ]
    },
    {
      "id": "2c79425a-e4af-4c36-994e-5f15afa78e21",
      "name": "OpenAI Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        368,
        2560
      ]
    },
    {
      "id": "fee1cb95-2cf1-4900-9a0c-21d2b8d0ec8c",
      "name": "OpenAI Chat Model7",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        448,
        2800
      ]
    },
    {
      "id": "28a906e3-18b8-47e7-9169-5e6daf1ed1e6",
      "name": "Structured Output Parser3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        640,
        2768
      ]
    },
    {
      "id": "d7d73dba-ed99-404d-9d2c-55dcccca90e5",
      "name": "The Linkedin Post Specialist",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        400,
        2336
      ]
    },
    {
      "id": "514593a4-15b4-4c51-87b2-8a1e7fca5110",
      "name": "Update sheet: SM carousel data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1776,
        480
      ]
    },
    {
      "id": "a1ea389b-e60e-4686-9422-1d02b9bfab32",
      "name": "Update sheet: LI carousel data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1584,
        1888
      ]
    },
    {
      "id": "fe76f135-1848-4dd8-a041-94d5725858e0",
      "name": "Update sheet: LI text post data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1376,
        2784
      ]
    },
    {
      "id": "c2ca6150-bc9c-41ed-9b7f-1bb603a612ee",
      "name": "Generate SM slide 1",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2000,
        912
      ]
    },
    {
      "id": "c66f19a1-060a-43a9-af84-9497ce52622d",
      "name": "Generate SM slide 5",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2000,
        672
      ]
    },
    {
      "id": "1dc60205-8e20-47a5-9d6b-f81eed39dd7b",
      "name": "Generate SM slide 3",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2000,
        288
      ]
    },
    {
      "id": "a094f594-ca5e-4ee8-a142-f22c1553da53",
      "name": "Generate SM slide 4",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2000,
        480
      ]
    },
    {
      "id": "ec8171b4-3349-436e-a9bf-8d0c69be0422",
      "name": "Merge all SM carousel images",
      "type": "n8n-nodes-base.merge",
      "position": [
        2672,
        240
      ]
    },
    {
      "id": "d1500d99-2ada-4e7b-b1ef-81048c165f5f",
      "name": "Generate SM slide 2",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2000,
        96
      ]
    },
    {
      "id": "7b6219ac-5962-4d8b-9bb6-445272cf73f0",
      "name": "Download carousel image 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        912
      ]
    },
    {
      "id": "46fa8830-12b6-4709-980e-366ab54a5b9a",
      "name": "Download carousel image 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        96
      ]
    },
    {
      "id": "a8658ad7-5d74-41aa-8f50-5a4e2f80c8d7",
      "name": "Download carousel image 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        288
      ]
    },
    {
      "id": "3d62c83a-5bb6-49da-8dd4-055bbaefb7a2",
      "name": "Download carousel image 4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        480
      ]
    },
    {
      "id": "902eb6fe-ab0d-484c-8aed-88304f77688c",
      "name": "Download carousel image 5",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        672
      ]
    },
    {
      "id": "696a8103-e710-4353-acda-fa01dc4369dc",
      "name": "Collect SM image URLs for publishing",
      "type": "n8n-nodes-base.set",
      "position": [
        2896,
        288
      ]
    },
    {
      "id": "3210415a-23c7-49df-94a1-5f7173e75636",
      "name": "Create SM asset folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1552,
        480
      ]
    },
    {
      "id": "bd7e15cc-f3e4-4bdb-9458-c6d655a679ea",
      "name": "Upload SM image 1 to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2448,
        912
      ]
    },
    {
      "id": "86ba89e0-a0cb-440d-8557-998653fa389a",
      "name": "Upload SM image 2 to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2448,
        96
      ]
    },
    {
      "id": "ecd5b9a6-3684-42d9-b36a-e5b8b7d4850f",
      "name": "Upload SM image 3 to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2448,
        288
      ]
    },
    {
      "id": "ed2aadb8-94db-454d-a35a-73f8d0025649",
      "name": "Upload SM image 4 to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2448,
        480
      ]
    },
    {
      "id": "e560d050-660a-4172-bbdf-62e21f83ae2e",
      "name": "Upload SM image 5 to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2448,
        672
      ]
    },
    {
      "id": "ffec0d5d-2a4a-408b-92ff-f316ebb113fa",
      "name": "Save SM post text to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3120,
        288
      ]
    },
    {
      "id": "82ab8798-dd9c-43d4-b5d4-576b2eb1ecbf",
      "name": "HTML to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        1808,
        1888
      ]
    },
    {
      "id": "2f1f4843-9b64-400e-afd8-d8878e498936",
      "name": "Upload LI carousel PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2032,
        1888
      ]
    },
    {
      "id": "7ec61247-f585-4505-90e6-7aac3401fc45",
      "name": "Create LI carousel asset folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2256,
        1888
      ]
    },
    {
      "id": "3639e148-abf1-49a6-bbd3-bc7f3e4de7b1",
      "name": "Move LI carousel PDF to folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2480,
        1888
      ]
    },
    {
      "id": "e7117789-a6cc-4811-ab24-59adb12ce921",
      "name": "Save LI carousel caption to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2704,
        1888
      ]
    },
    {
      "id": "6d1ce1d3-1ca1-4a7d-b198-f8ae433c4429",
      "name": "Review SM carousel in Teams",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        928,
        432
      ]
    },
    {
      "id": "f4ec9911-c769-418f-953a-aad11752e354",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        432,
        448
      ]
    },
    {
      "id": "a2cdf9a1-e3ba-4782-a460-64c65e0f0b5d",
      "name": "IG/YT Draft Approved?",
      "type": "n8n-nodes-base.if",
      "position": [
        1328,
        480
      ]
    },
    {
      "id": "ce0b4c09-9efe-4bb5-b36e-9824d92e6ccb",
      "name": "Download Email Attachments",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -2432,
        2432
      ]
    },
    {
      "id": "babd8ac2-6a14-4cbb-a0db-017ccd553159",
      "name": "Adaptive Prompt Builder – IG/YT",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        400
      ]
    },
    {
      "id": "93016f16-4ff6-40f8-8b30-5e34d8dd34f4",
      "name": "Review LI carousel in Teams",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        1136,
        1648
      ]
    },
    {
      "id": "2c0e87fa-9684-445f-9d88-9161d3f87f67",
      "name": "LI Carousel Draft Approved?",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        1888
      ]
    },
    {
      "id": "89d48210-6bcc-4abc-9440-75b6aa17fb3d",
      "name": "Adaptive Prompt Builder – LI Carousel",
      "type": "n8n-nodes-base.code",
      "position": [
        288,
        1888
      ]
    },
    {
      "id": "f15cde7f-afef-40aa-8778-21f354d0248c",
      "name": "Review LI text post in Teams",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        928,
        2544
      ]
    },
    {
      "id": "feddb189-b27b-4f45-af10-97199563b1ec",
      "name": "LI Text Post Draft Approved?",
      "type": "n8n-nodes-base.if",
      "position": [
        1152,
        2784
      ]
    },
    {
      "id": "8cd22f1a-d799-4c53-b571-797f98ee389e",
      "name": "Adaptive Prompt Builder – LI Text Post",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        2784
      ]
    },
    {
      "id": "52619aac-8aac-42d3-91bd-16c45eb6b228",
      "name": "Create LI text post asset folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1600,
        2784
      ]
    },
    {
      "id": "0d764ee1-7175-47dc-a837-c63f1e1096d4",
      "name": "Save LI text post to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1824,
        2784
      ]
    },
    {
      "id": "d943507c-816c-434e-b959-dc334718dabf",
      "name": "Publish LI text post via Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2048,
        2784
      ]
    },
    {
      "id": "2a6baf2a-d5d4-490c-8ea8-2859a195ef7e",
      "name": "Publish SM carousel via Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        3120,
        480
      ]
    },
    {
      "id": "ef2f8228-7673-47d1-a50b-771d85876868",
      "name": "Check SM carousel post status",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        3568,
        480
      ]
    },
    {
      "id": "aedad29f-5f06-4c1d-ba9a-96bb097262a1",
      "name": "Wait 30s for SM carousel",
      "type": "n8n-nodes-base.wait",
      "position": [
        3344,
        480
      ]
    },
    {
      "id": "fc83f5af-a3a4-4a1d-b402-3dfb4bc61806",
      "name": "Route SM carousel post status",
      "type": "n8n-nodes-base.switch",
      "position": [
        3792,
        464
      ]
    },
    {
      "id": "287540d3-8398-4172-9d56-3d19fb6bfc30",
      "name": "Notify: SM carousel published",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        4016,
        480
      ]
    },
    {
      "id": "50d9986b-bfbb-4c38-99eb-827326297775",
      "name": "Notify: SM carousel publish error",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        4016,
        672
      ]
    },
    {
      "id": "c7173322-baaa-456c-950b-1b8197f1b512",
      "name": "Check LI text post status",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2496,
        2464
      ]
    },
    {
      "id": "5dbce3fb-5eb7-464a-b50a-6e354e9d8361",
      "name": "Wait 40s for LI text post",
      "type": "n8n-nodes-base.wait",
      "position": [
        2272,
        2784
      ]
    },
    {
      "id": "84079bf5-d124-4f9f-9ca9-a9a23e9308b6",
      "name": "Route LI text post status",
      "type": "n8n-nodes-base.switch",
      "position": [
        2720,
        2768
      ]
    },
    {
      "id": "3da26168-12be-4071-a17a-811026e862ac",
      "name": "Notify: LI text post published",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        2944,
        2352
      ]
    },
    {
      "id": "7cb49fae-e63a-4156-b0dc-03c096fd0f6c",
      "name": "Notify: LI text post error",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        2976,
        2848
      ]
    },
    {
      "id": "0327fdb2-deb4-49cb-a51d-2af335bb6f47",
      "name": "Validate content pillars exist",
      "type": "n8n-nodes-base.if",
      "position": [
        -368,
        2432
      ]
    },
    {
      "id": "3d9f53c6-681a-4819-bd3e-8e9c9cba1f85",
      "name": "Notify: LI carousel assets ready",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        2928,
        1888
      ]
    },
    {
      "id": "c80b1307-1452-4d52-a393-1b1b272a8d52",
      "name": "Auto-fixing Output Parser4",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        480,
        3840
      ]
    },
    {
      "id": "de0f2a76-d889-4ca9-8b23-c7db14a24967",
      "name": "OpenAI Chat Model8",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        352,
        3840
      ]
    },
    {
      "id": "c03604e7-c89d-4162-a65d-96a4e65fc968",
      "name": "OpenAI Chat Model9",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        448,
        4064
      ]
    },
    {
      "id": "53527b7c-9344-4052-bd98-c455989e9a56",
      "name": "Structured Output Parser4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        624,
        4048
      ]
    },
    {
      "id": "a6930517-ab36-4412-8cd1-94840b436821",
      "name": "The Linkedin Post Specialist1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        384,
        3616
      ]
    },
    {
      "id": "140eeb75-43d4-4b75-a0f6-b4f8abb91cb5",
      "name": "Update sheet: LI media post data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1360,
        3856
      ]
    },
    {
      "id": "21b5e364-8776-4736-ba25-9b96a29da26a",
      "name": "Review LI media post in Teams",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        912,
        3616
      ]
    },
    {
      "id": "a50a5deb-b2c8-44e9-8c6a-97204e40170e",
      "name": "LI Media Post Draft Approved?",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        3856
      ]
    },
    {
      "id": "2eb797c1-26e3-41be-9d5f-69dd8e68c3fe",
      "name": "Adaptive Prompt Builder – LI Media Post",
      "type": "n8n-nodes-base.code",
      "position": [
        64,
        3856
      ]
    },
    {
      "id": "18590ca1-aa93-4969-abdb-49f66c874272",
      "name": "Create LI media post asset folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1584,
        3856
      ]
    },
    {
      "id": "7135f451-0287-4160-8cf1-07b9628ca447",
      "name": "Save LI media post text to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1808,
        3856
      ]
    },
    {
      "id": "058a0af7-cd00-4bbd-a747-d93c99800897",
      "name": "Publish LI media post via Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2480,
        3888
      ]
    },
    {
      "id": "dbdb4a46-bba7-4d3a-b5ec-f6812c6407b9",
      "name": "Check LI media post status",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2928,
        3632
      ]
    },
    {
      "id": "b9490a1f-960f-40a3-a34d-ec505d3caaf8",
      "name": "Wait 20s for LI media post",
      "type": "n8n-nodes-base.wait",
      "position": [
        2704,
        3888
      ]
    },
    {
      "id": "a2ee9a98-86b7-4602-91bb-53d24db6d2e2",
      "name": "Route LI media post status",
      "type": "n8n-nodes-base.switch",
      "position": [
        3152,
        3872
      ]
    },
    {
      "id": "90a8f3d2-5d88-4773-90e9-1324671d8d1c",
      "name": "Notify: LI media post published",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        3360,
        3536
      ]
    },
    {
      "id": "6a290c58-5a48-4ddb-a41d-52d8b346d3b7",
      "name": "Notify: LI media post error",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        3376,
        3984
      ]
    },
    {
      "id": "4810ad63-3920-4296-bb8b-732cd905cb4e",
      "name": "Generate LI media post image",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        2032,
        3856
      ]
    },
    {
      "id": "05122eb2-9f2a-4953-bd66-243dad8e5b77",
      "name": "Download LI media post image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2256,
        3856
      ]
    },
    {
      "id": "feac5a46-6dc3-4f9c-a86f-4a9503fef035",
      "name": "Update sheet: SM image URLs",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4240,
        480
      ]
    },
    {
      "id": "b2d1b26d-7970-45d1-bf2b-0e8e57485508",
      "name": "Update sheet: LI carousel hooks",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3168,
        2352
      ]
    },
    {
      "id": "302446fe-526c-4bcb-82d7-db2b7cd94a93",
      "name": "Update sheet: LI media post image data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3632,
        3552
      ]
    },
    {
      "id": "de690445-9267-4fa6-b583-dc268f19e7f4",
      "name": "Upload LI media post image to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2480,
        3504
      ]
    },
    {
      "id": "55e41db8-c107-4840-b91c-bb0cc2077308",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3536,
        2176
      ],
      "parameters": {
        "width": 472,
        "height": 708,
        "content": "## How it works\n1. **Gmail Trigger** watches for emails with a \"Content Repurposing\" subject\n2. The attachment is extracted, saved to Google Drive in a date-stamped subfolder\n3. An **AI Strategist** a"
      }
    },
    {
      "id": "6a04b643-1916-4d80-9e4d-e6ee3788ec65",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        2208
      ],
      "parameters": {
        "width": 912,
        "height": 864,
        "content": "## Story Teller Agent – The Repurpose Strategist\n> The core AI agent. Takes the full extracted text and distills it into 5 Content Pillars — each with a hook headline, deep-dive summary, viral factor,"
      }
    },
    {
      "id": "3d56ffe4-cf89-4124-a9f4-323bcbfb7440",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 4480,
        "height": 1152,
        "content": "## Instagram Assets : Carousels \n> The IG/YT Specialist agent writes a caption and 5 carousel slide texts. An Adaptive Prompt Builder (JS node) switches between CREATE mode (first run, using Content P"
      }
    },
    {
      "id": "1c94a0b2-4c37-4d41-82e1-68b2ace99391",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        1232
      ],
      "parameters": {
        "width": 4512,
        "height": 848,
        "content": "## Linkedin Assets : Carousels \n> The LinkedIn Carousel Specialist agent creates a companion post text plus 5 hook-headlines (2 words each) and 5 slide body texts (max 40 words). Same Adaptive Prompt "
      }
    },
    {
      "id": "42ed6569-fb75-4280-9170-1994dd469edd",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        2176
      ],
      "parameters": {
        "width": 3344,
        "height": 880,
        "content": "## Linkedin Assets : Text-Post \n> The LinkedIn Post Specialist agent writes a standalone text post (~100 words, hook-body-CTA structure). The Adaptive Prompt Builder handles CREATE vs. REPAIR mode. Af"
      }
    },
    {
      "id": "8487f3e4-c1bb-4b64-bcd9-e68ca1d4fcf8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        3440
      ],
      "parameters": {
        "width": 3840,
        "height": 768,
        "content": "## Linkedin Assets : Media-Post\n> The LinkedIn Media Post Specialist agent writes a \"guiding statement\" and a media post text. Same feedback loop pattern via Adaptive Prompt Builder. After approval, a"
      }
    },
    {
      "id": "714ac71b-6635-4cbd-9466-81dac1092c40",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        2176
      ],
      "parameters": {
        "width": 1680,
        "height": 864,
        "content": "## Trigger and documentation\n> Trigger the workflow and add new drive folder & g-sheet for the documentation of your social media assets"
      }
    }
  ],
  "connections": {
    "HTML to PDF": {
      "main": [
        [
          {
            "node": "Upload LI carousel PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Download Email Attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "The IG/YT Specialist",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Save original content to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "The Repurpose Strategist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "The IG/YT Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "The Linkedin Carousel Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "The Linkedin Post Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model8": {
      "ai_languageModel": [
        [
          {
            "node": "The Linkedin Post Specialist1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model9": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate SM slide 1": {
      "main": [
        [
          {
            "node": "Download carousel image 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate SM slide 2": {
      "main": [
        [
          {
            "node": "Download carousel image 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate SM slide 3": {
      "main": [
        [
          {
            "node": "Download carousel image 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate SM slide 4": {
      "main": [
        [
          {
            "node": "Download carousel image 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate SM slide 5": {
      "main": [
        [
          {
            "node": "Download carousel image 5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The IG/YT Specialist": {
      "main": [
        [
          {
            "node": "Review SM carousel in Teams",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IG/YT Draft Approved?": {
      "main": [
        [
          {
            "node": "Create SM asset folder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Adaptive Prompt Builder – IG/YT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create SM asset folder": {
      "main": [
        [
          {
            "node": "Update sheet: SM carousel data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload LI carousel PDF": {
      "main": [
        [
          {
            "node": "Create LI carousel asset folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create project subfolder": {
      "main": [
        [
          {
            "node": "Move original to project folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "The Repurpose Strategist": {
      "main": [
        [
          {
            "node": "Validate content pillars exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30s for SM carousel": {
      "main": [
        [
          {
            "node": "Check SM carousel post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "The Repurpose Strategist",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check LI text post status": {
      "main": [
        [
          {
            "node": "Route LI text post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download carousel image 1": {
      "main": [
        [
          {
            "node": "Upload SM image 1 to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download carousel image 2": {
      "main": [
        [
          {
            "node": "Upload SM image 2 to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download carousel image 3": {
      "main": [
        [
          {
            "node": "Upload SM image 3 to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download carousel image 4": {
      "main": [
        [
          {
            "node": "Upload SM image 4 to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download carousel image 5": {
      "main": [
        [
          {
            "node": "Upload SM image 5 to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route LI text post status": {
      "main": [
        [
          {
            "node": "Notify: LI text post published",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 40s for LI text post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify: LI text post error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser2",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser4",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Wait 40s for LI text post": {
      "main": [
        [
          {
            "node": "Check LI text post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "The IG/YT Specialist",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "The Linkedin Carousel Specialist",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "The Linkedin Post Specialist",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "The Linkedin Post Specialist1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check LI media post status": {
      "main": [
        [
          {
            "node": "Route LI media post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Email Attachments": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model (parser)": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route LI media post status": {
      "main": [
        [
          {
            "node": "Notify: LI media post published",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 20s for LI media post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify: LI media post error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save LI text post to Drive": {
      "main": [
        [
          {
            "node": "Publish LI text post via Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload SM image 1 to Drive": {
      "main": [
        [
          {
            "node": "Merge all SM carousel images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload SM image 2 to Drive": {
      "main": [
        [
          {
            "node": "Merge all SM carousel images",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Upload SM image 3 to Drive": {
      "main": [
        [
          {
            "node": "Merge all SM carousel images",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Upload SM image 4 to Drive": {
      "main": [
        [
          {
            "node": "Merge all SM carousel images",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Upload SM image 5 to Drive": {
      "main": [
        [
          {
            "node": "Merge all SM carousel images",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Wait 20s for LI media post": {
      "main": [
        [
          {
            "node": "Check LI media post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LI Carousel Draft Approved?": {
      "main": [
        [
          {
            "node": "Update sheet: LI carousel data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Adaptive Prompt Builder – LI Carousel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review LI carousel in Teams": {
      "main": [
        [
          {
            "node": "LI Carousel Draft Approved?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review SM carousel in Teams": {
      "main": [
        [
          {
            "node": "IG/YT Draft Approved?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download LI media post image": {
      "main": [
        [
          {
            "node": "Publish LI media post via Blotato",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload LI media post image to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate LI media post image": {
      "main": [
        [
          {
            "node": "Download LI media post image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LI Text Post Draft Approved?": {
      "main": [
        [
          {
            "node": "Update sheet: LI text post data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Adaptive Prompt Builder – LI Text Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge all SM carousel images": {
      "main": [
        [
          {
            "node": "Collect SM image URLs for publishing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review LI text post in Teams": {
      "main": [
        [
          {
            "node": "LI Text Post Draft Approved?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The Linkedin Post Specialist": {
      "main": [
        [
          {
            "node": "Review LI text post in Teams",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check SM carousel post status": {
      "main": [
        [
          {
            "node": "Route SM carousel post status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LI Media Post Draft Approved?": {
      "main": [
        [
          {
            "node": "Update sheet: LI media post data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Adaptive Prompt Builder – LI Media Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify: SM carousel published": {
      "main": [
        [
          {
            "node": "Update sheet: SM image URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review LI media post in Teams": {
      "main": [
        [
          {
            "node": "LI Media Post Draft Approved?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route SM carousel post status": {
      "main": [
        [
          {
            "node": "Notify: SM carousel published",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 30s for SM carousel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify: SM carousel publish error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The Linkedin Post Specialist1": {
      "main": [
        [
          {
            "node": "Review LI media post in Teams",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update sheet: content pillars": {
      "main": [
        [
          {
            "node": "Adaptive Prompt Builder – LI Media Post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Adaptive Prompt Builder – LI Text Post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Adaptive Prompt Builder – LI Carousel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Adaptive Prompt Builder – IG/YT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move LI carousel PDF to folder": {
      "main": [
        [
          {
            "node": "Save LI carousel caption to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify: LI text post published": {
      "main": [
        [
          {
            "node": "Update sheet: LI carousel hooks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save original content to Drive": {
      "main": [
        [
          {
            "node": "Create project subfolder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update sheet: LI carousel data": {
      "main": [
        [
          {
            "node": "HTML to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update sheet: SM carousel data": {
      "main": [
        [
          {
            "node": "Generate SM slide 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate SM slide 3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate SM slide 4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate SM slide 5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate SM slide 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate content pillars exist": {
      "main": [
        [
          {
            "node": "Update sheet: content pillars",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "The Repurpose Strategist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create LI carousel asset folder": {
      "main": [
        [
          {
            "node": "Move LI carousel PDF to folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract URLs from approval data": {
      "main": [
        [
          {
            "node": "Log run metadata in Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move original to project folder": {
      "main": [
        [
          {
            "node": "Extract URLs from approval data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify: LI media post published": {
      "main": [
        [
          {
            "node": "Update sheet: LI media post image data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish SM carousel via Blotato": {
      "main": [
        [
          {
            "node": "Wait 30s for SM carousel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update sheet: LI text post data": {
      "main": [
        [
          {
            "node": "Create LI text post asset folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create LI text post asset folder": {
      "main": [
        [
          {
            "node": "Save LI text post to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish LI text post via Blotato": {
      "main": [
        [
          {
            "node": "Wait 40s for LI text post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save LI media post text to Drive": {
      "main": [
        [
          {
            "node": "Generate LI media post image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The Linkedin Carousel Specialist": {
      "main": [
        [
          {
            "node": "Review LI carousel in Teams",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update sheet: LI media post data": {
      "main": [
        [
          {
            "node": "Create LI media post asset folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adaptive Prompt Builder – IG/YT": {
      "main": [
        [
          {
            "node": "The IG/YT Specialist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create LI media post asset folder": {
      "main": [
        [
          {
            "node": "Save LI media post text to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log run metadata in Google Sheets": {
      "main": [
        [
          {
            "node": "The Repurpose Strategist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish LI media post via Blotato": {
      "main": [
        [
          {
            "node": "Wait 20s for LI media post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save LI carousel caption to Drive": {
      "main": [
        [
          {
            "node": "Notify: LI carousel assets ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect SM image URLs for publishing": {
      "main": [
        [
          {
            "node": "Save SM post text to Drive",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish SM carousel via Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adaptive Prompt Builder – LI Carousel": {
      "main": [
        [
          {
            "node": "The Linkedin Carousel Specialist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adaptive Prompt Builder – LI Text Post": {
      "main": [
        [
          {
            "node": "The Linkedin Post Specialist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adaptive Prompt Builder – LI Media Post": {
      "main": [
        [
          {
            "node": "The Linkedin Post Specialist1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}