Skip to main content

Monitor multiple YouTube channels with real-time RocketChat alerts

Workflow preview

Workflow preview
100%
Monitor multiple YouTube channels with real-time RocketChat alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow provides automated monitoring of YouTube channels and sends real time notifications to RocketChat when new videos are published. It supports all YouTube URL formats, uses dual sou...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.function, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.xml

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Vigh Sandor.

Original n8n.io source

1.1 Workflow description

Title
Monitor multiple YouTube channels with real-time RocketChat alerts
Workflow name
Monitor multiple YouTube channels with real-time RocketChat alerts

Workflow Overview

This n8n workflow provides automated monitoring of YouTube channels and sends real-time notifications to RocketChat when new videos are published. It supports all YouTube URL formats, uses dual-source video fetching for reliability, and intelligently filters videos to prevent duplicate notifications.

Key Features

  • Multi-Format URL Support: Handles @handle, /user/, and /channel/ URL formats
  • Dual Fetching Strategy: Uses both RSS feeds and HTML scraping for maximum reliability
  • Smart Filtering: Only notifies about videos published in the last hour
  • Shorts Exclusion: Automatically excludes YouTube Shorts from notifications
  • Rate Limiting: 30-second delay between notifications to prevent spam
  • Batch Processing: Processes multiple channels sequentially
  • Error Handling: Continues execution even if one channel fails
  • Customizable Schedule: Default hourly checks, adjustable as needed

Use Cases

Monitor competitor channels, track favorite creators, aggregate content from multiple channels, build content curation workflows, stay updated on educational channels, monitor brand mentions, track news channels for breaking updates.


Setup Instructions

Prerequisites

  • n8n instance (self-hosted or cloud) version 1.0+
  • RocketChat server with admin or bot access
  • RocketChat API credentials
  • Internet connectivity for YouTube access

Step 1: Obtain RocketChat Credentials

Create Bot User:

  1. Log in to RocketChat as administrator
  2. Navigate to Administration → Users → New
  3. Fill in details: Name (YouTube Monitor Bot), Username (youtube-bot), Email, Password, Roles (bot)
  4. Click Save

Get API Credentials:

  1. Log in as bot user
  2. Navigate to My Account → Personal Access Tokens
  3. Click Generate New Token
  4. Enter token name: n8n YouTube Monitor
  5. Copy generated token immediately
  6. Note User ID from account settings

