Automation library · Content

Generate Sora videos from Google Sheets

Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 15 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

15 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 4Service 7

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

  1. 1GPT-4 ModelLm Chat Open AiModel
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Manual TriggerManual triggerStarts it
  4. 4Generate SEO Title with AIAgentModel
  5. 5Get Video Prompts from SheetGoogle SheetsService
  6. 6Download Completed VideoHttp RequestService
  7. 7Filter Unprocessed VideosFilterLogic
  8. 8Upload to Google DriveGoogle DriveService
  9. 9Normalize Video ParametersSetLogic
  10. 10Add video URL and update video statusGoogle SheetsService
  11. 11Create Sora Video JobHttp RequestService
  12. 12Wait 60s for RenderingWaitLogic
  13. 13Check Video StatusHttp RequestService
  14. 14Route by Video StatusSwitchLogic
  15. 15Update video status to failedGoogle SheetsService

How it's built

Starts on
An event in a connected app
Steps
15, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets 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?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

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 15 steps before you point it at anything that matters.