Quick Overview
This workflow runs every morning, reads YouTube channel RSS feeds to find newly published videos, uses Google Gemini to generate two-line summaries from each video’s title and description, and sends a combined digest (split if needed) to a Telegram chat.
How it works
- Runs every day at 8am on a schedule.
- Loads your list of YouTube channel IDs, a lookback window in hours, and the target Telegram chat ID.
- Fetches each channel’s YouTube RSS feed and continues even if a channel feed fails.
- Keeps only videos published within the lookback window and removes any videos already sent in previous executions to avoid duplicates.
- Uses Google Gemini to generate a one-sentence summary plus a “Worth watching if” line from the video title and RSS description.
- Builds an HTML Telegram digest, splitting it into multiple messages to stay under Telegram’s message length limit.
- Sends the digest message(s) to your Telegram chat.
Setup
- Add a Google Gemini (PaLM) API credential and ensure the workflow’s Gemini chat model is selected.
- Create a Telegram bot, add a Telegram API credential in n8n, and set your Telegram chat ID in the workflow settings.
- Replace the example YouTube channel IDs with your own and adjust the schedule time and lookback hours as needed.