Deploy a powerful n8n workflow chatbot to analyze YouTube videos. Extract transcripts, fetch details, and generate structured summaries using an n8n agent and custom n8n node logic.
Download this n8n workflow template and start using it instantly.
Content Researchers: Individuals needing quick, structured summaries of technical YouTube content. n8n Developers: Users interested in learning how to create complex n8n Agent workflows utilizing custom tools and code nodes. Digital Marketers: Professionals looking to rapidly analyze video content for repurposing into text formats. Automation Enthusiasts: Anyone seeking advanced n8n templates integrating external APIs (YouTube Data) with conversational AI.
This comprehensive n8n workflow solves the problem of manually sifting through long YouTube videos for key information. It leverages the power of a conversational AI Agent, allowing users to simply paste a video ID and ask for a detailed summary or analysis. The workflow is structured into two main parts: the interactive AI Chatbot and a dedicated YouTube Video Processing Tool. This tooling approach, a key feature of advanced n8n workflow design, ensures that the AI only retrieves and processes the extensive transcript data when necessary, maximizing efficiency. By combining native n8n node functionality with custom scripting, this particular n8n workflow provides a reusable and highly customizable solution for video content analysis.
This powerful automation operates on a dual-trigger system, showcasing an advanced application of n8n templates:
When chat message received n8n trigger node.YouTube Video Agent (a LangChain Agent) receives the message and analyzes the user's intent. Its system prompt is designed to recognize and extract the YouTube video ID.YouTube Processing Tool n8n node.YouTube Processing Tool is implemented using the When Executed by Another Workflow n8n trigger.Workflow Variables to define the necessary VIDEOID and the GOOGLEAPI_KEY.Create YouTube API URL) and an HTTP Request n8n node (Get YouTube Video Details) to fetch video metadata from the Google Data API. The other uses a custom n8n node (Get YouTube Transcript) to scrape the transcript.Split Out and Combine) into a single text item.Merge YouTube Details & Transcript and Create One JSON Object).YouTube Video Agent. The Agent then uses the retrieved transcript and its detailed system instructions to generate a structured, technically accurate summary, which is finally returned to the user via the When chat message received n8n trigger's response mechanism.To deploy this comprehensive n8n workflow, follow these steps:
gpt-4o-mini1). You must ensure these credentials are linked correctly in the respective n8n node settings.Workflow Variables n8n node, replace [Your-Google-API-Key] with your actual Google API key, which must have access to the YouTube Data API V3. This is crucial for the Get YouTube Video Details n8n node to function.When chat message received n8n trigger to active and make a note of its webhook URL to start chatting with your AI Agent.When Executed by Another Workflow n8n trigger to ensure the data retrieval part works correctly before relying on the AI Agent interaction.This advanced n8n workflow relies on several specialized and custom n8n node types:
When chat message received (n8n trigger): The primary n8n trigger for the chatbot. It listens for incoming chat inputs, supplying the user's message (chatInput) to the agent.
YouTube Video Agent: The core intelligence. This LangChain Agent n8n node handles decision-making, using its gpt-4o-mini model (or DeepSeek as an alternative) to decide whether to answer directly or invoke a tool.
Function: Orchestrates the conversational flow and summary generation.
Key Configuration: Contains an extremely detailed system message instructing the AI on how to structure the output (using Markdown headers, bullet points, and specific content organization) and explicitly instructing it to identify and extract the videoId for tool use.
YouTube Processing Tool: An essential toolWorkflow n8n node that allows the agent to call the video extraction logic embedded within the same n8n workflow.
Function: Exposes the video processing capabilities to the AI Agent.
Key Configuration: Description clearly states its purpose: "Call this tool to get details and transcript from a YouTube video. Get the videoId from the user's prompt."
Get YouTube Transcript (Code n8n node): A custom n8n code node that uses the external youtube-transcript library.
Function: Fetches the complete textual transcript based on the provided VIDEO_ID.
Key Configuration: Requires youtube-transcript to be available in the n8n environment (via npm i -g youtube-transcript).
Get YouTube Video Details (HTTP Request n8n node): Uses the youtubeUrl constructed by the preceding code node.
Function: Retrieves official metadata (title, statistics, description) from the YouTube Data API V3.
Use this comprehensive n8n workflow template to automatically reposition your nodes for optimal layout and explore advanced RAG architectures using n8n AI nodes and LLMs.

Automate YouTube transcript extraction, use GPT-4o-mini via LangChain to generate structured summaries, and deliver results via Telegram. This powerful n8n workflow template accelerates video content analysis.

Automate receipt data entry using this powerful n8n workflow. Extract YAPE or general receipt details via Telegram OCR and instantly save them to Google Sheets using OpenAI.

Use this powerful n8n workflow template to automatically parse flight confirmation emails, calculate associated CO2 emissions using the Carbon Interface API, and log all results in Google Sheets.


As an AI Automation consultant based in Canada, I partner with forward-thinking organizations to implement AI solutions that streamline operations and drive growth.







































