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