Практикувайте на вашия собствен сървър без ограничения: уебсайтове, ботове, съдържание и автоматизации на едно място.
Започнете вашето пътуванеMini-Project 1-1: Gemini YouTube Autoposter
Gemini + Google OAuth + YouTube Autoposter
Your Gemini agent keeps expanding the same automation tab. This time it must add Google OAuth, grab tokens safely, and post the HeyGen video to YouTube while keeping the existing Telegram deliverable untouched.
Mission Inventory
- Ready to use: the Node-RED tab from Mini-Project 1-0 (quotes → HeyGen → Telegram), Gemini CLI terminal, local Git.
- What to pass to Gemini: Google Cloud OAuth Client ID + secret, your redirect URI (see instructions below), and your desired YouTube defaults (title/description/visibility). HeyGen + Telegram credentials already live in the existing flow and must not be re-entered.
- Expected result: a flow that generates the quote, renders the HeyGen clip, then sends the same video to Telegram and uploads it to YouTube using fresh OAuth tokens.
Mission Path
- Prep your Google project. Enable YouTube Data API, configure the OAuth consent screen, generate a Web Client (ID + secret).
- Capture your redirect URI. In the Node-RED frame below, click “↗ Open in new tab” and copy the URL (e.g.,
https://student-host:1880/). AppendOAuth— that full URL goes into Google’s console and your prompt. - Google OAuth Manager tab. Gemini must keep the existing tab intact and use a dedicated tab for the OAuth callback, token exchange, periodic refresh, and manual debug injects (mirroring the baseline flow on our host).
- Extend the main tab. Reuse the quote + HeyGen pipeline, then branch so one path hits the existing Telegram sender and the new path uploads to YouTube.
Student instructions
- Hands off Node-RED wiring. Provide credentials + redirect URI — Gemini does all the editing.
- Repo discipline. Gemini keeps the work inside
/home/admin/gemini-flows, committing snapshots before/after. - Context separation. Each mini-project stays in its own README + git history, but the automation tab itself keeps growing.
- Final proof. Gemini must show how to trigger the existing inject so you see both Telegram and YouTube outputs, plus how to run the manual token refresh inject.
Prompt Template
Replace the placeholders with your real keys, select all, copy, and paste the text into the Gemini terminal below (right-click → Paste or Shift+Ctrl+V). Make sure everything lands correctly before pressing Enter.
Redirect URI tip
Use the “↗ Open in new tab” button inside the Node-RED frame to pop it out, then copy the browser address (it includes your unique host + port). Add OAuth at the end and paste that in both Google’s console and the prompt above.
Embedded labs
Gemini deploys → refresh Node-RED below
Support
- If you need to confirm credentials or API scopes, use the messaging drawer (speech-bubble icon).
- Questions? Ping Telegram HQ: @SellSystemsHQ.
Практикувайте на вашия собствен сървър без ограничения: уебсайтове, ботове, съдържание и автоматизации на едно място.
Започнете вашето пътуване