# Automate AI news videos to social media with OpenAI and HeyGen: n8n workflow

> Started by an event in a connected app, and works across Google Drive, Google Sheets and RSS. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automate-ai-news-videos-to-social-media-with-openai-and-heyg (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Automate AI news videos to social media with OpenAI and HeyGen

Started by an event in a connected app, and works across Google Drive, Google Sheets and RSS. It hands the judgement calls to OpenAI. 22 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-ai-news-videos-to-social-media-with-openai-and-heyg)

**22 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 2 Logic 7 Service 12

The steps in the order they run, from what starts it.

- 1 **When clicking 'Test workflow'** Manual trigger *Starts it*
- 2 **write script** Lm Chat Open Ai *Model*
- 3 **RSS Read** Rss Feed Read *Service*
- 4 **AI Agent** Agent *Model*
- 5 **Limit1** Limit *Logic*
- 6 **Parse Caption** Code *Logic*
- 7 **Log news to sheets** Google Sheets *Service*
- 8 **Setup Heygen Parameters** Set *Logic*
- 9 **Create Avatar Video (HeyGen)** Http Request *Service*
- 10 **Wait for Video (HeyGen)** Wait *Logic*
- 11 **Get Avatar Video Status (HeyGen)** Http Request *Service*
- 12 **Download Video** Http Request *Service*
- 13 **Upload to Google Drive** Google Drive *Service*
- 14 **Upload Video to Postiz** Http Request *Service*
- 15 **Log Video Details to Sheets** Google Sheets *Service*
- 16 **Get Postiz Integrations** Http Request *Service*
- 17 **Video Platform Router** Switch *Logic*
- 18 **Clean Instagram Caption** Code *Logic*
- 19 **Clean Facebook Video Caption** Code *Logic*
- 20 **YouTube Video Publisher** Http Request *Service*
- 21 **Instagram Video Publisher** Http Request *Service*
- 22 **Facebook Video Publisher** Http Request *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 22, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets, RSS
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and RSS accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-ai-news-videos-to-social-media-with-openai-and-heyg)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[RSS](https://millionrounds.com/workflows?service=RSS#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai-2)
- [**Auto-Generate & Approve Social Media Posts from RSS Feeds** 22 steps · calls a model · LinkedIn, NocoDB](https://millionrounds.com/workflow/auto-generate-and-approve-social-media-posts-from-rss-feeds)
- [**Auto-tag blog posts in WordPress with OpenAI** 22 steps · calls a model · RSS, WordPress](https://millionrounds.com/workflow/auto-tag-blog-posts-in-wordpress-with-openai)
- [**Create Dev.to articles with OpenAI and Gemini** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/create-dev-to-articles-with-openai-and-gemini)
