Translate YouTube video metadata into multiple languages with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects YouTube and OpenAI Chat Model. It also calls googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Configuration (Edit Fields (Set)): sets 4 fields: video_id, default_language, openai_model…
- Fetch video information (YouTube): get (video)
- Prepare target languages (Code): runs custom JavaScript code
- AI translator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Translation output parser
- Update video localization (HTTP Request): calls googleapis.com (PUT)
- Build localization URL (Edit Fields (Set)): sets 1 field: localization_url
Services it uses
HTTP calls to: googleapis.com
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.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - YouTube
n8n-nodes-base.youTube - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow fetches a YouTube video’s title and description, uses OpenAI to translate them into multiple target languages, and updates the video’s YouTube localizations via the YouTube Data API, returning a YouTube Studio link to review the…