Automation library · Data collection

Send a weekly YouTube email digest with Apify and OpenAI

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 21 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 3Logic 11Service 6

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

  1. 1Every Monday morningSchedule triggerStarts it
  2. 2OpenAI chat modelLm Chat Open AiModel
  3. 3Summary structureOutput Parser StructuredModel
  4. 4SettingsSetLogic
  5. 5Summarize videoChain LlmModel
  6. 6Get channels to watchGoogle SheetsService
  7. 7Log video in SheetGoogle SheetsService
  8. 8Build digest emailCodeLogic
  9. 9Build source listCodeLogic
  10. 10Send weekly digestGmailService
  11. 11Start transcript runHttp RequestService
  12. 12Wait for transcriptsWaitLogic
  13. 13Check run statusHttp RequestService
  14. 14Route run statusSwitchLogic
  15. 15Get transcriptsHttp RequestService
  16. 16Under poll limit?IfLogic
  17. 17Report run failureStop And ErrorLogic
  18. 18Keep transcripts onlyCodeLogic
  19. 19Skip videos already sentRemove DuplicatesLogic
  20. 20Any new videos?IfLogic
  21. 21Nothing new this weekNo OpLogic

How it's built

Starts on
A clock
Steps
21, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail 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 a clock.

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 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.