Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate YouTube SEO and Publishing
15
Views
4
Downloads
33
Nodes
Download Template
Free
Preview Template
Utility Rating
8 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
YouTube
OpenAI
Google Gemini
Apify
Trigger Type
Manual trigger
Schedule
Approx setup time ≈ 55 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate YouTube SEO and Publishing?

Leon Petrou
FREE TEMPLATE
Automate YouTube SEO and Publishing
15
Views
4
Downloads
33
Nodes
Download Template
Free
Preview Template
Utility Rating
8 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
YouTube
OpenAI
Google Gemini
Apify
Trigger Type
Manual trigger
Schedule
Approximate setup time ≈ 55 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Grow your channel with less manual work. This automation finds your newest upload, writes a clear description, suggests strong tags, and updates video metadata. It also schedules private videos for publish dates so your content goes live on time. Ideal for creators, teams, and agencies that upload often and want consistent SEO.

The flow runs on a daily schedule, and you can also test it on demand. It pulls recent videos from YouTube, removes repeats from earlier runs, and checks if there is a new item to process. A transcript is scraped through an API call, then formatted for clean prompts. OpenAI drafts the description and title, and Google Gemini helps generate keyword tags. The result is pushed back to YouTube, and short waits are added to avoid rate limits. A separate path scans private or not listed videos and sets the publishAt date when needed.

Set YouTube OAuth, OpenAI and Google Gemini API keys, and an Apify token for the transcript call. Expect faster uploads, steady SEO quality, and fewer manual edits. This is useful for scheduled releases, daily content, or batches managed by a small team.

Copy link

Tools Required

YouTube
Sign up
Free: $0, default quota 10,000 units/day
OpenAI
Sign up
Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Google Gemini
Sign up
Free tier: $0 via Gemini API; e.g., Gemini 2.5 Flash-Lite free limits 1,000 requests/day (15 RPM, 250k TPM). Paid from $0.10/1M input tokens and $0.40/1M output tokens.
Apify
Sign up
Free plan: $0 / mo with $5 monthly platform credits; API access via token

What this workflow does?

  • Daily schedule plus manual test trigger to control when runs happen.
  • YouTube API actions to list videos, get details, update metadata, and set publish dates.
  • Remove duplicates to avoid processing older videos again.
  • Transcript retrieval via HTTP Request with an API token, then cleaned for prompt quality.
  • OpenAI generates SEO friendly descriptions and titles from the transcript.
  • Google Gemini supports tag generation through an agent prompt for comma separated tags.
  • Wait steps space API calls to reduce rate limit issues.
  • Batch loops handle multiple items and filter for private or not listed videos.

What are the benefits?

  • Reduce manual video SEO work from 2 hours to 10 minutes
  • Automate 90% of metadata tasks including title, description, and tags
  • Improve metadata consistency by 95% across uploads
  • Cut missed publish times by scheduling private videos reliably
  • Handle up to 10 times more uploads without extra staff
  • Connect YouTube, OpenAI, Google Gemini, and Apify in one flow

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with YouTube, OpenAI, Google Gemini and Apify. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create YouTube OAuth2 credentials. Double click any YouTube node and in the credential dropdown select Create new credential, then follow the on screen steps to connect your channel.
  4. In the credentials manager, add your OpenAI API Key. Double click the OpenAI nodes, choose Create new credential, paste your API key from the OpenAI account API page, and save.
  5. For Google Gemini, create an API key in Google AI Studio. In n8n, open the Gemini node credential dropdown, click Create new credential, paste the key, and save.
  6. Create an Apify API token in your Apify account. Open the HTTP Request node used for transcript, add the token in the Authorization header as Bearer YOUR_TOKEN, and save.
  7. Open the Fetch Latest Videos node and set Limit to the number of uploads you want to process. Keep Order set to date for newest first.
  8. Check the Remove Duplicates node. If you want to process many uploads once, detach it or use its Clear Database option, then reattach after the initial run.
  9. Open the Get Transcript and Adjust Transcript Format nodes and confirm the endpoint, headers, and expected fields match your Apify actor or API response.
  10. Review the prompts in the Create Description, YT Title, and YT Tags nodes. Adjust tone, length, and keyword rules to fit your channel style.
  11. Ensure private videos that need scheduling include a valid publishAt date. Scheduling works only if the video is set to Private with a publishAt timestamp.
  12. If transcripts fail to load, set the video to Unlisted or Published until the transcript is fetched, then switch back as needed.
  13. Run a manual test using the manual trigger. Check that metadata updates in YouTube and that tags are comma separated. Review execution logs for any errors.
  14. Enable the Every Day schedule trigger. Monitor the first week of runs, then tune wait times if you see rate limit errors.

