{
  "nodes": [
    {
      "id": "66660420-4e05-42bf-9f84-c8801f445f90",
      "name": "Product Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1968,
        784
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "46321e17-19e3-48eb-8af5-d2479926bd77",
      "name": "Run an Actor",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        2384,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "401b02c4-6d51-465e-88c0-894f120d6333",
      "name": "Get dataset items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        2560,
        320
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "b63e6eeb-e818-48e2-931e-133522a59d5c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2304,
        224
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7a7e602d-c36f-4e45-af0c-dbcd40954aca",
      "name": "Parse & Format Captions",
      "type": "n8n-nodes-base.code",
      "position": [
        3328,
        320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "60705e11-4ee0-4c4f-8d42-32bf902358aa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2768,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "444a5108-8e7e-40be-82dd-53cd8d92fede",
      "name": "Image Prompt Optimization",
      "type": "n8n-nodes-base.code",
      "position": [
        2736,
        784
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a8bb7771-a0ab-4b6c-ac82-bd0c0df55a29",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2832,
        512
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ca6a09d5-d072-43b7-a1f7-aacd8c47792d",
      "name": "Generate Captions1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2816,
        320
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "29e0cb25-0419-49e6-8f36-503a3832dca3",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2352,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f7198758-f0ff-4c10-a9fd-577c347fa9d9",
      "name": "Image Prompt Generation1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2368,
        784
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "8fcf0ed8-a2f2-45c8-b798-f182278d5185",
      "name": "Image Generation-FAL AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3040,
        784
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "2e7d8bda-83d8-48ef-a4ef-39ae01fbfb87",
      "name": "Actual Cost Tracking- Open Router",
      "type": "n8n-nodes-base.code",
      "position": [
        3120,
        320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2e803433-084a-4f9e-99d0-c7a2fe0c68b2",
      "name": "Extract imgBB URL",
      "type": "n8n-nodes-base.set",
      "position": [
        3488,
        784
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "11266a16-0e8c-406f-8f72-c8675f24786b",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1664,
        320
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9d8ac095-435e-4bff-bac7-e84eaf62f994",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1904,
        320
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "5598bb6e-e841-40e1-a08d-2289f3e6ec57",
      "name": "Merge Image And Audio",
      "type": "n8n-nodes-base.merge",
      "position": [
        1920,
        1280
      ],
      "parameters": {},
      "typeVersion": 3,
      "alwaysOutputData": true
    },
    {
      "id": "357ff278-9baa-425f-826e-1b4b492c3d03",
      "name": "Video Ready",
      "type": "n8n-nodes-base.code",
      "position": [
        3056,
        1280
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5f80bb12-d08f-4d1b-8859-3f4bf45f37fd",
      "name": "Create Shotstack Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2416,
        1280
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "f6176d6a-366d-4efb-a1dc-2ddfce972fa3",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2640,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7de110ba-34d6-4e8f-9a2f-41e439b8bfeb",
      "name": "Get Rendered Video URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2864,
        1280
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "2b7880b0-32a7-42be-b7cc-699a7c9c4db2",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3248,
        672
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "22e2cd98-2cd0-4b85-91d1-f1de970c37ef",
      "name": "Image Upload to IMGBB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3280,
        784
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "c0b01008-d3cc-4013-b0d3-91a7f2a5ac94",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3264,
        1280
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "a02da406-4408-4885-b8cd-9c0b07b450d3",
      "name": "Buffer Video Posting - X, YT and LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1968,
        1648
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "242c4716-c209-46fc-af2a-b8684eb1a51b",
      "name": "Send Summary Message1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3040,
        1568
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d47dd54c-7778-4bc0-bc45-9ee960f19f5f",
      "name": "Assemble Final Post Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2608,
        1664
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "5f16d1fc-8a1e-40db-9df0-ef05f9861eb1",
      "name": "Validate Audio URL",
      "type": "n8n-nodes-base.code",
      "position": [
        2112,
        320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f160d5b3-855e-4504-9918-a6b9e9269041",
      "name": "Prepare Audio + Image URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        2160,
        1280
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "79a65a27-1013-4c9e-86fd-255abd921b81",
      "name": "Status Update to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2416,
        1664
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "f93bbe80-3c46-4b43-92e3-a8080dd91d3b",
      "name": "Send Product Video",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3056,
        1808
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7da5c30a-f0e3-413b-99a7-d5b7ec46ab06",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        688
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c565b6a7-ba74-4871-90f2-3ce72fc584f8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        688
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2257660b-157e-4b52-b241-81fa6bbfcca2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        672
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2aef38b5-d514-425d-bced-5dc701c8d115",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        1168
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "40f10d39-974b-4398-ac67-aa0b7d18194f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        1552
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0688d5c5-a77e-4e21-a22d-da3959a832f8",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2352,
        1536
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "479e2d1e-6bd7-4aa5-a806-dff49699ce80",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2224,
        1664
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "fd83022a-5b31-45d5-baaf-b6a87482e7e4",
      "name": "Build Video GraphQL Query- X, YT and LinkedIn",
      "type": "n8n-nodes-base.code",
      "position": [
        1776,
        1648
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "60bed8e7-bcb2-4773-a7d7-bde264aad76b",
      "name": "Build Video GraphQL Query- FB, IG and Threads",
      "type": "n8n-nodes-base.code",
      "position": [
        1776,
        1872
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "08ff2f08-81a9-4b71-8bcd-4e4110a0b3d4",
      "name": "Buffer Video Posting - FB, IG and Threads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1968,
        1872
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "324a68f2-f2e5-4491-8980-05bebea8ce8a",
      "name": "Build Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        2800,
        1664
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "557ecb9c-a7d0-4538-8833-e4d3b7810325",
      "name": "SETUP GUIDE",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get Rendered Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Status Update to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Ready": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Summary": {
      "main": [
        [
          {
            "node": "Send Summary Message1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Product Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Image": {
      "main": [
        [
          {
            "node": "Image Prompt Generation1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Build Video GraphQL Query- X, YT and LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Build Video GraphQL Query- FB, IG and Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract imgBB URL": {
      "main": [
        [
          {
            "node": "Merge Image And Audio",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Image And Audio",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Generate Captions1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Captions1": {
      "main": [
        [
          {
            "node": "Actual Cost Tracking- Open Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Audio URL": {
      "main": [
        [
          {
            "node": "Run an Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Validate Audio URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Upload to IMGBB": {
      "main": [
        [
          {
            "node": "Extract imgBB URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Image And Audio": {
      "main": [
        [
          {
            "node": "Prepare Audio + Image URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Captions1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create Shotstack Video": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Rendered Video URL": {
      "main": [
        [
          {
            "node": "Video Ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Image Prompt Generation1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Image Generation-FAL AI": {
      "main": [
        [
          {
            "node": "Image Upload to IMGBB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse & Format Captions": {
      "main": [
        [
          {
            "node": "Product Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status Update to Sheets": {
      "main": [
        [
          {
            "node": "Assemble Final Post Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assemble Final Post Data": {
      "main": [
        [
          {
            "node": "Build Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Generation1": {
      "main": [
        [
          {
            "node": "Image Prompt Optimization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Optimization": {
      "main": [
        [
          {
            "node": "Image Generation-FAL AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Audio + Image URLs": {
      "main": [
        [
          {
            "node": "Create Shotstack Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Actual Cost Tracking- Open Router": {
      "main": [
        [
          {
            "node": "Parse & Format Captions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buffer Video Posting - FB, IG and Threads": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Buffer Video Posting - X, YT and LinkedIn": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Video GraphQL Query- FB, IG and Threads": {
      "main": [
        [
          {
            "node": "Buffer Video Posting - FB, IG and Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Video GraphQL Query- X, YT and LinkedIn": {
      "main": [
        [
          {
            "node": "Buffer Video Posting - X, YT and LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}