YouTube video optimization & cross-platform distribution with GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 43 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects YouTube, LinkedIn, X (Formerly Twitter) and Facebook Graph API and 4 more.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Workflow Configuration (Edit Fields (Set)): sets 22 fields: videoId, channelId, competitorApiUrl…
- Fetch Video Analytics (YouTube): get (video)
- Get Video Details (YouTube): get (video)
- Aggregate Analytics Data (Code): runs custom JavaScript code
- Prepare SEO Prompts (Edit Fields (Set)): sets 5 fields: videoTitle, videoDescription, videoTags…
- Calculate Engagement Score (Code): runs custom JavaScript code
- Fetch Competitor Data (HTTP Request): calls an HTTP API
- Fetch Trending Topics (HTTP Request): calls an HTTP API
- Detect High Engagement (If): checks a condition and branches into true / false
- Competitor Comparison (Code): runs custom JavaScript code
…plus 31 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (15)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - YouTube
n8n-nodes-base.youTube - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - LinkedIn
n8n-nodes-base.linkedIn - X (Formerly Twitter)
n8n-nodes-base.twitter - Facebook Graph API
n8n-nodes-base.facebookGraphApi - SendGrid
n8n-nodes-base.sendGrid - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
This workflow automates the post-publish process for YouTube videos, combining advanced SEO optimization, cross-platform promotion, and analytics reporting. It is designed for creators, marketers, and agencies who want to maximize the reach and performance of…