n8nflow.net logo

Automated News Video Generation with HeyGen AI, Apify, and GPT-4.1 Mini

by Jadai kongoloUpdated: Last update 8 days agoSource: n8n.io
Loading workflow viewer...

Getting Started

Overview

This n8n workflow automates the creation of AI-generated news recap videos using HeyGen's avatar technology. The template scrapes daily newsletter content, uses AI to generate engaging scripts, and produces professional video summaries with synthetic avatars and voices—all without manual intervention.

Use Cases

  1. Daily News Digests : Automatically convert Morning Brew or similar newsletters into short-form video content for social media platforms like TikTok, Instagram Reels, or YouTube Shorts.
  2. Content Repurposing : Transform written blog posts, articles, or reports into engaging video summaries for broader audience reach.
  3. Automated Social Media Content : Schedule daily video updates for your audience without recording equipment or on-camera presence.

How It Works

The workflow operates in three main stages:

Stage 1 - Content Acquisition : The Apify Web Scraper node fetches the latest newsletter content from Morning Brew, extracting markdown-formatted text for processing.

Stage 2 - Script Generation : An AI agent powered by GPT-4 analyzes the content and creates a concise 40-60 word script highlighting the top 2-4 stories in an engaging, conversational tone perfect for short-form video.

Stage 3 - Video Production : The script is sent to HeyGen's API, which generates a video featuring your custom AI avatar delivering the content. The workflow includes intelligent polling to check video completion status before proceeding.

Customization Options

  • Avatar & Voice Selection: Use the "Get Avatars" and "Get Voices" nodes to browse available options and customize your video presenter
  • Content Source : Modify the News Scraper node URL to pull from any website or RSS feed
  • Script Style : Adjust the AI prompt in the Script Writer node to change tone, length, or focus areas
  • Video Dimensions : Configure aspect ratios (landscape, portrait, square) for different platforms

Prerequisites

  • HeyGen API key (for video generation)
  • OpenRouter API key (for AI script writing)
  • Apify token (for web scraping)

🛠️ Setup Guide

Author:Jadai Kongolo

Follow these steps to configure your HeyGen + n8n automation workflow:

  1. Go to HeyGen, create your AI avatar and voice.

    • You can import your ElevenLabs voice clone, or let HeyGen clone your voice automatically.
  2. Connect your HeyGen API key to the following nodes:

    • Generate Video
    • Get Video
    • Get Avatars
    • Get Voices
  3. If you want to test out the "Create video with polling" flow:

    • Connect your OpenRouter API key.
    • Connect your Apify token in the node called News.

Make sure all credentials are properly stored and referenced in your environment or credentials store for best security and reuse.


Recommended Node Renaming for Clarity

To improve workflow readability, consider renaming these nodes:

Current NameSuggested NamePurpose
NewsScrape Morning Brew NewsletterFetches newsletter content
Script WriterAI Script GeneratorCreates video script from content
Generate Video1HeyGen Video CreationInitiates video generation
Get Video1Check Video StatusPolls for video completion
30 SecondsWait for Video ProcessingInitial wait period
IfCheck if Video CompleteValidates completion status
WaitRetry Video Status CheckWaits before re-polling