Automate YouTube Video Alerts with n8n and Telegram

This n8n workflow automatically checks a YouTube channel every 30 minutes and sends Telegram alerts for new videos, saving you time and ensuring you never miss content. It filters duplicates and posts updates directly to your Telegram group chat.
youTube
telegram
interval
+2
Workflow Identifier: 1419
NODES in Use: Set, Function, Interval, YouTube, Telegram

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow checks a YouTube channel every 30 minutes for up to 4 new videos.
It makes sure only videos not already announced get sent to a Telegram group.
The workflow formats video titles and links nicely and sends them as messages.
This saves time and avoids missing video updates for the Telegram members.

The main problem it solves is removing the manual work of checking and typing new video info.
After setting up, it runs on its own, keeping the community informed fast.


Who Should Use This Workflow

Anyone managing YouTube updates for a group or team can use this.
This is helpful for content managers, social media people, or community admins.
It is made for those who want to automate routine video announcements without extra effort.


Tools and Services Used

  • n8n Automation Platform: Runs the workflow and connects services.
  • YouTube API with OAuth2 Credentials: Accesses channel video data securely.
  • Telegram Bot API: Sends messages to Telegram group chat.

Input → Process → Output

Inputs

  • Channel ID of the YouTube channel to monitor.
  • YouTube API credentials with proper permissions.
  • Telegram bot token and target group chat ID.

Processing Steps

  • The Interval node triggers workflow every 30 minutes.
  • The YouTube node fetches latest 4 videos from channel.
  • Set node extracts video ID, title, and URL for clear data.
  • Function node filters out previously sent video IDs using stored static data.
  • Telegram node sends formatted messages with HTML markup about new videos.
  • The static data stores sent video IDs to avoid duplicates in future runs.

Output

  • Telegram group chat automatically receives new video announcements.
  • Only the newest unseen videos generate notifications per interval.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor where you usually create workflows.
  3. Click “Import from File” and select the downloaded workflow file.

Step 2: Configure Credentials and IDs

  1. Add your YouTube OAuth2 credentials under the YouTube node.
  2. Add your Telegram bot API key and set the correct group chat ID in the Telegram node.
  3. Check the channel ID in the YouTube node to match your chosen channel.

Step 3: Test the Workflow

  1. Run the workflow manually once to see if new video messages post in Telegram.
  2. Review execution logs for any errors or issues.

Step 4: Activate for Production Use

  1. Toggle the workflow ON in n8n to let it run automatically every 30 minutes.
  2. Monitor the results on first few scheduled runs for smooth operation.
  3. If self hosting n8n, check permissions and uptime. (self-host n8n)

Step-by-Step How This Workflow Works

Inputs

  • The channel ID tells the workflow where to look for new videos.
  • YouTube API credentials allow safe use of the YouTube data.
  • Telegram bot details let the workflow send messages to the right chat.

Processing

  1. The Interval node starts the process every 30 minutes.
  2. The YouTube node fetches the latest 4 videos from the specified channel.
  3. The Set node extracts the video ID, title, and constructs the video URL.
  4. The Function node compares current videos with stored IDs and filters out duplicates.
  5. The Telegram node sends a message for each new video to the Telegram group.
  6. Static data storage gets updated with new video IDs to avoid repeats next time.

Output

  • Fresh, formatted video notification messages posted in Telegram.
  • No repeats from old videos during later checks.

Customization Ideas

  • Change the channel ID inside the YouTube node to watch another YouTube channel.
  • Adjust the video limit to fetch more or fewer recent videos per interval.
  • Modify the Telegram message template to add hashtags or personalized text.
  • Change the Interval node timing for more or less frequent checks.
  • Add more video details like publish date or video duration in the Set node to enrich messages.

Troubleshooting

Issue: No new video notifications get sent.
Check: Verify that the Function node static data holds stored IDs correctly.
Clear or reset stored IDs if no videos flow through.

Issue: Telegram messages do not appear or formatting is wrong.
Check: Confirm the Telegram chat ID is accurate.
Make sure the Telegram node has HTML parse mode enabled.


Pre-Production Checklist

  • Confirm YouTube OAuth2 credentials are valid and authorized.
  • Ensure Telegram bot token is set and bot is allowed in the group.
  • Test Interval trigger executes correctly.
  • Run the workflow manually to verify message delivery.
  • Confirm duplicates are filtered correctly in the Function node by testing repeated video IDs.

Deployment Guide

Switch the workflow toggle ON inside n8n to start running automatically.
Watch initial few runs for smooth message posting to Telegram.

If running on a private server, ensure stable internet and n8n uptime.
Consider self-host n8n for full control.


Summary of Benefits and Outcome

✓ Saves user over 15 minutes daily by automating video check and notification.
✓ Ensures no duplicate messages about the same video are sent.
✓ Keeps Telegram community updated fast with latest videos.
✓ Easy to adjust frequency, channel, and message style.
✓ Works in background freeing user from manual posts.


Frequently Asked Questions

The workflow is designed for one channel at a time. To watch multiple channels, duplicate the workflow or modify it to check channels sequentially.
Yes. Each video fetch request uses YouTube API quota. Reducing check frequency or number of videos lowers quota use.
It stores video IDs in static data. The Function node filters out IDs already sent before sending new notifications.
Common issues are wrong Telegram chat ID or the Telegram node missing HTML parse mode, causing delivery or format errors.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free