{
  "name": "Generate 9:16 images from content and brand guidelines",
  "nodes": [
    {
      "id": "be5c3e43-cc86-4081-aa98-e7af3d22267d",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        200,
        -960
      ]
    },
    {
      "id": "28f70c3a-bc45-4f43-80a6-69b592c8ce2e",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -1200
      ],
      "parameters": {
        "width": 290,
        "height": 1110,
        "content": "# AlexK1919 \n![Alex Kim](https://media.licdn.com/dms/image/v2/D5603AQFOYMkqCPl6Sw/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1718309808352?e=1736985600&v=beta&t=pQKm7lQf"
      }
    },
    {
      "id": "334044d8-e9a6-497e-9a11-63134233c8fa",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -1200
      ],
      "parameters": {
        "width": 247,
        "height": 1111,
        "content": "# Triggers"
      }
    },
    {
      "id": "fcdf5c1a-3ddd-44cf-9b6d-a9afdd1fc256",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -1200
      ],
      "parameters": {
        "width": 427,
        "height": 1111,
        "content": "# 1. Retrieve Brand Guidelines"
      }
    },
    {
      "id": "a5a2bfcf-e2b7-4a9f-a766-7d08168c3d6f",
      "name": "Set Guidelines",
      "type": "n8n-nodes-base.set",
      "position": [
        680,
        -960
      ]
    },
    {
      "id": "ab26d351-144d-477c-8dd3-a010c3fce0ca",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -1200
      ],
      "parameters": {
        "width": 667,
        "height": 1111,
        "content": "# 2. Retrieve Blog Post/s"
      }
    },
    {
      "id": "f8e46822-cf7e-4697-bee4-99221b6063a7",
      "name": "Get Brand Guidelines",
      "type": "n8n-nodes-base.airtable",
      "position": [
        480,
        -960
      ]
    },
    {
      "id": "c6609f11-d04d-4e83-8fc0-af3c0e2cc9bd",
      "name": "Get SEO Keywords",
      "type": "n8n-nodes-base.airtable",
      "position": [
        940,
        -960
      ]
    },
    {
      "id": "d9201fa0-05d9-492b-896d-2cdc26e84f2e",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        1340,
        -960
      ]
    },
    {
      "id": "68f2a29b-0e29-4a64-986b-9c1204c1d1ef",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -1040
      ],
      "parameters": {
        "width": 220,
        "height": 240,
        "content": "## Set keyword filter"
      }
    },
    {
      "id": "530dfb77-0aee-445d-8a1f-d8f2cbcd1640",
      "name": "Keyword Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        1140,
        -960
      ]
    },
    {
      "id": "75da86d6-22d4-42d6-8451-ea75db76ae57",
      "name": "Get Content",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1140,
        -740
      ]
    },
    {
      "id": "7524c5d8-78bb-4a4e-9c56-af97b851b767",
      "name": "Split Out Content",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1340,
        -740
      ]
    },
    {
      "id": "45d55ea1-ad01-4771-a2b2-67bb0cd1f983",
      "name": "Split Out Keywords",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        940,
        -740
      ]
    },
    {
      "id": "349c64c2-2085-4b61-b9d2-dc1f0d7f46f6",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        1340,
        -520
      ]
    },
    {
      "id": "3b689583-6f40-4a6b-9afc-af128b2d4fca",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        -1200
      ],
      "parameters": {
        "width": 727,
        "height": 1111,
        "content": "# 3. Prepare Short Form Video Content"
      }
    },
    {
      "id": "bcdf8e9e-463c-43d4-a29e-7f90076815a1",
      "name": "Script Prep",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1640,
        -960
      ]
    },
    {
      "id": "be07f6e3-1e2d-4d4f-a8e0-1d642ca4b789",
      "name": "Split Out Scenes",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2060,
        -520
      ]
    },
    {
      "id": "83b3213d-70db-46d4-8dcc-5f399a64467d",
      "name": "Split Out TN Prompt",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2060,
        -1020
      ]
    },
    {
      "id": "d4f30eff-220a-4682-9072-f1bbbce3655c",
      "name": "Leo - Improve Prompt1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2600,
        -1020
      ]
    },
    {
      "id": "a1d32bae-67a0-487d-9583-0b53ab25d184",
      "name": "Leo - Get imageId1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3200,
        -1020
      ]
    },
    {
      "id": "89436c9d-1898-4f32-abf4-1f4fef7473a8",
      "name": "Prompt Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        2400,
        -1020
      ]
    },
    {
      "id": "9791db0e-c9a5-4fd8-b3fc-fd92b65c6362",
      "name": "Leo - Generate Image1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2800,
        -1020
      ]
    },
    {
      "id": "8b77e0b5-5ed5-401b-964f-e2a651b774ee",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2340,
        -1200
      ],
      "parameters": {
        "width": 1447,
        "height": 531,
        "content": "# 4. Generate Thumbnail Image"
      }
    },
    {
      "id": "64c5d0f0-07ce-493d-b974-69051ed41e0d",
      "name": "Wait 30 Seconds",
      "type": "n8n-nodes-base.wait",
      "position": [
        3000,
        -1020
      ]
    },
    {
      "id": "94e8f4a6-c22e-4938-bfc6-b5a040e3aa5e",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2740,
        -1100
      ],
      "parameters": {
        "width": 220,
        "height": 280,
        "content": "### Uses the latest Leonardo.ai Model: Phoenix 1.0"
      }
    },
    {
      "id": "d418088f-cebd-483a-b413-09f62faac1b7",
      "name": "Leo - Improve Prompt",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2800,
        -420
      ]
    },
    {
      "id": "c77d1f84-8db8-4ca5-9bcf-854a4bda9cf5",
      "name": "Leo - Get imageId",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3400,
        -420
      ]
    },
    {
      "id": "3f8fef1e-c7ff-43d2-9385-4ab8a6dce553",
      "name": "Prompt Settings1",
      "type": "n8n-nodes-base.set",
      "position": [
        2600,
        -420
      ]
    },
    {
      "id": "b6c43a16-29e8-4074-9dda-5661dfd3da5d",
      "name": "Leo - Generate Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3000,
        -420
      ]
    },
    {
      "id": "c3910b17-9a27-4419-ab01-409cc7090c68",
      "name": "Wait 30 Seconds1",
      "type": "n8n-nodes-base.wait",
      "position": [
        3200,
        -420
      ]
    },
    {
      "id": "85a320a3-7a06-41f9-a34a-de3fd1ce2950",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2400,
        -520
      ]
    },
    {
      "id": "8b3158d1-6be6-4446-8083-f3a9fa18e074",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2340,
        -640
      ],
      "parameters": {
        "width": 1447,
        "height": 551,
        "content": "# 4. Generate Scene Images"
      }
    },
    {
      "id": "3ee7e646-8690-4a7c-9820-ce2985b02e7a",
      "name": "Add Asset Info",
      "type": "n8n-nodes-base.airtable",
      "position": [
        3400,
        -1020
      ]
    },
    {
      "id": "88cd8514-9a54-47bf-b822-8c01ef05c08e",
      "name": "Add Asset Info1",
      "type": "n8n-nodes-base.airtable",
      "position": [
        3600,
        -420
      ]
    },
    {
      "id": "67cd2444-506d-4754-a75d-e725239d6f7c",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2740,
        -500
      ],
      "parameters": {
        "width": 220,
        "height": 280,
        "content": "### Uses the latest Leonardo.ai Model: Phoenix 1.0"
      }
    },
    {
      "id": "1acc2d91-c4ba-4a26-bb74-a848875e9fac",
      "name": "Wikipedia",
      "type": "@n8n/n8n-nodes-langchain.toolWikipedia",
      "position": [
        1640,
        -740
      ]
    },
    {
      "id": "1c5b5602-bf95-4534-8c73-69b8157765ee",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2940,
        -840
      ],
      "parameters": {
        "width": 400,
        "height": 80,
        "content": "### Optionally, you can modify the number of images generated to provide more options"
      }
    },
    {
      "id": "79552e45-5dbc-4ddb-8543-039ca76dfe56",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2940,
        -560
      ],
      "parameters": {
        "width": 400,
        "height": 80,
        "content": "### Optionally, you can modify the number of images generated to provide more options"
      }
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Script Prep",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wikipedia": {
      "ai_tool": [
        [
          {
            "node": "Script Prep",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Content": {
      "main": [
        [
          {
            "node": "Split Out Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Script Prep": {
      "main": [
        [
          {
            "node": "Split Out TN Prompt",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split Out Scenes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keyword Filter": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Guidelines": {
      "main": [
        [
          {
            "node": "Get SEO Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Asset Info1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Prompt Settings1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Settings": {
      "main": [
        [
          {
            "node": "Leo - Improve Prompt1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 Seconds": {
      "main": [
        [
          {
            "node": "Leo - Get imageId1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get SEO Keywords": {
      "main": [
        [
          {
            "node": "Keyword Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Settings1": {
      "main": [
        [
          {
            "node": "Leo - Improve Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Scenes": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 Seconds1": {
      "main": [
        [
          {
            "node": "Leo - Get imageId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Get imageId": {
      "main": [
        [
          {
            "node": "Add Asset Info1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Split Out Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Content": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Get imageId1": {
      "main": [
        [
          {
            "node": "Add Asset Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Keywords": {
      "main": [
        [
          {
            "node": "Get Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out TN Prompt": {
      "main": [
        [
          {
            "node": "Prompt Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand Guidelines": {
      "main": [
        [
          {
            "node": "Set Guidelines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Generate Image": {
      "main": [
        [
          {
            "node": "Wait 30 Seconds1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Improve Prompt": {
      "main": [
        [
          {
            "node": "Leo - Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Generate Image1": {
      "main": [
        [
          {
            "node": "Wait 30 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Improve Prompt1": {
      "main": [
        [
          {
            "node": "Leo - Generate Image1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get Brand Guidelines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}