{
  "name": "Clone viral TikToks with AI avatars & auto-post to 9 platforms using Perplexity & Blotato",
  "nodes": [
    {
      "id": "8ad59e84-639c-4a44-afdc-611d15f32d7f",
      "name": "Assign Social Media IDs",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        920
      ]
    },
    {
      "id": "2e243d6a-81ef-487f-8852-bd48cfaf5ad8",
      "name": "Upload Video to Blotato",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        920
      ]
    },
    {
      "id": "f84ff66b-9270-494f-80e7-29ad2fd51b4d",
      "name": "INSTAGRAM",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        420,
        680
      ]
    },
    {
      "id": "3776e592-07be-47e2-89a8-f8d338f0c25e",
      "name": "YOUTUBE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        680
      ]
    },
    {
      "id": "c590765f-deb4-4221-ada7-37c700656ff1",
      "name": "TIKTOK",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        680
      ]
    },
    {
      "id": "9a9dc42a-20b6-427d-a7d9-08f4ab924e9e",
      "name": "FACEBOOK",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        420,
        920
      ]
    },
    {
      "id": "987a372a-d27e-4a3e-a8b7-b2085463c05a",
      "name": "THREADS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        920
      ]
    },
    {
      "id": "e9d66412-e27d-47f0-9d17-5ec36fe81859",
      "name": "TWETTER",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        920
      ]
    },
    {
      "id": "9e7e0fa8-3f0e-4111-9d78-96123ccec1c8",
      "name": "LINKEDIN",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        420,
        1160
      ]
    },
    {
      "id": "3368ee92-d40f-482d-8174-53bfd188d2c8",
      "name": "BLUESKY",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        1160
      ]
    },
    {
      "id": "fea89732-09cc-420d-b2e0-f0f4160d27cb",
      "name": "PINTEREST",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        1160
      ]
    },
    {
      "id": "d1400430-0340-4194-b5eb-bd3ae150d577",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -380
      ],
      "parameters": {
        "width": 2460,
        "height": 300,
        "content": "# 🟫 STEP 1 — Clone a viral TikTok video"
      }
    },
    {
      "id": "91bf1e19-3e2c-44b3-a7d0-8bea3f80eb04",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -20
      ],
      "parameters": {
        "width": 1920,
        "height": 320,
        "content": "# 🟦 STEP 2 — Suggest new content idea\n"
      }
    },
    {
      "id": "a831f320-0b5f-4853-8b9c-0ddeaaf84083",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        340
      ],
      "parameters": {
        "width": 1920,
        "height": 300,
        "content": "# 🟪 STEP 3 — Create the new video with your avatar\n\n"
      }
    },
    {
      "id": "3bb22fc4-b5b4-4323-9039-5b6cf0458084",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        660
      ],
      "parameters": {
        "width": 1920,
        "height": 680,
        "content": "# 🟥 STEP 4 — Publish to 9 platforms\n"
      }
    },
    {
      "id": "6ad81fc8-d79d-44d1-bf17-cdea14e915d1",
      "name": "Trigger: Get TikTok URL via Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -620,
        -280
      ]
    },
    {
      "id": "4047a3b1-1fb9-40da-b127-f2e7432a649e",
      "name": "Download TikTok Video (RapidAPI)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -400,
        -280
      ]
    },
    {
      "id": "6ec78da8-f197-42c0-b631-055bd7bf1eef",
      "name": "Extract Video Thumbnail",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -180,
        -280
      ]
    },
    {
      "id": "f17f39cd-d9f4-4b1b-85de-ade8a5492542",
      "name": "Upload Thumbnail to Cloudinary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        40,
        -280
      ]
    },
    {
      "id": "160a5960-1312-4c5f-b066-f1ecc30202e6",
      "name": "Analyze Thumbnail (GPT-4o Vision)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        260,
        -280
      ]
    },
    {
      "id": "14a42907-4bc7-4c4a-9ced-a2a23bb88343",
      "name": "Extract Overlay Text (GPT-4o)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        480,
        -280
      ]
    },
    {
      "id": "2c183a03-3bb5-45b8-8bc9-5981f0bc30b5",
      "name": "Download TikTok Audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        -280
      ]
    },
    {
      "id": "c6614b8c-6415-4094-a800-302ae8711d14",
      "name": "Transcribe Audio to Script (GPT)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1060,
        -280
      ]
    },
    {
      "id": "02ddecfe-5a85-4247-9a33-fc95c42775a0",
      "name": "Generate Unique Template ID",
      "type": "n8n-nodes-base.code",
      "position": [
        1280,
        -280
      ]
    },
    {
      "id": "e7e17a73-c75d-413d-842b-aecd0da25eb7",
      "name": "Save Original Video to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1500,
        -280
      ]
    },
    {
      "id": "e6647507-595e-4f13-9c06-818f90b7759a",
      "name": "Suggest Similar Idea (Perplexity)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -620,
        60
      ]
    },
    {
      "id": "a6c047ca-824e-4e33-895f-3be02e509fc6",
      "name": "Clean Perplexity Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -380,
        60
      ]
    },
    {
      "id": "3b5e242f-b10c-4c8e-be2a-acbc95a92658",
      "name": "Rewrite Script, Caption, Overlay (GPT-4o)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -60,
        60
      ]
    },
    {
      "id": "befec852-bca2-4c54-9c2c-49a8c082e2b4",
      "name": "Split Rewritten Content into Sections",
      "type": "n8n-nodes-base.code",
      "position": [
        420,
        60
      ]
    },
    {
      "id": "49828685-cf54-45ac-96d9-03697215f80e",
      "name": "Generate New Video ID",
      "type": "n8n-nodes-base.code",
      "position": [
        640,
        60
      ]
    },
    {
      "id": "c9f02616-a944-471b-9c4d-7fa381d684b9",
      "name": "Save Rewritten Video to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        60
      ]
    },
    {
      "id": "dbd21507-ecdf-49c7-b449-e4a6f9fcca86",
      "name": "Fetch Available Avatars",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -620,
        440
      ]
    },
    {
      "id": "988a3283-a57d-4c81-b582-bb59e715208b",
      "name": "Generate Video with Avatar",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -380,
        440
      ]
    },
    {
      "id": "99f95617-c27e-4952-9da6-93bb818d374c",
      "name": "Wait for Avatar Rendering (3 min)",
      "type": "n8n-nodes-base.wait",
      "position": [
        -180,
        440
      ]
    },
    {
      "id": "78dd3c62-a184-4ec0-9153-002a0ac3209f",
      "name": "Fetch Avatar Video URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        20,
        440
      ]
    },
    {
      "id": "8c6af2a2-c052-40b3-825a-463d7c17b060",
      "name": "Add Overlay Text with JSON2Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        440
      ]
    },
    {
      "id": "cf55a393-1e63-46f7-b57c-07508141554f",
      "name": "Wait for Caption Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        420,
        440
      ]
    },
    {
      "id": "4a939455-0c36-49cc-9279-36f2cd8ebcec",
      "name": "Fetch Final Video from JSON2Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        620,
        440
      ]
    },
    {
      "id": "e64423b9-6e5e-4ab8-b9c1-1bb791fcfa06",
      "name": "Update Final Video URL in Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        440
      ]
    },
    {
      "id": "d72dc835-b954-4dbd-a210-af7fc6ce058e",
      "name": "Send Video URL via Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -600,
        920
      ]
    },
    {
      "id": "33552176-18ab-44ec-9bb6-174e9f9c777d",
      "name": "Send Final Video Preview",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -400,
        920
      ]
    }
  ],
  "connections": {
    "Download TikTok Audio": {
      "main": [
        [
          {
            "node": "Transcribe Audio to Script (GPT)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate New Video ID": {
      "main": [
        [
          {
            "node": "Save Rewritten Video to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Avatar Video URL": {
      "main": [
        [
          {
            "node": "Add Overlay Text with JSON2Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign Social Media IDs": {
      "main": [
        [
          {
            "node": "Upload Video to Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video Thumbnail": {
      "main": [
        [
          {
            "node": "Upload Thumbnail to Cloudinary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Available Avatars": {
      "main": [
        [
          {
            "node": "Generate Video with Avatar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to Blotato": {
      "main": [
        [
          {
            "node": "INSTAGRAM",
            "type": "main",
            "index": 0
          },
          {
            "node": "YOUTUBE",
            "type": "main",
            "index": 0
          },
          {
            "node": "TIKTOK",
            "type": "main",
            "index": 0
          },
          {
            "node": "FACEBOOK",
            "type": "main",
            "index": 0
          },
          {
            "node": "THREADS",
            "type": "main",
            "index": 0
          },
          {
            "node": "TWETTER",
            "type": "main",
            "index": 0
          },
          {
            "node": "LINKEDIN",
            "type": "main",
            "index": 0
          },
          {
            "node": "BLUESKY",
            "type": "main",
            "index": 0
          },
          {
            "node": "PINTEREST",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Final Video Preview": {
      "main": [
        [
          {
            "node": "Assign Social Media IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Perplexity Response": {
      "main": [
        [
          {
            "node": "Rewrite Script, Caption, Overlay (GPT-4o)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video with Avatar": {
      "main": [
        [
          {
            "node": "Wait for Avatar Rendering (3 min)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Caption Rendering": {
      "main": [
        [
          {
            "node": "Fetch Final Video from JSON2Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Unique Template ID": {
      "main": [
        [
          {
            "node": "Save Original Video to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Video URL via Telegram": {
      "main": [
        [
          {
            "node": "Send Final Video Preview",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Overlay Text (GPT-4o)": {
      "main": [
        [
          {
            "node": "Download TikTok Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Thumbnail to Cloudinary": {
      "main": [
        [
          {
            "node": "Analyze Thumbnail (GPT-4o Vision)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Final Video URL in Sheet": {
      "main": [
        [
          {
            "node": "Send Video URL via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Overlay Text with JSON2Video": {
      "main": [
        [
          {
            "node": "Wait for Caption Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download TikTok Video (RapidAPI)": {
      "main": [
        [
          {
            "node": "Extract Video Thumbnail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Audio to Script (GPT)": {
      "main": [
        [
          {
            "node": "Generate Unique Template ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Thumbnail (GPT-4o Vision)": {
      "main": [
        [
          {
            "node": "Extract Overlay Text (GPT-4o)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Final Video from JSON2Video": {
      "main": [
        [
          {
            "node": "Update Final Video URL in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Suggest Similar Idea (Perplexity)": {
      "main": [
        [
          {
            "node": "Clean Perplexity Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Avatar Rendering (3 min)": {
      "main": [
        [
          {
            "node": "Fetch Avatar Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Original Video to Google Sheets": {
      "main": [
        [
          {
            "node": "Suggest Similar Idea (Perplexity)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: Get TikTok URL via Telegram": {
      "main": [
        [
          {
            "node": "Download TikTok Video (RapidAPI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Rewritten Video to Google Sheets": {
      "main": [
        [
          {
            "node": "Fetch Available Avatars",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Rewritten Content into Sections": {
      "main": [
        [
          {
            "node": "Generate New Video ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Script, Caption, Overlay (GPT-4o)": {
      "main": [
        [
          {
            "node": "Split Rewritten Content into Sections",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}