YouTube Automation

লেসন ১৩ / ২৫

YouTube Integration পদ্ধতি

  • Google Cloud Console → YouTube Data API v3 Enable করুন
  • n8n → Google → YouTube OAuth2 credential তৈরি করুন

নতুন ভিডিও Upload হলে Automation

[Schedule Trigger — প্রতি ঘণ্টায়]
         ↓
[HTTP Request — YouTube API]
  GET: https://www.googleapis.com/youtube/v3/search
  Params:
    channelId: UCxxxxxxxxxx
    order: date
    maxResults: 5
    publishedAfter: {{ $now.minus({hours: 1}).toISO() }}
         ↓
[IF — নতুন ভিডিও আছে কি?]
  True ↓
[Telegram — Channel-এ ভিডিও শেয়ার]
[Facebook Page — পোস্ট করা]
[Google Sheets — Video log করা]

Comment Moderation Automation

[Schedule — প্রতি 30 মিনিটে]
         ↓
[YouTube API — Unread Comments পড়া]
  GET: /youtube/v3/commentThreads?videoId=xxx&status=heldForReview
         ↓
[Loop Over Items]
         ↓
[OpenAI — Comment বিশ্লেষণ]
  "এই comment কি spam, positive নাকি question?"
         ↓
[Switch]
  spam     → [YouTube API — Delete]
  positive → [YouTube API — Approve + Like]
  question → [OpenAI — Reply তৈরি + Post]

YouTube Analytics Report

[Schedule — প্রতি সোমবার সকাল ৯টায়]
         ↓
[YouTube Analytics API]
  GET: /youtube/analytics/v2/reports
  Params: startDate, endDate, metrics=views,likes,comments
         ↓
[Code Node — HTML report তৈরি]
         ↓
[Gmail — Weekly report পাঠানো]