Automation library · Content

Generate AI B-roll clips from videos with OpenAI

Started by an event in a connected app, and works across Google Cloud Storage and Telegram. It hands the judgement calls to OpenAI. 25 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 10Service 12

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

  1. 1Manual TriggerManual triggerStarts it
  2. 2Set Video URLSetLogic
  3. 3Set API CredentialsSetLogic
  4. 4Generate JWT TokenJwtService
  5. 5Request OAuth TokenHttp RequestService
  6. 6Fetch Video from URLHttp RequestService
  7. 7Extract Data from FileExtract From FileService
  8. 8Prepare Analysis PromptCodeLogic
  9. 9Post Video for AnalysisHttp RequestService
  10. 10Select Key Moments with AIOpen AiModel
  11. 11Split Moments into ItemsCodeLogic
  12. 12Batch Process ItemsSplit In BatchesLogic
  13. 13Aggregate ResultsAggregateLogic
  14. 14AI B-Roll SelectorOpen AiModel
  15. 15Send Telegram MessageTelegramService
  16. 16Set Unique File NameSetLogic
  17. 17Set Project DetailsSetLogic
  18. 18Generate JWT for VideoJwtService
  19. 19Request OAuth Token AgainHttp RequestService
  20. 20Post to Video Generation APIHttp RequestService
  21. 21Wait 20 SecondsWaitLogic
  22. 22Post to Check Status APIHttp RequestService
  23. 23Route Based on StatusSwitchLogic
  24. 24Convert Data to FileConvert To FileService
  25. 25Upload File to GCSGoogle Cloud StorageService

How it's built

Starts on
An event in a connected app
Steps
25, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Cloud Storage, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Cloud Storage and Telegram 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 25 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 25 steps before you point it at anything that matters.