Generate AI avatar videos from scripts using ElevenLabs and HeyGen
Go to WorkflowDescription
๐ Description
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. ๐๐น
๐ What This Template Does
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. ๐จ
โญ Key Benefits
โ
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
๐งฉ Features
Webhook-based video generation trigger
ElevenLabs multilingual text-to-speech integration
HeyGen AI avatar video creation
Dynamic avatar, voice, and style selection
Polling loop to handle async video rendering
Google Drive video upload
Binary video return via webhook
Slack-based error handling and alerts
๐ Requirements
ElevenLabs API key (voice generation)
HeyGen API key (avatar video creation)
Google Drive OAuth2 credentials
Slack API credentials (optional, for error alerts)
Webhook client sending script, avatar_id, voice_id, and video_style
๐ฏ Target Audience
SaaS teams creating onboarding or explainer videos
Content creators producing AI talking-head videos
EdTech platforms generating video lessons
Marketing teams scaling video production
Automation teams building AI video pipelines