Automate end-to-end AI video creation by transforming text scripts into professional avatar videos with natural voiceovers. 🎬🤖 This workflow receives a script via webhook, generates realistic audio using ElevenLabs, creates an AI avatar video through HeyGen, continuously polls for completion, and uploads the final MP4 file to Google Drive. The completed video is also returned directly via webhook for frontend or app usage. Perfect for product demos, onboarding videos, explainers, and content platforms that need scalable video generation without manual editing. 🚀📹
1️⃣ Receives a POST request containing script, avatar ID, voice ID, and style via webhook. 🌐
2️⃣ Extracts and validates request parameters for processing. 🧾
3️⃣ Generates natural-sounding voiceover audio using ElevenLabs. 🎙️
4️⃣ Uploads the generated audio file to HeyGen as a video asset. ⬆️
5️⃣ Creates an AI avatar video using the selected HeyGen avatar and audio track. 🤖🎥
6️⃣ Polls HeyGen every few seconds until video generation is complete. ⏳
7️⃣ Retrieves video URLs, captions, thumbnails, and metadata. 📊
8️⃣ Downloads the finished MP4 video file. ⬇️
9️⃣ Uploads the final video to Google Drive with structured naming. ☁️
🔟 Returns the video file via webhook response for frontend display or download. 🔁
1️⃣1️⃣ Sends Slack alerts automatically if any workflow error occurs. 🚨
✅ Converts plain text into studio-quality avatar videos automatically
✅ Uses human-like AI voiceovers from ElevenLabs
✅ Eliminates manual video recording, editing, and rendering
✅ End-to-end automation from script → video → Drive
✅ Frontend-ready with webhook video response
✅ Ideal for scalable video content production