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.
How it works
- Runs every Monday morning on a schedule.
- Reads a list of YouTube channel, playlist, or video URLs from a Google Sheets “Channels” tab.
- Starts an Apify Actor run to expand the sources, collect recent videos, and fetch available transcripts, then polls Apify until the run succeeds or fails.
- Filters out videos without transcripts and removes any videos that were already summarized in previous workflow runs.
- Uses OpenAI to generate a structured summary, key takeaways, topic tags, and a worth-watching verdict for each new video.
- Appends the video metadata and AI output to a Google Sheets “Videos” tab, builds a combined HTML digest, and sends it to the configured recipient via Gmail.
Setup
- Create an Apify account, copy your API token, and add an HTTP Header Auth credential using
Authorization: Bearer <YOUR_APIFY_TOKEN> for the Apify HTTP requests.
- Connect Google Sheets OAuth credentials and create a spreadsheet with a “Channels” tab containing a
Source column and a “Videos” tab with headers matching the logged fields.
- Add OpenAI credentials (or update the model node) and set the
summaryModel value if you want to use a different model.
- Connect Gmail credentials and fill in the Google Sheets document ID (
sheetDocId) and digest recipient email address (digestRecipient) in the workflow settings.