Send a weekly YouTube email digest with Apify, OpenAI, Gmail and Sheets
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs on a schedule (every week at 07:00). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every week at 07:00).
- Settings (Edit Fields (Set)): sets 9 fields: apifyActorId, sheetDocId, sourcesSheet…
- Get channels to watch (Google Sheets): uses Google Sheets
- Build source list (Code): runs custom JavaScript code
- Start transcript run (HTTP Request): calls an HTTP API (POST)
- Wait: pauses before continuing
- Check run status (HTTP Request): calls an HTTP API (GET)
- Route run status (Switch): routes items into 3 branches
- Get transcripts (HTTP Request): calls an HTTP API (GET)
- Under poll limit? (If): checks a condition and branches into true / false
- Report run failure (Stop and Error): stops the run with an error
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (15)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError - Remove Duplicates
n8n-nodes-base.removeDuplicates - No Operation, do nothing
n8n-nodes-base.noOp - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Monday, reads a YouTube watchlist from Google Sheets, uses Apify to fetch recent video transcripts, summarizes new videos with OpenAI, logs results back to Google Sheets, and sends a single HTML digest email via Gmail.…