Need help or want to customize this?

Similar Templates

n8n
Marketing
Generate YouTube Shorts from Google Sheets
Create short videos for YouTube by pulling a quote and creative prompts from Google Sheets, building the background image and video with AI, adding ambient sound, and publishing the final clip to your channel. Great for social teams and creators who want steady content without manual editing. A manual start reads one row from Google Sheets with the quote, author, and scene prompts. The flow calls an image model to render a vertical image, waits, then writes the image link back to the sheet. It then sends that image to a video model to produce a cinematic vertical clip, waits again, downloads the file, and records the video link in the sheet. Audio is generated with a voice and sound service, stored to Google Drive, and the drive link is saved. A code node formats overlay text, then FFmpeg merges video, audio, and on screen text into a final MP4. The clip uploads to YouTube with a resumable upload, and the sheet is updated with status and the YouTube link. You will need API keys for the AI services, Google and YouTube OAuth, and FFmpeg installed on the n8n host. Expect one run to replace hours of editing with a repeatable system managed from a spreadsheet. Ideal for daily quotes, quick tips, or listicle shorts driven by your sheet.
13 views
view
n8n
Marketing
Analyze YouTube Videos for Content Insights
Turn any YouTube video into fast, useful insights your team can use. Enter a video ID and chat with an AI that knows the full transcript and video details. Great for content teams, researchers, and anyone who needs quick answers without watching the whole video. Behind the scenes, a chat trigger starts a conversation and keeps history so the AI remembers context. A custom tool builds a YouTube Data API request and pulls title, description, and publish date. Code also collects the video transcript, splits it into parts, and combines it into one clean text block. The workflow then merges details and transcript into one JSON object. An AI agent powered by an OpenAI model reads this data and answers questions, summarizes content, and points to key moments. To set it up, you need a YouTube Data API key from Google Cloud and an OpenAI API key. DeepSeek is optional and can be added if you want more model choices. Expect faster research, less manual viewing time, and better reuse of video content. Common uses include building summaries for blogs, pulling quotes for social posts, and reviewing long training videos in minutes.
6 views
view
n8n
Marketing
Automate YouTube to Telegram Summaries
Turn any YouTube link into a clear summary and a quick team update. Built for marketing teams and creators who need fast takeaways for planning and content ideas. Send one URL and get an instant response and a Telegram ping. An HTTP webhook receives a POST with the YouTube URL. A code step extracts the video ID, then the YouTube API pulls the video title. The transcript tool collects captions, splits them into parts, and merges them back into one clean text block. An OpenAI model reads the full text and creates a structured summary with topics. The flow returns the results to the requester and posts the title and link to Telegram for fast visibility. You will need a YouTube API key, an OpenAI API key, and a Telegram bot token. Expect to cut review time from 30 minutes to 2 minutes per video and keep your team aligned in chat. Useful for competitor tracking, briefing writers, planning social posts, and quick research when your team needs the key points without watching the full video.
2 views
view
See More Templates

Credits: GitHub
YouTube video - these templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution. If you are the author and would like this template removed from the template library, email us at info@futurise.com and we will remove it promptly.