🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Perplexity + HeyGen: daily AI news videos, posted

Lisa Granqvist Partner Workflow Automation Expert

Posting “daily” content sounds easy until you’re the one hunting for topics, writing scripts, recording takes, fixing edits, and still missing the time you promised your audience.

Marketing managers trying to stay consistent feel it first. A small business owner running everything also feels it. Same with a content lead at an agency. This HeyGen video automation takes “we should post every day” and turns it into an actual habit, not a stress project.

This workflow researches what’s trending with Perplexity, writes a script with AI, generates a talking-head avatar video in HeyGen, then publishes it across your social channels using Blotato. You’ll see how it works, what you need, and where teams usually get stuck.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Perplexity + HeyGen: daily AI news videos, posted

The Problem: Daily video content breaks down fast

Daily video is rarely “hard” because of one big task. It’s hard because of a dozen small ones that keep moving. Today you can’t find a strong topic. Tomorrow you have a topic, but your script drags. Then you lose another hour chasing a decent hook, captions, and a thumbnail-ish first frame. Add distribution across multiple platforms and you’re suddenly doing repetitive production work instead of marketing work. Honestly, most teams don’t fail from lack of ideas. They fail from friction.

It compounds over a week. Here’s where it breaks down.

  • Research turns into a tab explosion, and you still don’t know what will perform.
  • Script writing gets delayed, so “we’ll record later” becomes “not today.”
  • Uploading one-by-one to TikTok, LinkedIn, Instagram, YouTube, and more eats about 1–2 hours per video day.
  • Inconsistent posting hurts reach, and you can’t diagnose what’s working without a repeatable process.

The Solution: Perplexity-to-HeyGen news videos, auto-published

This n8n workflow runs on a daily schedule (set for 10am by default). It starts by asking Perplexity to research the top trending stories in your niche, then it compiles a factual lead report and picks the story most likely to go viral. Next, an AI writing step drafts a short title, a caption, and a talking-head monologue you can post as-is or lightly edit. Then HeyGen turns that script into a finished avatar video using your selected avatar ID and voice ID. After a short wait for rendering, the workflow checks the render status, grabs the completed video, uploads it to Blotato, and publishes to your chosen social platforms automatically.

The workflow begins with scheduled research, then moves into script generation with an OpenAI chat model. From there it creates one HeyGen video job (with or without a background), waits for the render, and pushes the final asset to Blotato for posting across channels in parallel.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you publish one short news video per day to 7 platforms. Even if uploading, captions, and checks take only about 10 minutes per platform, that’s around 70 minutes a day just posting. Add about 40 minutes to find a topic and draft a script, and you’re near 2 hours. With this workflow, you spend maybe 10 minutes reviewing the generated script (optional), then wait while HeyGen renders and Blotato posts. You get your time back, and the calendar stops slipping.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Perplexity for trending research and reports
  • HeyGen to generate the avatar videos
  • Blotato API key (get it from Settings > API > Generate API Key)

Skill level: Intermediate. You’ll paste a few API keys, set avatar/voice IDs, and do basic testing (start with one platform).

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A daily schedule kicks it off. The workflow runs once per day (10am in the template), so you’re not relying on someone to remember.

Perplexity researches and narrows the topic. It fetches the top stories in your niche, then compiles a lead report for the most “viral-friendly” one, which means you start from something timely instead of brainstorming from scratch.

AI writes the post assets. Using an OpenAI chat model, it generates a monologue script plus supporting text (caption and short title). This is also where your brand voice should live, so you’re not rewriting everything later.

HeyGen renders, then Blotato publishes. The workflow creates a video job with your avatar and voice, waits, checks render status until it’s complete, uploads the finished file to Blotato, and posts to the platforms you’ve enabled.

You can easily modify the Perplexity research prompt to target a different niche, then adjust the AI writer prompt to fit your format (shorts, longer explainers, founder POV) based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

