Save YouTube transcripts to Google Sheets with Apify
Ready for 3.0What this workflow does
This AI workflow has 36 nodes and runs on a schedule (every day at 07:00) (plus 3 other triggers). Along the way it connects Google Sheets, OpenAI Chat Model, Gmail and Slack and 1 more. It also calls api.apify.com over HTTP.
How it runs
Trigger: On a schedule (every day at 07:00) (plus 3 other triggers).
- Settings (Edit Fields (Set)): sets 11 fields: sheetUrl, digestEmail, maxVideosPerSource…
- What started this run? (Switch): routes items into 2 branches
- Check and label the new link (Code): runs custom JavaScript code
- Read the Videos tab (Google Sheets): uses Google Sheets
- Read the Sources tab (Google Sheets): uses Google Sheets
- Save it to the Sources tab (Google Sheets): append or update
- Find the best passages (Code): runs custom JavaScript code
- Build the actor input (Code): runs custom JavaScript code
- Answer with links to the moment (Basic LLM Chain): sends a prompt to an LLM, with model: Chat model (swap for Anthropic or Gemini)
- Start a transcript run on Apify (HTTP Request): calls api.apify.com (POST)
…plus 21 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)
HTTP calls to: api.apify.com
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 (16)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - n8n Form Trigger
n8n-nodes-base.formTrigger - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Discord
n8n-nodes-base.discord
From the author
Quick overview This workflow runs every morning to fetch YouTube video transcripts via the Apify YouTube Transcript Scraper actor and appends the results to Google Sheets, while also logging videos that fail to return captions into a separate tab. How it…