{
  "name": "Ai-driven Instagram reels creation and publishing with GPT, Creatomate and Slack",
  "nodes": [
    {
      "id": "561115db-ba74-44ba-bdf6-cc3b6e822f1a",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        176,
        64
      ]
    },
    {
      "id": "db9d2789-926a-4471-848a-bb4d6836f9bb",
      "name": "Slack Approval Request",
      "type": "n8n-nodes-base.slack",
      "position": [
        1120,
        -16
      ]
    },
    {
      "id": "8e8a395c-0aca-462a-9ce3-cb3936a5475e",
      "name": "Instagram Upload",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        2400,
        -16
      ]
    },
    {
      "id": "8a04580b-f92f-409d-84e3-c6d4691a5f80",
      "name": "Wait (1 min)",
      "type": "n8n-nodes-base.wait",
      "position": [
        2576,
        -16
      ]
    },
    {
      "id": "c262e45a-3110-42ab-938e-62de1266468c",
      "name": "Instagram Publish",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        2768,
        -16
      ]
    },
    {
      "id": "3211df9c-e47d-4d42-87ed-dd77828884c3",
      "name": "Slack Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        2976,
        -16
      ]
    },
    {
      "id": "9e73d617-192d-4fa6-abe8-96959943321f",
      "name": "Main Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -304
      ],
      "parameters": {
        "width": 500,
        "height": 664,
        "content": "# 🚀 Automated Instagram Reels Generator\n\n## How it works\nAI plans a \"viral\" Reel based on trends and generates it using Creatomate.\n\n## Setup steps\n1. Configure Credentials for OpenAI, Creatomate, Goo"
      }
    },
    {
      "id": "7e8bdc97-dcc4-4bc0-a560-f24e7caeaf57",
      "name": "Section: Content Gen",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -304
      ],
      "parameters": {
        "width": 1336,
        "height": 680,
        "content": "## 1. Content Planning & Approval\nGenerates ideas based on trends using AI and requests human approval via Slack."
      }
    },
    {
      "id": "6a4e15ab-0db5-4562-96f4-f17c4699af31",
      "name": "Section: Approval",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -304
      ],
      "parameters": {
        "width": 836,
        "height": 680,
        "content": "## 2. Video Creation\nTransform the accepted plan into a video using Creatomate."
      }
    },
    {
      "id": "19a11961-c63b-41ff-ab75-bc24489b28a1",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        624,
        192
      ]
    },
    {
      "id": "02ba6f13-65e4-4bfe-b1f9-769800ca3d39",
      "name": "Generate Content Plan",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        624,
        -16
      ]
    },
    {
      "id": "9e680267-8ebd-43df-883c-b37b004e2980",
      "name": "Generate Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1952,
        -16
      ]
    },
    {
      "id": "508733c9-e366-4fb7-886d-2e19ab895024",
      "name": "Wait for Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        2160,
        -16
      ]
    },
    {
      "id": "ee1b3225-b288-42bd-aa80-975824c82aec",
      "name": "Parse LLM Output",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        -16
      ]
    },
    {
      "id": "be4a76c5-708e-4a48-b657-c12dd8136b78",
      "name": "Check Approval",
      "type": "n8n-nodes-base.if",
      "position": [
        1296,
        -16
      ]
    },
    {
      "id": "514e7878-0d11-4b7a-bbad-e289917e68a8",
      "name": "Get Past Topics",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        384,
        64
      ]
    },
    {
      "id": "c2b6ad92-1af3-4ab2-975a-28c06411d40d",
      "name": "Save New Topic",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1616,
        -128
      ]
    },
    {
      "id": "c6fdb5d7-6282-4201-b9a8-7a3bba23d788",
      "name": "Section: Approval1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2352,
        -304
      ],
      "parameters": {
        "width": 836,
        "height": 680,
        "content": "## 3. Publishing\nUploads and publishes the reel to Instagram automatically."
      }
    }
  ],
  "connections": {
    "Wait (1 min)": {
      "main": [
        [
          {
            "node": "Instagram Publish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Approval": {
      "main": [
        [
          {
            "node": "Save New Topic",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Content Plan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save New Topic": {
      "main": [
        [
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Past Topics": {
      "main": [
        [
          {
            "node": "Generate Content Plan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Upload": {
      "main": [
        [
          {
            "node": "Wait (1 min)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse LLM Output": {
      "main": [
        [
          {
            "node": "Slack Approval Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Past Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Publish": {
      "main": [
        [
          {
            "node": "Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Content Plan",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Rendering": {
      "main": [
        [
          {
            "node": "Instagram Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Content Plan": {
      "main": [
        [
          {
            "node": "Parse LLM Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Approval Request": {
      "main": [
        [
          {
            "node": "Check Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}