n8nflow.net logo

Convert RSS News to AI Avatar Videos with Heygen & GPT-4o

by David Olusolaβ€’Updated: Last update 3 months agoβ€’Source: n8n.io
Loading workflow viewer...

🎬 Automated News-to-Video Workflow (n8n + Heygen + GPT-4o)

πŸ“„ Overview:

This n8n workflow turns news from an RSS feed (e.g., CNN) into short, AI-generated avatar videos using Heygen. It:

  1. Fetches news from an RSS feed.
  2. Logs headlines to Google Sheets.
  3. Uses GPT-4o or Google Gemini to generate a 30–60 sec script.
  4. Sends the script to Heygen to create an avatar video.
  5. Monitors and retrieves the final video.
  6. Logs video metadata (title, link, etc.) to Google Sheets.

🎯 Ideal for content creators, marketers, or media pages repurposing written news into video content at scale.


βš™οΈ Setup Guide (No Sensitive Info)

πŸ”‘ 1. Heygen API

  • Paid Heygen plan required.

  • Add your API key in the Setup Heygen node:

    "heygen_api_key": "your_key_here"
    
  • Optional: Set "avatar_id" and "voice_id" as desired.

πŸ’‘ 2. AI Model: GPT-4o or Gemini

  • GPT-4o : Use OpenAI’s node or HTTP request with your API key.
  • Gemini : Link your Google Cloud project and connect the Gemini node using OAuth2 credentials.

πŸ“₯ 3. RSS Feed

  • Add an RSS node (e.g., CNN).
  • Extract title, link, and content.

πŸ“Š 4. Google Sheets + Drive

  • Connect via OAuth2:

    • "Google Sheets account 2"
    • "Google Drive account 2"
  • Replace sheet IDs in:

    • Log news to sheets
    • Log video URL and title to sheets

πŸ“Ή 5. Create Video (Heygen)

  • Send a POST request to Heygen's API using the generated script, avatar, and voice ID.

⏳ 6. Monitor Status

  • Poll the status endpoint until video is ready.
  • Capture the download link.

🧾 7. Log Final Output

  • Save video metadata to a Google Sheet for publishing or archiving.

Set up video: Link in Workflow