Extract YouTube Engaging Moments Automatically with n8n

Discover how to use n8n to automatically extract engaging moments from YouTube videos using intensity data. This workflow helps content creators save time and highlight key video parts effortlessly.
webhook
httpRequest
if
+7
Workflow Identifier: 1836
NODES in Use: Webhook, Set, HTTP Request, If, Split Out, Filter, No Operation, Respond to Webhook, Aggregate, Sticky Note
Extract YouTube moments with n8n and HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does — n8n Extracts Key YouTube Moments Effortlessly

This workflow finds the most engaging parts of a YouTube video by taking its video ID as input.
It uses a public API to get “most replayed” data and filters moments with intensity scores under 0.6.
The process also removes moments too close in time (within 20 seconds) to avoid overlaps.
The output is a list of shareable URLs pointing to the best video moments.
This automation saves time and improves content highlights accuracy for better viewer engagement.


Inputs and Processing Steps

Inputs

  • The workflow receives a YouTube video ID via an HTTP GET request to the Webhook node URL.

Processing Steps

  1. Extract Video ID: The Set node pulls the ytID query parameter from the webhook call and saves it as youtubeVideoID.
  2. Fetch Intensity Data: The HTTP Request node calls https://yt.lemnoslife.com/videos?part=mostReplayed with the video ID to get video replay intensity markers.
  3. Verify Data: An If node checks if mostReplayed data exists in the API response.
  4. Handle Absence: If no data is present, the workflow sends JSON indicating no engaging moments were found.
  5. Split Markers: A Split Out node breaks the intensity markers array into individual markers.
  6. Filter by Intensity: A Filter node removes markers with intensityScoreNormalized below 0.6.
  7. Convert Time: A Set node converts start times from milliseconds to seconds.
  8. Remove Close Moments: Another Filter node removes moments less than 20 seconds apart.
  9. Format Messages: A Set node creates human-readable links starting a few seconds before each moment.
  10. Aggregate Results: The Aggregate node groups all moments into a single array.
  11. Send Response: The final Respond to Webhook node returns the structured JSON with engaging moments.

Who Should Use This Workflow

This workflow is best for anyone who needs to find important segments inside YouTube videos automatically.
Content creators, marketers, and digital strategists can save hours manually scrubbing videos.


Tools and Services Used

  • n8n automation platform: Builds and runs the workflow.
  • Public YouTube Replay Intensity API: Provides “most replayed” video segment data at https://yt.lemnoslife.com/.
  • HTTP GET Webhooks: Receives video IDs to trigger the sequence.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. In n8n editor, go to the top menu and choose “Import from File”.
  3. Select the downloaded workflow file to load it into n8n.

Configure Workflow

  1. Open the imported workflow in the editor.
  2. Check if any credentials or API keys are needed and add them (none required for the free public API in this case).
  3. Update the webhook URL host if required to fit your n8n instance domain.
  4. Review any fixed IDs, emails, or other fields and edit if needed.

Test and Activate

  1. Test the workflow by calling the webhook URL with a valid YouTube ytID query parameter.
  2. Check the JSON response to confirm engaging moments are returned.
  3. If all looks good, activate the workflow using the toggle switch in the n8n editor.
  4. The webhook URL will now work live, ready for any app or user to trigger.

If running n8n on a self-hosted server, make sure the instance is accessible externally. More help for self-host n8n is available.


Edge Cases and Failure Handling

  • If the API returns no “mostReplayed” data, the workflow responds with JSON showing no engaging moments, preventing dead-ends.
  • Invalid video IDs lead to 404 or empty responses from the API, which the workflow detects and reports.
  • The filter for spacing out moments avoids clutter by removing closely timed points.
  • Workflow activation must be complete for webhook to respond; otherwise, no data is returned.

Customization Ideas

  • Change intensity threshold in the filter node to be stricter or more relaxed.
  • Adjust minimum 20-second gap between moments to change how many highlights appear.
  • Add video title or intensity score fields to the output messages for richer info.
  • Replace the public API URL to use another source of intensity data.
  • Extend the workflow to send moment URLs to Slack, email, or save them in Google Sheets.

Summary

✓ Saves hours of manual video scrubbing
✓ Automatically extracts high-intensity replay moments
✓ Filters and formats moments into shareable links
✓ Handles absence of data gracefully
✓ Easy to set up in n8n with no API keys required
→ Provides video content teams precise timestamps to create promos or social clips faster
→ Improves viewer engagement by focusing on key video parts
→ Supports automation for better content marketing workflow


Extract YouTube moments with n8n and HTTP Request

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

The workflow uses a public API that returns “most replayed” intensity data for a given YouTube video ID. It filters and processes this data to find key moments.
A YouTube video ID is required as a query parameter to the webhook URL, in the form ?ytID=VIDEOID.
Yes, the workflow checks the API response and returns a JSON message indicating no engaging moments if no intensity data is found.
No API keys or credentials are required since the workflow uses a free public API for YouTube replay intensity data.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.