Set the workflow to run on a fixed schedule so your news video pipeline launches automatically.

  1. Add or open Scheduled Launch.
  2. In RuleInterval, set Trigger at Hour to 10 to match the existing schedule.
  3. Confirm Scheduled Launch connects to Fetch Top Stories.

Step 2: Connect Perplexity for News Research

These nodes gather trending topics and compile a detailed report for the AI script.

  1. Open Fetch Top Stories and set Model to sonar-pro.
  2. Set MessagesContent to the provided prompt about trending news in real estate.
  3. Credential Required: Connect your perplexityApi credentials in Fetch Top Stories.
  4. Open Compile Lead Report and confirm the message content includes the expression {{ $('Fetch Top Stories').item.json.message }}.
  5. Credential Required: Connect your perplexityApi credentials in Compile Lead Report.
Tip: Keep simplify enabled in both Perplexity nodes so downstream nodes can reference item.json.message cleanly.

Step 3: Set Up Draft Video Script (AI Processing)

This step uses an LLM to generate the script, caption, and title in structured JSON.

  1. Open Draft Video Script and set Model to gpt-5.
  2. Ensure the system message includes {{ $('Compile Lead Report').item.json.message }} so the script is grounded in the lead report.
  3. Enable JSON Output and keep Simplify set to false.
  4. Credential Required: Connect your openAiApi credentials in Draft Video Script.
⚠️ Common Pitfall: If Draft Video Script does not output valid JSON, downstream expressions like choices[0].message.content.script will fail.

Step 4: Configure Heygen Rendering and Video Job Flow

These nodes build the Heygen payload, choose the correct branch, and poll for completion.

  1. Open Configure Heygen and set JSON Output to the provided raw JSON, filling in heygen_api_key, avatar_id, and voice_id.
  2. Set has_background_video to true or false depending on whether you want a backdrop, and confirm background_video_url is a valid URL.
  3. In Background Video Check, confirm the condition evaluates {{ $('Configure Heygen').item.json.has_background_video }}.
  4. In Generate Avatar With Backdrop, set URL to https://api.heygen.com/v2/video/generate and include header X-Api-Key with {{ $('Configure Heygen').item.json.heygen_api_key }}.
  5. In Generate Avatar No Backdrop, use the same URL and header and keep the JSON body with {{ $('Draft Video Script').item.json.choices[0].message.content.script.toJsonString() }}.
  6. Connect both avatar nodes to Combine Video Jobs, then to Pause for Render, and then to Retrieve Render Status.
  7. In Retrieve Render Status, set URL to https://api.heygen.com/v1/video_status.get and query video_id with {{ $('Combine Video Jobs').item.json.data.video_id }}.
  8. In Check Render Complete, verify the condition equals completed against {{ $('Retrieve Render Status').item.json.data.status }}.
Tip: The branch logic means Background Video Check routes to either Generate Avatar With Backdrop or Generate Avatar No Backdrop based on your configuration.

Step 4: Configure Output Actions with Blotato

Upload the rendered video, then publish to multiple social platforms in parallel.

  1. Open Upload Media Asset and set Media URL to {{ $('Retrieve Render Status').item.json.data.video_url }}.
  2. Credential Required: Connect your blotatoApi credentials in Upload Media Asset.
  3. Upload Media Asset outputs to Post TikTok via Blotato, Post LinkedIn via Blotato, Post Facebook via Blotato, Post Instagram via Blotato, Post Twitter via Blotato, Post YouTube via Blotato, Post Threads via Blotato, Post Bluesky via Blotato, and Post Pinterest via Blotato in parallel.
  4. Set each Blotato post node to use {{ $('Upload Media Asset').item.json.url }} for Post Content Media URLs.
  5. Set captions/titles from Draft Video Script, such as {{ $('Draft Video Script').item.json.choices[0].message.content.caption }} or {{ $('Draft Video Script').item.json.choices[0].message.content.title }}.
  6. Credential Required: Connect your blotatoApi credentials to all Blotato publishing nodes (10 nodes handle the platform posts).
