๐ 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.
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:
- Chat-triggered โ User pastes any YouTube video URL and the workflow starts instantly
- AI-powered summarization โ WayinVideo AI reads the video and extracts title, summary, and key highlights automatically
- Smart polling loop โ Waits and retries every 30 seconds until processing is complete โ no manual checking needed
- Timestamped highlights โ Each highlight includes exact start/end timestamps and sub-events for deep insight
- Hashtag extraction โ Pulls all relevant tags from the video automatically
- Styled HTML email report โ Builds a professional branded report and sends it to your inbox via Gmail
Setup Requirements
Tools Youโll Need:
- Active n8n instance (self-hosted or n8n Cloud)
- WayinVideo account with API access
- Gmail account with OAuth2 access
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.
- Go to WayinVideo and create a free/paid account
- Navigate to Dashboard โ API section
- Copy your Bearer API token
- Open the โ๐ฌ Submit Video for Summaryโ node in n8n
- Replace
YOUR_WAYINVIDEO_API_KEYwith your actual token in the Authorization header - 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)
- In n8n: Go to Credentials โ Add Credential โ Gmail OAuth2 API
- Complete the Google OAuth authentication flow
- Open the โ๐จ Send Analysis via Gmailโ node
- Select your Gmail credential from the dropdown
- Replace
YOUR_REPORT_EMAIL@domain.comwith 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.
- The trigger node receives
$json.chatInputโ this is the competitor video URL the user pastes - Make sure your n8n instance has the Chat Trigger enabled
- No additional setup needed โ it works out of the box
4. Customise Settings (Optional)
In the โ๐ฌ Submit Video for Summaryโ node:
| Parameter | Default Value | What It Does |
|---|---|---|
target_lang | en | Summary language |
video_url | $json.chatInput | Video URL from chat |
Change summary language options:
enโ English (default)hiโ Hindiesโ Spanishfrโ Frenchdeโ German
In the โ๐ง Build Competitor Analysis Emailโ node:
- Edit the HTML template to match your brand colors
- Add or remove sections like hashtags, highlights, or timestamps
- Modify the email header text or footer branding
5. Test & Activate
- Open n8n and go to this workflow
- Click the โChatโ button to open the chat interface
- Paste any competitor YouTube video URL and press send
- Watch the workflow run step by step in the Execution View
- Check your inbox โ the styled HTML report should arrive within 1โ3 minutes
- 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:
- YES (summary ready) โ Moves forward to build the email report
- NO (still processing) โ Loops back to โWait 30 Secondsโ and retries automatically
> 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:
- โ Video title and URL
- โ Full AI-generated summary
- โ Key highlights with start/end timestamps
- โ Sub-events with individual timestamps
- โ Hashtags and topic tags
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:
- Verify your WayinVideo API key is correct in both the Submit and Poll nodes
- Check your WayinVideo account has active credits
- Ensure the video URL is publicly accessible (private or age-restricted YouTube videos wonโt work)
- Try with a shorter video first (under 20 minutes) to test
Workflow stuck in polling loop:
- Long videos (1+ hour) can take 5โ10 minutes to process โ this is completely normal
- Check your WayinVideo dashboard to see if the job is still running
- If stuck for more than 15 minutes, check API status Email not being received:
- Re-authenticate your Gmail OAuth2 credential
- Check your spam/junk folder
- Verify the recipient email address is correct in the Send Gmail node
- Make sure Gmail OAuth2 has send permissions enabled
Video URL not accepted:
- Paste only the raw URL with no extra text
- Use full YouTube URL format:
https://www.youtube.com/watch?v=... - Some region-locked or private videos may not be accessible by the API
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