Automation library · Content

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.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 7Service 12

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

  1. 1When clicking 'Test workflow'Manual triggerStarts it
  2. 2write scriptLm Chat Open AiModel
  3. 3RSS ReadRss Feed ReadService
  4. 4AI AgentAgentModel
  5. 5Limit1LimitLogic
  6. 6Parse CaptionCodeLogic
  7. 7Log news to sheetsGoogle SheetsService
  8. 8Setup Heygen ParametersSetLogic
  9. 9Create Avatar Video (HeyGen)Http RequestService
  10. 10Wait for Video (HeyGen)WaitLogic
  11. 11Get Avatar Video Status (HeyGen)Http RequestService
  12. 12Download VideoHttp RequestService
  13. 13Upload to Google DriveGoogle DriveService
  14. 14Upload Video to PostizHttp RequestService
  15. 15Log Video Details to SheetsGoogle SheetsService
  16. 16Get Postiz IntegrationsHttp RequestService
  17. 17Video Platform RouterSwitchLogic
  18. 18Clean Instagram CaptionCodeLogic
  19. 19Clean Facebook Video CaptionCodeLogic
  20. 20YouTube Video PublisherHttp RequestService
  21. 21Instagram Video PublisherHttp RequestService
  22. 22Facebook Video PublisherHttp RequestService

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.