๐Ÿ“Š Track competitor YouTube videos using WayinVideo summarization and Gmail

โšก 49 views ยท ๐Ÿ“Š Market Research & Insights

๐Ÿ’ก Pro Tip โ€” YouTubeโ€™s API quotas can be a bottleneck when youโ€™re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments โ€” no quota limits, just structured data.

View All Scrapers

Description

Description

Paste any competitorโ€™s YouTube URL in chat โ€” and this n8n workflow does everything automatically. WayinVideo API reads the entire video, extracts the summary, key highlights with timestamps, and hashtags โ€” then builds a clean styled HTML report and delivers it straight to your inbox via Gmail.

Built for marketers, growth teams, agencies, and founders who need to monitor competitorsโ€™ video content without spending hours watching videos manually.


What This Workflow Does

This automation handles your complete competitor video intelligence pipeline:


Setup Requirements

Tools Youโ€™ll Need:

Estimated Setup Time: 5โ€“10 minutes


Step-by-Step Setup

1. Get Your WayinVideo API Key

WayinVideo is the AI engine that analyzes and summarizes your competitorโ€™s video content.

  1. Go to WayinVideo and create a free/paid account
  2. Navigate to Dashboard โ†’ API section
  3. Copy your Bearer API token
  4. Open the โ€๐ŸŽฌ Submit Video for Summaryโ€ node in n8n
  5. Replace YOUR_WAYINVIDEO_API_KEY with your actual token in the Authorization header
  6. Do the same in the โ€๐Ÿ”„ Poll for Summary Resultsโ€ node โ€” replace the same placeholder there too

> โš ๏ธ The API key appears in two places โ€” Submit node and Poll node. Replace both or the workflow will fail!


2. Connect Gmail (OAuth2)

  1. In n8n: Go to Credentials โ†’ Add Credential โ†’ Gmail OAuth2 API
  2. Complete the Google OAuth authentication flow
  3. Open the โ€๐Ÿ“จ Send Analysis via Gmailโ€ node
  4. Select your Gmail credential from the dropdown
  5. Replace YOUR_REPORT_EMAIL@domain.com with the actual email address where you want to receive reports

3. Configure the Chat Trigger

This workflow is triggered when a user sends a video URL in the n8n chat interface.


4. Customise Settings (Optional)

In the โ€๐ŸŽฌ Submit Video for Summaryโ€ node:

ParameterDefault ValueWhat It Does
target_langenSummary language
video_url$json.chatInputVideo URL from chat

Change summary language options:

In the โ€๐Ÿ“ง Build Competitor Analysis Emailโ€ node:


5. Test & Activate

  1. Open n8n and go to this workflow
  2. Click the โ€œChatโ€ button to open the chat interface
  3. Paste any competitor YouTube video URL and press send
  4. Watch the workflow run step by step in the Execution View
  5. Check your inbox โ€” the styled HTML report should arrive within 1โ€“3 minutes
  6. Once confirmed, toggle the workflow Active at the top โœ…

How It Works (Step by Step)

Step 1 โ€” Chat Trigger User pastes a competitor video URL in the n8n chat. The URL is captured as $json.chatInput and passed to the next node.

Step 2 โ€” Submit Video to WayinVideo API The workflow sends a POST request to the WayinVideo API (/api/v2/summaries) with the video URL and target language. The API returns a Job ID used to track processing status.

Step 3 โ€” Wait 30 Seconds The workflow pauses for 30 seconds to give WayinVideo time to start processing. This avoids hitting the API too early before the summary is ready.

Step 4 โ€” Poll for Summary Results Using the Job ID from Step 2, the workflow calls:

GET /api/v2/summaries/results/{job_id}

to check if the summary is ready.

Step 5 โ€” Summary Ready? (Smart Loop) The IF node checks if the response status equals SUCCEEDED:

> This smart retry loop runs every 30 seconds until the summary is done. No manual intervention needed.

Step 6 โ€” Build Competitor Analysis Email The Code node extracts all data from the API response and builds a styled HTML email containing:

Step 7 โ€” Send via Gmail The final Gmail node sends the complete HTML report directly to your specified inbox โ€” formatted and ready to read.


Troubleshooting

Summary not generating / API returns empty:

Workflow stuck in polling loop:

Video URL not accepted:


Support

Need help setting this up or want a custom version built for your specific use case?

๐Ÿ“ง Email: info@incrementors.com ๐ŸŒ Website: https://www.incrementors.com/contact-us/

๐Ÿ”— Nodes Used

HTTP Request, Gmail, Chat Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup