Automation library · Content

Create and publish AI videos with Sora 2 Cameos and Gemini

Started by a clock, and works across Apify and Google Sheets. It hands the judgement calls to Gemini. 24 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 2Model 5Logic 6Service 11

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

  1. 1Daily Content SchedulerSchedule triggerStarts it
  2. 2Video Processing SchedulerSchedule triggerStarts it
  3. 3Reasoning EngineTool ThinkModel
  4. 4Gemini LLMLm Chat Google GeminiModel
  5. 5Fetch Viral Content DatasetApifyService
  6. 6Load Viral ContentGoogle SheetsService
  7. 7AI Script & Prompt AgentAgentModel
  8. 8Parse Script OutputOutput Parser StructuredModel
  9. 9Normalize Content FieldsSetLogic
  10. 10Analyze Viral IdeaGoogle GeminiModel
  11. 11Split Video PromptSplit OutLogic
  12. 12Save Viral Content to SheetGoogle SheetsService
  13. 13Generate Sora VideoHttp RequestService
  14. 14Wait for RenderWaitLogic
  15. 15Get VideoHttp RequestService
  16. 16Render Status Check1SwitchLogic
  17. 17Aggregate Video PartsAggregateLogic
  18. 18Prepare Video MetadataCodeLogic
  19. 19Merge Video ClipsHttp RequestService
  20. 20Publish to FacebookBlotatoService
  21. 21Publish to TikTokBlotatoService
  22. 22Publish to InstagramBlotatoService
  23. 23Update Success StatusGoogle SheetsService
  24. 24Update Error StatusGoogle SheetsService

How it's built

Starts on
A clock
Steps
24, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Apify, Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

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

How long does it take to set up?

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