← All N8N workflows
AI & researchAgentChat TriggerExecute Workflow TriggerHTTP RequestOpenAI Chat Model

... or watch set up video [13 min]

Configured with Agent, Chat Trigger, Execute Workflow Trigger, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsOpenAI Chat ModelOpenAI Chat ModelSubworkflowget_channel_detailsTool WorkflowSubworkflowget_video_descriptionTool WorkflowSubworkflowget_list_of_videosTool WorkflowSubworkflowget_list_of_commentsTool WorkflowSubworkflowsearchTool WorkflowSubworkflowanalyze_thumbnailTool WorkflowSubworkflowvideo_transcriptionTool WorkflowData storePostgres Chat MemoryMemory Postgres ChatAI & modelsAI AgentAgentTriggerWhen chat messagereceivedChat TriggerWeb / APIGet CommentsHTTP RequestTriggerExecute WorkflowTriggerExecute Workflow TriggerWeb / APIGet Channel DetailsHTTP RequestWeb / APIGet Video DescriptionHTTP RequestTransformEdit FieldsEdit FieldsWeb / APIRun QueryHTTP RequestWeb / APIGet Videos by ChannelHTTP RequestTransformResponseEdit FieldsRoutingSwitchSwitchWeb / APIGet Video TranscriptionHTTP RequestAI & modelsOpenAIOpen Ai

Node categories in this workflow

  • AI & models
  • Subworkflow
  • Data store
  • Trigger
  • Web / API
  • Transform
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
get_channel_detailsSubworkflowTool WorkflowSee node parameters
get_video_descriptionSubworkflowTool WorkflowSee node parameters
get_list_of_videosSubworkflowTool WorkflowSee node parameters
get_list_of_commentsSubworkflowTool WorkflowSee node parameters
searchSubworkflowTool WorkflowSee node parameters
analyze_thumbnailSubworkflowTool WorkflowSee node parameters
video_transcriptionSubworkflowTool WorkflowSee node parameters
Postgres Chat MemoryData storeMemory Postgres ChatSee node parameters
AI AgentAI & modelsAgentSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
Get CommentsWeb / APIHTTP RequestSee node parameters
Execute Workflow TriggerTriggerExecute Workflow TriggerSee node parameters
Get Channel DetailsWeb / APIHTTP RequestSee node parameters
Get Video DescriptionWeb / APIHTTP RequestSee node parameters
Edit FieldsTransformEdit FieldsSee node parameters
Run QueryWeb / APIHTTP RequestSee node parameters
Get Videos by ChannelWeb / APIHTTP RequestSee node parameters
ResponseTransformEdit FieldsSee node parameters
SwitchRoutingSwitchSee node parameters
Get Video TranscriptionWeb / APIHTTP RequestPOST
OpenAIAI & modelsOpen Aiimage / analyze

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • httpQueryAuth
  • openAiApi
  • postgres

Workflow notes

... or watch set up video [13 min]

... or watch set up video [13 min]

AI Agent To Chat With Youtube

AI Agent To Chat With Youtube

Made by Mark Shcherbakov from community 5minAI

Navigating the content generation and optimization process can be complex, especially without significant audience insight. This workflow automates insights extraction from YouTube videos and comments, empowering users to create more engaging and relevant content effectively.

The workflow integrates various APIs to gather insights from YouTube videos, enabling automated commentary analysis, video transcription, and thumbnail evaluation. The main functionalities include:

  • Extracting user preferences from comments.
  • Transcribing video content for enhanced understanding.
  • Analyzing thumbnails via AI for maximum viewer engagement insights.
Set up steps

Set up steps

  1. API Setup:
  • Create a Google Cloud project and enable the YouTube Data API.
  • Generate an API key for Apify.
  • Generate API key for OpenAI
  • Create all credentials in N8N - OpenAI, Apify, Google Cloud.
  1. YouTube Creator and Video Selection:
  • Start by defining a request to identify top creators based on their video views.
  • Capture the YouTube video IDs for further analysis of comments and other video metrics.
  1. Comment Analysis:
  • Gather comments associated with the selected videos and analyze them for user insights.
  • Implement pagination to handle the maximum comment retrieval limits in API requests.
  1. Video Transcription:
  • Request transcriptions for videos of interest, ensuring to manage potential costs associated with longer video processing.
  • Utilize the insights from transcriptions to formulate content plans.
  1. Thumbnail Analysis:
  • Evaluate your video thumbnails by submitting the URL through the OpenAI API to gain insights into their effectiveness.
  1. Data Management:
  • Incorporate a database agent to organize video data and metrics, allowing efficient record management and future content planning.
... or watch set up video [13 min]

... or watch set up video [13 min]

Purpose and structure

This folder contains the ... or watch set up video [13 min] workflow. Its executable nodes use agent, chatTrigger, executeWorkflowTrigger, httpRequest, lmChatOpenAi, memoryPostgresChat, openAi, set, switch, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When chat message received, Execute Workflow Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Http/1440_HTTP_Executeworkflow_Automation_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Scenario 1: AI agent
  • Scenario 2: Agent tools
  • Replace credentials
  • Replace credentials in all nodes - Apify, OpenAI, Google

More in AI & research