Quick overview
This workflow checks specified YouTube channels every hour using Apify’s YouTube Channel Monitor and posts a formatted Slack message for each newly published video, including the title, link, duration, and publish time.
How it works
- Runs every hour on a schedule.
- Defines the list of YouTube channels to monitor and how many recent results to fetch per channel.
- Uses Apify (dami_studio/youtube-channel-monitor) to retrieve uploads that are new since the last run.
- Filters out any returned items that do not contain a valid video URL.
- Deduplicates results by video ID to ensure each video triggers only one alert across executions.
- Posts a Slack message to the selected channel with the channel name, video title, URL, duration in minutes, and publish timestamp.
Setup
- Create an Apify account and add an Apify API token credential in n8n.
- Connect a Slack OAuth2 credential and select the Slack channel where alerts should be posted.
- Replace the example channel list with the handles, channel IDs or URLs you want to watch, and set maxResultsPerChannel to suit how busy they are.