Quick Overview
This workflow runs daily at 9 AM, uses Perplexity to compile vaping industry news, optionally captures article screenshots via Browserless, and generates a HeyGen avatar video from a template. It then polls for completion, sends a Telegram notification, and archives the final video to Google Drive.
How it works
- Runs daily at 9 AM and sets the output mode (portrait/landscape) and background type (screenshot or inline_title).
- If set to inline_title, it asks Perplexity for 4 ready-to-use stories (title, script, subtitle) and maps them into HeyGen template variables.
- If set to screenshot, it asks Perplexity for up to 10 stories, validates article accessibility with Browserless scraping until it collects 4 reachable URLs, and prepares the final story list.
- For the screenshot path, it screenshots each article with Browserless, uploads each image to HeyGen, and combines each story with its uploaded image URL.
- It sends the assembled template variables to HeyGen to generate a template-based video (in test mode) with the configured dimensions.
- It waits briefly, polls HeyGen until the video status is completed, and formats the final video metadata.
- It posts an optional Telegram message with the HeyGen guest video link, downloads the final video file, and uploads it to a Google Drive folder (creating “HeyGen Videos” if needed).
Setup
- Add Perplexity API credentials for the Perplexity HTTP Request nodes.
- Add HeyGen header-auth credentials and replace the HeyGen template ID(s) and test flag as needed for your account and production use.
- Add Browserless query-auth credentials for the Browserless scrape and screenshot requests (required for the screenshot background path).
- Add a Google Drive OAuth2 connection and set the target Drive and folder (or update the folder ID used for uploads).
- Add Telegram bot credentials and update the chat ID if you want the Telegram notification step enabled.