Step 2: Configure RocketChat in n8n

  1. Open n8n web interface
  2. Navigate to Credentials section
  3. Click Add Credential → RocketChat API
  4. Fill in:
    • Domain: Your RocketChat URL (e.g., https://rocket.yourdomain.com)
    • User: Bot username (e.g., youtube-bot)
    • Password: Bot password or personal access token
  5. Click Save and test connection

Step 3: Prepare RocketChat Channel

  1. Create new channel in RocketChat: youtube-notifications
  2. Add bot user to channel:
    • Click channel menu → Members → Add Users
    • Search for bot username
    • Click Add

Step 4: Collect YouTube Channel URLs

Handle Format: https://www.youtube.com/@ChannelHandle User Format: https://www.youtube.com/user/Username Channel ID Format: https://www.youtube.com/channel/UCxxxxxxxxxx

All formats supported. Find channel ID in page source or use browser extension.

Step 5: Import Workflow

  1. Copy workflow JSON
  2. In n8n: Workflows → Import from File/URL
  3. Paste JSON or upload file
  4. Click Import

Step 6: Configure Channel List

  1. Locate Channel List node
  2. Enter YouTube URLs in channel_urls field, one per line:
https://www.youtube.com/@NoCopyrightSounds/videos
https://www.youtube.com/@chillnation/videos
  1. Include /videos suffix or workflow adds it automatically

Step 7: Configure RocketChat Notification

  1. Locate RocketChat Notification node
  2. Replace YOUR-CHANNEL-NAME with your channel name
  3. Select RocketChat credential
  4. Customize message template if needed

Step 8: Configure Schedule (Optional)

Default: Every 1 hour

To change:

  1. Open Hourly Check node
  2. Modify interval (Minutes, Hours, Days)

Recommended Intervals:

  • Every hour (default): Good balance
  • Every 30 minutes: More frequent
  • Every 2 hours: Less frequent
  • Avoid intervals less than 15 minutes

Important: YouTube RSS updates every 15 minutes. Hourly checks match 1-hour filter window.

Step 9: Test the Workflow

  1. Click Execute Workflow button
  2. Monitor execution (green = success, red = errors)
  3. Check node outputs:
    • Channel List: Shows URLs
    • Filter New Videos: Shows found videos (may be empty)
    • RocketChat Notification: Shows sent messages
  4. Verify notifications in RocketChat

No notifications is normal if no videos posted in last hour.

Step 10: Activate Workflow

  1. Toggle Active switch in top-right
  2. Workflow runs on schedule automatically
  3. Monitor RocketChat channel for notifications

How to Use

Understanding Workflow Execution

Default Schedule: Hourly

  • Executes every hour
  • Checks all channels
  • Processes videos from last 60 minutes
  • Prevents duplicate notifications

Execution Duration: 1-5 minutes for 10 channels. Rate limiting adds 30 seconds per video.

Adding New Channels

  1. Open Channel List node
  2. Add new URL on new line
  3. Save (Ctrl+S)
  4. Change takes effect on next run

Removing Channels

  1. Open Channel List node
  2. Delete line or comment out with # at start
  3. Save changes

Changing Check Frequency

  1. Open Hourly Check node
  2. Modify interval
  3. If changing from hourly, update Filter New Videos node:
    • Find: cutoffDate.setHours(cutoffDate.getHours() - 1);
    • Change -1 to match interval (-2 for 2 hours, -6 for 6 hours)

Important: Time window should match or exceed check interval.

Understanding Video Sources

RSS Feed (Primary):

  • Official YouTube RSS
  • Fast and reliable
  • 5-15 minute delay for new videos
  • Structured data

HTML Scraping (Fallback):

  • Immediate results
  • Works when RSS unavailable
  • More fragile

Benefits of dual approach:

  • Reliability: If one fails, other works
  • Speed: Scraping catches videos immediately
  • Completeness: RSS ensures nothing missed
  • Videos are deduplicated automatically

Excluding YouTube Shorts

Shorts are filtered by checking URL for /shorts/ path.

To include Shorts:

  1. Open Filter New Videos node
  2. Find: if (videoUrl && !videoUrl.includes('/shorts/'))
  3. Remove the !videoUrl.includes('/shorts/') check

Rate Limiting

30-second wait between notifications:

  • Prevents flooding RocketChat
  • Allows users to read each notification
  • Avoids rate limits

Impact: 5 videos = 2.5 minutes, 10 videos = 5 minutes

To adjust: Open Wait 30 sec node, change amount field (15-60 seconds recommended)

Handling Multiple Channels

Channels processed sequentially:

  • Prevents overwhelming workflow
  • Ensures reliable execution
  • One failed channel doesn't stop others
  • Recommend 20-50 channels per workflow

FAQ

Q: How many channels can I monitor? A: Recommend 20-50 per workflow. Split into multiple workflows for more.

Q: Why use both RSS and scraping? A: RSS is reliable but delayed. Scraping is immediate but fragile. Both ensures no videos missed.

Q: Can I exclude specific video types? A: Yes, add filtering logic in Filter New Videos node. Already excludes Shorts.

Q: Will this get my IP blocked? A: Unlikely with hourly checks. Don't check more than every 15 minutes.

Q: How do I prevent duplicate notifications? A: Ensure time window matches schedule interval. Already implemented.

Q: What if channel changes handle? A: Update URL in Channel List node. YouTube maintains redirects.

Q: Can I monitor playlists? A: Not directly. Would need modifications for playlist RSS feeds.


Technical Reference

YouTube URL Formats

  • Handle: https://www.youtube.com/@handlename
  • User: https://www.youtube.com/user/username
  • Channel ID: https://www.youtube.com/channel/UCxxxxxx

RSS Feed Format

https://www.youtube.com/feeds/videos.xml?channel_id=UCxxxxxx

Contains up to 15 recent videos with title, link, publish date, thumbnail.

APIs Used: YouTube RSS (public), RocketChat API (requires auth)

License: Open for modification and commercial use

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Hourly Check

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 2 - Channel List

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 3 - Process URLs

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 4 - Loop Over Channels

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Need Channel ID?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 6 - Fetch Channel Page

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Extract Channel ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 8 - Merge Channels

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 9 - Has RSS URL?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 10 - Fetch RSS Feed

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Scrape Videos Page

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Parse XML

Type / Role
n8n-nodes-base.xml - xml
Config choices
Version 1

Block 13 - Parse Scraped Videos

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 14 - Merge RSS & Scraped

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 15 - Filter New Videos

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 16 - Has Videos?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 17 - Loop Over Videos

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 18 - Has New Video?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 19 - RocketChat Notification

Type / Role
n8n-nodes-base.rocketchat - rocketchat
Config choices
Version 1

Block 20 - No New Video

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 21 - Continue Channel

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 22 - Wait 30 sec

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 23 - Schedule

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Config: Channel URLs

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Monitor multiple YouTube channels with real-time RocketChat alerts
Complexity advanced
Nodes 38
Categories Market Research
Author Vigh Sandor
Published 08 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10643/10643.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor multiple YouTube channels with real-time RocketChat alerts do?

This n8n workflow provides automated monitoring of YouTube channels and sends real time notifications to RocketChat when new videos are published. It supports all YouTube URL formats, uses dual sou...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.