# 4 Viral News to AI Avatar Videos

### Description

This fully automated AI Avatar Viral News system researches the latest trending news in your niche or industry, then generates talking head AI clone videos, WITHOUT having to film or edit yourself. It combines ChatGPT, Perplexity, HeyGen, and Blotato to research, create, and auto-post talking head AI avatar videos to every social media platform, every single day.

### Platforms

<table data-full-width="false"><thead><tr><th data-type="checkbox">n8n</th><th data-type="checkbox">Make</th><th data-type="checkbox">Zapier</th></tr></thead><tbody><tr><td>true</td><td>false</td><td>false</td></tr></tbody></table>

### Templates

<https://drive.google.com/drive/folders/14iKWgwKOJIhc9hjgrUWn9zqKWQnUrMsn?usp=sharing>

### Tutorials

{% embed url="<https://youtu.be/0T3FjaxDISI>" %}

### Overview

Here’s how the automation works:

**1. Trigger: Schedule**

* Configured to run once daily at 10am

**2. AI Researcher**

* Call Perplexity to research the top 10 latest news in your industry
* Select news story most likely to go viral
* Compile detailed factual report on selected news story

**3. AI Writer**

* AI writes monologue script, video caption, and short title

**4. Create Avatar Video**

* Call Heygen API (requires paid API plan), specifying your avatar ID and voice ID
* Create avatar video, optionally passing in an image/video background if you have a green screen avatar

**5. Get Video**

* Wait awhile, then fetch completed avatar video

**6. Publish to Social Media via Blotato**

* Pass the video URL directly to the Blotato Publish node - no upload step required
* Connect your Blotato account
* Choose your social accounts
* Either post immediately or schedule for later

### Prerequisites

1. Sign up for Perplexity:

* Setup your API Billing.
* Generate your API Key: <https://www.perplexity.ai/account/api/keys>

2. Sign up for Heygen:

* Create your avatar.
* Paste your Heygen API key.
* Paste your Heygen avatar ID.
* Paste your Heygen voice ID.
* If you want a background image/video behind your avatar: (1) ensure you have an avatar with background removed which requires a higher tier plan; (2) open SETUP HEYGEN node and set parameter 'has\_background\_video' to \`true\`; (3) open SETUP HEYGEN node and replace video URL in parameter 'background\_video\_url'. I only recommend doing this AFTER the full workflow is operational.

3. Sign up for [Blotato.com](https://www.blotato.com/)

* Generate Blotato API Key by going to Settings > API > Generate API Key (paid feature only).
* If you're using n8n, [install the Blotato community node](https://help.blotato.com/api/n8n/n8n-blotato-node)

### Tips & Tricks

While testing: enable only 1 social platform, and deactivate the rest for testing purposes. Update the AI writer prompt to return a 5-second script, rather than 30 seconds, to reduce the processing duration.

Go to Heygen and check that your avatar video is being processed.

After the workflow finishes, check your social media account for the final post.

If successful, then enable another social media node, and continue testing.

If you need help troubleshooting your automation:

* the [API Dashboard](https://my.blotato.com/api-dashboard) is your best friend
* go to my.blotato.com and click the ORANGE BUTTON in the bottom right corner to send me a support message

Other helpful links:

**👉** [**Blotato API Docs**](https://help.blotato.com/api)

✅ [**Troubleshoot Errors**](https://my.blotato.com/api-dashboard)

📷 [**Media Requirements**](https://help.blotato.com/api/media)

### n8n Notes

1. [Install the Blotato community node](https://help.blotato.com/api/n8n/n8n-blotato-node)
2. If a template shows question marks instead of the Blotato logo, install the Blotato node first, then re-import the template.
3. Create a new Credential in n8n. Go to Blotato Settings > API > Copy API Key. Paste the API key in n8n, save, test, then select this credential on Blotato nodes.
4. Connect social accounts on each platform node. Open each Blotato Publish node, select the Blotato credential, then pick your social account.
5. When testing, deactivate all social platform nodes. Activate just 1 to start with. Run the workflow, then Pin data at the Blotato Publish node. This locks inputs for repeat tests. Then, execute 1 platform node from pinned data to validate it works. Activate other social platforms to continue testing.
6. Use the [Blotato API dashboard](https://my.blotato.com/api-dashboard) to review each request, payload, and error message.

### Make Notes

n/a

### Zapier Notes

n/a

### FAQs

#### How do I get captions on my Heygen avatar video?

You'll need to change 2 steps:

1. In the CREATE HEYGEN VIDEO step, there is a setting to enable captions. Make sure it's turned on.
2. In the Blotato Publish step, pass the `video_url_caption` from the GET VIDEO step into the mediaUrls parameter. This will use the video version with captions.

Remember to test your workflow after making this change to make sure everything works as expected.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blotato.com/api/templates/4-viral-news-to-ai-avatar-videos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
