youtube-to-heygen-video
Installation
SKILL.md
YouTube to HeyGen Avatar Video
Converts YouTube videos into 60-second vertical avatar videos using your HeyGen AI clone. Analyzes the video with Gemini AI, rewrites as an Alex Hormozi-style script, generates a social media caption, and creates the avatar video.
What It Does
- Sends YouTube URL to Gemini 2.0 Flash for direct video analysis
- Generates a ~180-word Alex Hormozi-style script (≈60 seconds of speaking)
- Creates a social media caption with SEO keywords and hashtags
- Sends script to HeyGen API for avatar video generation (1080x1920 vertical)
- Polls for completion and stores video URL in
gemini_video_agentdatabase table
How to Run
# Generate avatar video from YouTube
python3 skills/youtube-to-heygen-video/scripts/youtube_to_heygen_video.py "https://www.youtube.com/watch?v=VIDEO_ID"