Skip to main content

Create AI news videos with HeyGen avatars and auto-post to social media

Workflow preview

Workflow preview
100%
Create AI news videos with HeyGen avatars and auto-post to social media preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically generate short AI avatar videos based on trending news, then post them across social media platforms—fully automated using n8n, HeyGen, ChatGPT, and Blotato. Tools & Services Used: n8...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.hackernewstool, n8n-nodes-base.wait, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sam Yassine.

Original n8n.io source

1.1 Workflow description

Title
Create AI news videos with HeyGen avatars and auto-post to social media
Workflow name
Create AI news videos with HeyGen avatars and auto-post to social media

Automatically generate short AI avatar videos based on trending news, then post them across social media platforms—fully automated using n8n, HeyGen, ChatGPT, and Blotato.

Tools & Services Used:

  • n8n (Self-hosted required due to Community Nodes)
  • HeyGen (for creating AI avatar videos)
  • OpenAI (for script and caption generation)
  • Blotato (for social media distribution)
  • Hacker News (for sourcing trending articles)

Workflow Overview:

This automation performs the following steps:

  1. Fetches trending news from Hacker News
  2. Generates a short script using ChatGPT
  3. Creates an AI avatar video with HeyGen
  4. Generates platform-specific captions
  5. Posts the content across social media with Blotato

Prerequisites:

Make sure you have active accounts and API keys for:

  • HeyGen
  • OpenAI
  • Blotato

How to Use This Template

Step 1: Import the Template

  1. Open your self-hosted n8n instance
  2. Go to "Workflows" > "Create Workflow"
  3. Click the three dots (…) > "Import from File"
  4. Upload the downloaded JSON file

Step 2: Configure API Keys

Only two nodes need customization:

  • Setup HeyGen: Add your HeyGen API key, avatar ID, and voice ID
  • Prepare for Publish: Add your Blotato API key, account IDs, and page IDs

Optional platforms like Pinterest and Bluesky are already disabled by default.

Finding Your HeyGen Avatar & Voice IDs

To customize the AI avatar video:

Log into your HeyGen Dashboard

Navigate to "Avatars" → choose or create an avatar → copy the Avatar ID

Navigate to "Voices" → select a preferred voice → copy the Voice ID

You can upload a custom avatar or voice if you have access to those features in your plan

This allows you to align the video style with your brand’s tone and personality.

Initial Test Run

For your first run:

  1. Shorten the AI script in the prompt to 5 seconds
  2. Enable only one social media platform
  3. Adjust the wait time to 2 minutes to speed up testing
  4. Verify that the video is created and successfully posted

Once successful, enable more platforms and scale your automation.

Workflow Diagram:

Use Cases

  • Business owners automating daily content
  • Creators scaling short-form video production
  • Freelancers offering automation as a service
  • Anyone building an AI-driven media workflow

Disclaimer

This workflow uses Community Nodes, which only function on self-hosted n8n instances. This workflow may not work on n8n Cloud without some modifications.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Upload to Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - [Instagram] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - [Facebook] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - [Linkedin] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - [Tiktok] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - OpenAI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 7 - Upload to Blotato - Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - [Pinterest] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - [Youtube] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - [Threads] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - [Twitter] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - [Bluesky] Publish via Blotato

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 14 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 15 - Fetch HN Article

Type / Role
n8n-nodes-base.hackerNewsTool - hackerNewsTool
Config choices
Version 1

Block 16 - Fetch HN Front Page

Type / Role
n8n-nodes-base.hackerNewsTool - hackerNewsTool
Config choices
Version 1

Block 17 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 18 - Write Script

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 19 - Setup Heygen

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Get Avatar Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Prepare for Publish

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create AI news videos with HeyGen avatars and auto-post to social media
Complexity advanced
Nodes 29
Categories Content Creation, Multimodal AI
Author Sam Yassine
Published 13 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3538/3538.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create AI news videos with HeyGen avatars and auto-post to social media do?

Automatically generate short AI avatar videos based on trending news, then post them across social media platforms—fully automated using n8n, HeyGen, ChatGPT, and Blotato. Tools & Services Used: n8...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.