YouTube Transcript to Structured Metadata
detail.loadingPreview
Automates the extraction of YouTube video information and transcript, generating structured metadata in English and Chinese using AI.
About This Workflow
This workflow automates the process of extracting key metadata and generating structured summaries from YouTube video transcripts. It begins by receiving a YouTube URL via a webhook, then retrieves video details, extracts the transcript, and uses AI (GPT-4o mini) to generate a concise, structured summary in markdown format. Finally, it returns this structured metadata and an AI-generated summary, along with sending a notification to Telegram and responding to the webhook.
Key Features
- Webhook Trigger: Initiates the workflow with a YouTube URL.
- YouTube Video Details: Fetches video title, description, and ID.
- Transcript Extraction: Retrieves the full transcript of the YouTube video.
- Text Concatenation: Combines transcript segments into a single text block.
- AI-Powered Summarization: Utilizes GPT-4o mini to create a structured, markdown-formatted summary of the transcript, adhering to specific formatting guidelines (Level 2 headers, bullet points, bolding, etc.).
- Metadata Structuring: Organizes extracted video information and the AI summary into a structured JSON object.
- Response and Notification: Responds to the webhook with the generated metadata and sends a notification to a Telegram chat with basic video details.
How To Use
- Trigger the Workflow: Send a POST request to the provided webhook URL with a JSON payload containing
{"youtubeUrl": "YOUR_YOUTUBE_URL"}. - Automatic Processing: The workflow will automatically:
- Extract the YouTube video ID.
- Fetch video details (title, description).
- Download the video transcript.
- Concatenate the transcript.
- Use the
gpt-4o-mininode to analyze and summarize the transcript according to the defined prompt. - Structure the output into a
Response Object.
- Receive Output: The workflow will respond to the webhook with the structured metadata and send a basic notification to Telegram.
Node Configuration Notes:
- Webhook: Configure the path (e.g.,
ytube). - YouTube Transcript: Ensure the node is correctly set up to process the video ID.
gpt-4o-mini/chainLlm: Configure your OpenAI API key and ensure the prompt in theSummarize & Analyze Transcriptnode is correctly formatted and references the concatenated transcript ({{ $json.concatenated_text }}).- Response Object: Verify that the fields are correctly mapped from previous nodes.
Apps Used
Workflow JSON
{
"id": "b67c6ea8-5f59-4a28-a937-af11bd219d40",
"name": "YouTube Transcript to Structured Metadata",
"nodes": 5,
"category": "Data Processing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b67c6ea8-5f59...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Multilingual Metadata Generation from Gmail and Google Sheets
Automate structured metadata generation in English and Chinese by processing Gmail emails and Google Sheets data.
Generate Structured Metadata with Multiple Languages
This workflow demonstrates generating structured metadata, specifically supporting both English and Chinese output.
Generate Structured Metadata in English and Chinese
This workflow demonstrates how to generate structured metadata in both English and Chinese. It fetches data, processes it, and saves it in a structured format.