⚠️ Common Pitfall: Don’t forget to select the correct Blotato Account ID and any required platform-specific IDs (e.g., Facebook Page ID, Pinterest Board ID).

Step 5: Add Error Handling

Publishing nodes are configured to continue on error and funnel failures into an aggregation point.

  1. Confirm each Blotato post node has On Error set to continue and routes its error output to Aggregate Error Results.
  2. Open Aggregate Error Results and set Number of Inputs to 9 to match all platform outputs.
  3. If you want alerts, add a notification node after Aggregate Error Results to report failures.

Step 6: Test and Activate Your Workflow

Run a manual execution to confirm the full pipeline, then enable the schedule.

  1. Click Execute Workflow and watch Scheduled Launch trigger Fetch Top Stories and Compile Lead Report.
  2. Verify Draft Video Script outputs JSON with script, caption, and title.
  3. Ensure Check Render Complete loops back to Pause for Render until the status is completed.
  4. Confirm Upload Media Asset returns a media URL and that posts run in parallel from Upload Media Asset.
  5. When the test succeeds, toggle the workflow to Active to enable scheduled runs.
Tip: If the render never completes, increase the Pause for Render wait Amount beyond 1 minute to reduce polling frequency.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Perplexity credentials can expire or billing can run dry. If things break, check your Perplexity API billing status and key permissions first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • HeyGen avatar settings are easy to miscopy, especially avatar ID vs. group avatar ID. If renders never complete, confirm the IDs and your HeyGen API plan supports the endpoints you’re calling.

Frequently Asked Questions

How long does it take to set up this HeyGen video automation automation?

About 45 minutes if your API keys and avatar IDs are ready.

Do I need coding skills to automate HeyGen video automation?

No. You’ll connect accounts, paste keys, and adjust a couple of prompts.

Is n8n free to use for this HeyGen video automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Perplexity, OpenAI, HeyGen, and Blotato API costs (varies by usage, but budget something small per video while testing).

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this HeyGen video automation workflow for a different niche (like real estate or SaaS)?

Yes, and it’s mostly prompt changes. Update the Perplexity research prompt in the “Fetch Top Stories” and “Compile Lead Report” steps to match your niche, then tune the “Draft Video Script” prompt to your tone and length. Many teams also adjust the script format (hook first, then 3 bullets) and swap the caption template to match each platform’s style.

Why is my HeyGen connection failing in this workflow?

Most of the time it’s a plan or credential issue. Confirm your HeyGen API key is for the API plan (not just the web plan), then double-check your avatar ID and voice ID are correct. If you enabled background video, the “has_background_video” setting and URL need to be valid or HeyGen can reject the job. Also, long scripts can push render times out, so you might think it failed when it’s still processing.

How many videos can this HeyGen video automation automation handle?

It depends more on your HeyGen and Blotato limits than n8n. On n8n Cloud Starter, most teams are fine for a daily workflow; if you self-host, you’re mainly constrained by your server and how many parallel runs you trigger. Practically, this template is built for one finished video per run, once per day, which is a safe place to start. If you want 5–10 per day, you’ll likely add queueing and stricter rate-limit handling.

Is this HeyGen video automation automation better than using Zapier or Make?

Often, yes. This workflow has branching (background video vs. no backdrop), polling for render completion, and a fan-out to many social posts, and that can get clunky or expensive in Zapier. n8n also lets you self-host, which is handy when you’re running daily content at scale. On the flip side, Zapier can feel simpler for quick two-app zaps with minimal logic. If you want someone to sanity-check your setup, Talk to an automation expert.

Once this is running, “daily videos” stops being a heroic effort and becomes background operations. The workflow handles the repeatable parts so you can focus on the angle, the offer, and the next campaign.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal