# Send a weekly YouTube email digest with Apify and OpenAI: n8n workflow

> Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/send-a-weekly-youtube-email-digest-with-apify-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

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

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsend-a-weekly-youtube-email-digest-with-apify-and-openai)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 11 Service 6

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

- 1 **Every Monday morning** Schedule trigger *Starts it*
- 2 **OpenAI chat model** Lm Chat Open Ai *Model*
- 3 **Summary structure** Output Parser Structured *Model*
- 4 **Settings** Set *Logic*
- 5 **Summarize video** Chain Llm *Model*
- 6 **Get channels to watch** Google Sheets *Service*
- 7 **Log video in Sheet** Google Sheets *Service*
- 8 **Build digest email** Code *Logic*
- 9 **Build source list** Code *Logic*
- 10 **Send weekly digest** Gmail *Service*
- 11 **Start transcript run** Http Request *Service*
- 12 **Wait for transcripts** Wait *Logic*
- 13 **Check run status** Http Request *Service*
- 14 **Route run status** Switch *Logic*
- 15 **Get transcripts** Http Request *Service*
- 16 **Under poll limit?** If *Logic*
- 17 **Report run failure** Stop And Error *Logic*
- 18 **Keep transcripts only** Code *Logic*
- 19 **Skip videos already sent** Remove Duplicates *Logic*
- 20 **Any new videos?** If *Logic*
- 21 **Nothing new this week** No Op *Logic*

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

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsend-a-weekly-youtube-email-digest-with-apify-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**ACOP - bank account opening AI agent with Gemini** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/acop-bank-account-opening-ai-agent-with-gemini)
- [**Automate HR celebrations with Gemini and Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-hr-celebrations-with-gemini-and-sheets)
- [**Automating SAP B1 journal entries with JSON and Google Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automating-sap-b1-journal-entries-with-json-and-google-sheet)
- [**Build an EU AI Act risk inventory with OpenAI** 21 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/build-an-eu-ai-act-risk-inventory-with-openai)
- [**Cluster webpage topics from Google Sheets** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/cluster-webpage-topics-from-google-sheets)
- [**Customer personality (BaZi, DISC, Numerology) with Gemini** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/customer-personality-bazi-disc-numerology-with-gemini)
