Automation library · Content

Viral video generator: HeyGen to TikTok & Instagram auto-post

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to OpenAI and Perplexity. 21 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI, Perplexity

21 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Model 2Logic 8Service 9

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

  1. 1Schedule Daily TriggerSchedule triggerStarts it
  2. 2HeyGen WebhookWebhookStarts it
  3. 3Process HeyGen CallbackCodeLogic
  4. 4Get Caption from SheetsGoogle SheetsService
  5. 5Combine DataCodeLogic
  6. 6Upload to BlotatoHttp RequestService
  7. 7Extract Blotato URLCodeLogic
  8. 8Assign Social Media IDsSetLogic
  9. 9INSTAGRAMHttp RequestService
  10. 10TIKTOKHttp RequestService
  11. 11Perplexity SearchPerplexityService
  12. 12Write Video ScriptOpen AiModel
  13. 13Get ScreenshotHttp RequestService
  14. 14Write Video CaptionOpen AiModel
  15. 15Extract URLCodeLogic
  16. 16Prepare Avatar DataCodeLogic
  17. 17Create Avatar Video (Optimized)Http RequestService
  18. 18Store to Google SheetsGoogle SheetsService
  19. 19Prepare Sheets DataCodeLogic
  20. 20Upload to tmpfilesHttp RequestService
  21. 21Extract tmpfilesCodeLogic

How it's built

Starts on
Another system calling it
Steps
21
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI, Perplexity

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

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

How long does it take to set up?

Take your time. At 21 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 21 steps before you point it at anything that matters.