Triangle pointing up
n8n Automation

YouTube Trends Tracker

Learn how to create an n8n workflow to track your YouTube competitors

YouTube Trends Tracker n8n Workflow

Instead of manually searching for what's trending on your niche, you can automate the process with TubeLab and n8n.

Before setting up the workflow, it helps to break down the process in smaller steps:

  1. Research: we'll start by analysing your channel with Gemini and then using TubeLab to find outliers from your competitors;
  2. Analysis: we then fetch the transcript of the top-performing videos and prompt Gemini to analyse them;
  3. Report: finally we prompt Claude to create a report with the findings and generate new ideas for your channel.

Pre-requisites

  1. Refer to the Quickstart guide to setup n8n with TubeLab and create the workflow.
  2. Setup OpenRouter credentials in n8n with the OpenAI node.
  3. Setup a Discord Webhook to send the report to.

Configuring the workflow

Assuming you have the pre-requisites setup, all you need to do is:

  1. Copy this link: http://tubelab.ai/docs/youtube-trends-tracker.json.
  2. Create a new workflow in n8n and click on the top-right corner '...' > Import from URL.
  3. Paste the link and click on Import.

Importing the workflow

  1. Open the Get Videos node and set your Channel ID.

Setting the Channel ID

How to find channel IDs? Paste any video in TubeLab's Video Extractor and copy the channel ID.

Research

Research Workflow

We need to collect data first. This is done by:

  1. Analysing your channel with Gemini to understand your niche and audience interests;
  2. Searching for outlier videos from your competitors and adjacent audience interests.

Analysing your channel

We'll use TubeLab to fetch your channel's videos and prompt Gemini to analyse your niche & audience.

Searching for outliers from your competitors and adjacent niches

We'll be using TubeLab's real-time outlier data to search for high-performing videos from your competitors and adjacent niches based on your audience interests.

This data is fundamental to extract the winning patterns that will get you more views.

Analysis

Analysis Workflow

Now that we have the data, let's extract the viral patterns of the data we've collected:

  • title formulas
  • hook formulas
  • trending topics

This is done by using TubeLab to get the transcripts of the top-performing videos and prompting Gemini to extract those patterns.

Create a Report

Create a Report Workflow

Finally we have all the data we need to understand what get's more views.

We'll be using Claude to create a report with the findings and generate new ideas for your channel.

Then we'll send the report to a Discord channel.

That's it!

Imagine trying to do all of this manually. It would take you hours to search for this outliers and then you would need to manually analyse the videos and write up the report.

With TubeLab and n8n you can automate the process and get the report every week without any effort.

Next steps

Now that you've setup this workflow, you can extend it and create your own use cases.

Such as:

  • Generating new ideas from your channel's comments;
  • Generating scripts based on any YouTube video;

Explore TubeLab's API easily directly within n8n.