{
  "id": "5n06RT6BzdoMIPZP",
  "name": "Latest Perplexity News \u2192 AI Images \u2192 HeyGen Avatar Video - Industry News",
  "tags": [
    {
      "id": "PRYQ5VOb2aGebTdZ",
      "name": "heygen",
      "createdAt": "2025-12-18T04:37:35.340Z",
      "updatedAt": "2025-12-18T04:37:35.340Z"
    },
    {
      "id": "MrJzmWXTSrNwOxDJ",
      "name": "perplexity-ai",
      "createdAt": "2025-10-20T21:11:14.916Z",
      "updatedAt": "2025-10-20T21:11:29.874Z"
    },
    {
      "id": "cxKMySQYM3Tgv71J",
      "name": "video-generation",
      "createdAt": "2025-12-18T04:37:53.603Z",
      "updatedAt": "2025-12-18T04:37:53.603Z"
    },
    {
      "id": "dsZn5xfwDYIh0gJz",
      "name": "vaping",
      "createdAt": "2025-11-21T07:57:18.780Z",
      "updatedAt": "2025-11-21T07:57:18.780Z"
    }
  ],
  "nodes": [
    {
      "id": "b617c64d-e1b3-44b6-83f1-912d1f526678",
      "name": "Parse News Stories",
      "type": "n8n-nodes-base.code",
      "position": [
        -2768,
        1312
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9d892dda-69e8-49b0-a960-cadec5bac112",
      "name": "Build HeyGen Template Variables",
      "type": "n8n-nodes-base.code",
      "position": [
        -1504,
        816
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8a60d087-a96a-4a60-8add-5ebe5bd0942e",
      "name": "Format Final Video Data",
      "type": "n8n-nodes-base.code",
      "notes": "Prepares final video information",
      "position": [
        -384,
        688
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2ed80ac4-13e2-4f40-b664-3ee6bd0128b3",
      "name": "Send Telegram Notification",
      "type": "n8n-nodes-base.telegram",
      "notes": "Optional: Send video to Telegram",
      "onError": "continueRegularOutput",
      "position": [
        -160,
        592
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a43b6f68-96d7-4846-ae35-d048c7d56b20",
      "name": "Upload Video to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        512,
        688
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "8dfc1002-4e58-4d03-9a28-808eb41c4206",
      "name": "Merge Story Data with Image URL",
      "type": "n8n-nodes-base.code",
      "position": [
        -1056,
        1072
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d2af775f-41c9-4286-a60e-56cfc28ad1cf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4336,
        448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ba695192-3463-42bb-afbe-1795de7f058e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3568,
        1168
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8bd5353d-4345-4dd2-addc-2c5c13879bb2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3712,
        752
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "625fa1ff-5794-42dc-a41a-c723084b73e7",
      "name": "Daily 9AM Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "Runs daily at 9 AM",
      "position": [
        -3792,
        976
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2575838a-6ffb-43d5-9907-1c2b7fe4d905",
      "name": "Configure Mode & Background",
      "type": "n8n-nodes-base.set",
      "position": [
        -3568,
        976
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "52487faf-ad89-4271-bd4e-1d0f9d62fe56",
      "name": "Route by Background Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -3376,
        976
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "2c1e7d53-66af-428e-96a0-c5aa7fea2d9e",
      "name": "Perplexity: Fetch 4 Structured Stories",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2544,
        400
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "b53b61a0-f7db-4329-a808-75efcf4fc4e9",
      "name": "Parse Stories \u2192 Template Variables",
      "type": "n8n-nodes-base.code",
      "position": [
        -2272,
        400
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5707a0cd-7921-4478-9227-d62eb7f9ab3a",
      "name": "Generate Video (Inline Title)",
      "type": "n8n-nodes-base.httpRequest",
      "maxTries": 2,
      "position": [
        -1968,
        400
      ],
      "parameters": {},
      "retryOnFail": false,
      "typeVersion": 4
    },
    {
      "id": "b135feb2-f82d-4be7-b0b5-8c719ce0c51c",
      "name": "Perplexity: Fetch Top 10 Stories",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3040,
        1312
      ],
      "parameters": {},
      "typeVersion": 4
    },
    {
      "id": "f1a12a6d-ed92-456b-b2f3-7ddaee852d96",
      "name": "Validate Stories Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -2544,
        1440
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "6b374737-73c6-41f7-a640-c46176f947e7",
      "name": "Check Valid Story Count",
      "type": "n8n-nodes-base.code",
      "position": [
        -2336,
        1632
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a6f08ab3-4640-4274-b153-4f83d0c3e10c",
      "name": "Need More Valid Stories?",
      "type": "n8n-nodes-base.if",
      "position": [
        -2128,
        1632
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "67a80a51-fd07-4b8d-a294-91968a8ec5bf",
      "name": "Scrape Article (Validity Check)",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -1888,
        1616
      ],
      "parameters": {},
      "retryOnFail": false,
      "typeVersion": 4.3
    },
    {
      "id": "8a99ac12-df00-434a-9105-bdb35b1b4349",
      "name": "Is Article Accessible (200)?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1648,
        1616
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "8b57a77b-6ded-4123-89bf-04d23399dac1",
      "name": "Add to Valid Stories",
      "type": "n8n-nodes-base.code",
      "position": [
        -1392,
        1696
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5466a5ec-a487-4711-834d-025085f6ba2a",
      "name": "Prepare Final Valid Stories",
      "type": "n8n-nodes-base.code",
      "position": [
        -2144,
        1232
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6a9138c4-f04a-4f03-88ec-58a4688d0f4c",
      "name": "Process Stories for Screenshots",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1728,
        992
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5dac2b9b-f6e2-407f-b202-29be32754f7a",
      "name": "Browserless: Take Article Screenshot",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1504,
        1056
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "84cb83c6-276f-46ce-96e3-f9444fb1ff78",
      "name": "Upload Screenshot to HeyGen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1264,
        1056
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "a3bf8336-41f1-439f-9a56-fffb6e52c0e1",
      "name": "Generate Video (Screenshot)",
      "type": "n8n-nodes-base.httpRequest",
      "maxTries": 2,
      "position": [
        -1280,
        816
      ],
      "parameters": {},
      "retryOnFail": false,
      "typeVersion": 4
    },
    {
      "id": "2262c8f8-d2f5-4ffd-88c6-102104700024",
      "name": "Wait 45s \u2013 Initial Processing",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1056,
        816
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "de609d4c-736b-49e9-b8d9-5f059101a023",
      "name": "Poll Video Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -832,
        736
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4
    },
    {
      "id": "e4e8bb79-0d2d-45f4-883a-a4ca67ffa4c1",
      "name": "Is Video Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        -608,
        736
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "d50400ad-35b0-40c3-990c-53d9c4ec2d12",
      "name": "Wait 30s Before Retry",
      "type": "n8n-nodes-base.wait",
      "position": [
        -384,
        912
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0398967b-71ea-4c50-ad03-56d3296e8532",
      "name": "Search \"HeyGen Videos\" Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -160,
        784
      ],
      "parameters": {},
      "typeVersion": 3,
      "alwaysOutputData": true
    },
    {
      "id": "ef7aa682-219d-4a1a-909b-faf8520aa9e3",
      "name": "Does Folder Exist?",
      "type": "n8n-nodes-base.if",
      "position": [
        64,
        784
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "cc544c63-7719-4e4a-bef9-11b7997a7054",
      "name": "Download Final Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        288,
        688
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "7d0ae3fc-8e1a-4f46-8760-720a5e72ad86",
      "name": "Create \"HeyGen Videos\" Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        288,
        880
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "03d0939b-7f45-48ea-8b70-0c9b8679f975",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4336,
        736
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "34b23266-43a1-4432-9208-87ab0fcb9302",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        1136
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9b129b9f-3ea1-4038-9e50-de3c9e732246",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2144,
        800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "61c76651-5943-4f30-bc98-49f7bae3206a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2416,
        176
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cadaec14-e652-430c-b27e-e7c6bbb46818",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "41c318a7-91f5-4c2f-965f-1beab344bf41",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "binaryMode": "separate",
    "callerPolicy": "workflowsFromSameOwner",
    "timeSavedMode": "fixed",
    "availableInMCP": true,
    "executionOrder": "v1"
  },
  "versionId": "20f5997c-1831-40a6-8668-67c77ecbce7d",
  "nodeGroups": [],
  "connections": {
    "Daily 9AM Trigger": {
      "main": [
        [
          {
            "node": "Configure Mode & Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Poll Video Status": {
      "main": [
        [
          {
            "node": "Is Video Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does Folder Exist?": {
      "main": [
        [
          {
            "node": "Download Final Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create \"HeyGen Videos\" Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse News Stories": {
      "main": [
        [
          {
            "node": "Validate Stories Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Video Completed?": {
      "main": [
        [
          {
            "node": "Format Final Video Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 30s Before Retry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to Valid Stories": {
      "main": [
        [
          {
            "node": "Validate Stories Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Final Video": {
      "main": [
        [
          {
            "node": "Upload Video to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Stories Loop": {
      "main": [
        [
          {
            "node": "Prepare Final Valid Stories",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check Valid Story Count",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30s Before Retry": {
      "main": [
        [
          {
            "node": "Wait 45s \u2013 Initial Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Valid Story Count": {
      "main": [
        [
          {
            "node": "Need More Valid Stories?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Final Video Data": {
      "main": [
        [
          {
            "node": "Search \"HeyGen Videos\" Folder",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Telegram Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Need More Valid Stories?": {
      "main": [
        [
          {
            "node": "Scrape Article (Validity Check)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Validate Stories Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Background Type": {
      "main": [
        [
          {
            "node": "Perplexity: Fetch 4 Structured Stories",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Perplexity: Fetch Top 10 Stories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Mode & Background": {
      "main": [
        [
          {
            "node": "Route by Background Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video (Screenshot)": {
      "main": [
        [
          {
            "node": "Wait 45s \u2013 Initial Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Final Valid Stories": {
      "main": [
        [
          {
            "node": "Process Stories for Screenshots",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Screenshot to HeyGen": {
      "main": [
        [
          {
            "node": "Merge Story Data with Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Article Accessible (200)?": {
      "main": [
        [
          {
            "node": "Add to Valid Stories",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Validate Stories Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video (Inline Title)": {
      "main": [
        [
          {
            "node": "Poll Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search \"HeyGen Videos\" Folder": {
      "main": [
        [
          {
            "node": "Does Folder Exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build HeyGen Template Variables": {
      "main": [
        [
          {
            "node": "Generate Video (Screenshot)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Story Data with Image URL": {
      "main": [
        [
          {
            "node": "Process Stories for Screenshots",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Stories for Screenshots": {
      "main": [
        [
          {
            "node": "Build HeyGen Template Variables",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Browserless: Take Article Screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Article (Validity Check)": {
      "main": [
        [
          {
            "node": "Is Article Accessible (200)?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 45s \u2013 Initial Processing": {
      "main": [
        [
          {
            "node": "Poll Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity: Fetch Top 10 Stories": {
      "main": [
        [
          {
            "node": "Parse News Stories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Browserless: Take Article Screenshot": {
      "main": [
        [
          {
            "node": "Upload Screenshot to HeyGen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Stories \u2192 Template Variables": {
      "main": [
        [
          {
            "node": "Generate Video (Inline Title)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity: Fetch 4 Structured Stories": {
      "main": [
        [
          {
            "node": "Parse Stories \u2192 Template Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}