Automation library · Content

Extract video metadata & auto-upload to YouTube with OpenAI

Started by another system calling it, and works across Gmail, Google Sheets and YouTube. It hands the judgement calls to OpenAI. 22 steps, 3 branches: 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
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 3Model 2Logic 13Service 4

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

  1. 1Video Upload WebhookWebhookStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Initialize Upload SessionSetLogic
  4. 4AI Metadata GeneratorAgentModel
  5. 5Validate Binary DataIfLogic
  6. 6Parse AI MetadataCodeLogic
  7. 7Extract Video MetadataCodeLogic
  8. 8Error ResponseRespond To WebhookStarts it
  9. 9Check Scheduled PublishIfLogic
  10. 10Prepare AI ContextCodeLogic
  11. 11Set Scheduled SettingsSetLogic
  12. 12Set Immediate PublishSetLogic
  13. 13Merge Publish SettingsMergeLogic
  14. 14YouTube Upload VideoYou TubeService
  15. 15Process Upload ResultCodeLogic
  16. 16Check Playlist AddIfLogic
  17. 17Add to PlaylistYou TubeService
  18. 18Merge Playlist ResultMergeLogic
  19. 19Log Upload to SheetsGoogle SheetsService
  20. 20Generate Upload SummaryCodeLogic
  21. 21Send Upload NotificationGmailService
  22. 22Success ResponseRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
22, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, YouTube
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and YouTube accounts, and a key for OpenAI. 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. 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.