AutomationMart
Home/Browse/Create script-to-video avatar videos with GPT-4.1-mini, HeyGen, Google Drive, Gmail and Slack
n8n

Create script-to-video avatar videos with GPT-4.1-mini, HeyGen, Google Drive, Gmail and Slack

n8nn8n21 modulesv1.0
GmailSlackOpenAIGoogle Drive

Description This workflow automates the entire process of taking a raw user-submitted script, rewriting it into a polished HeyGen-ready narration, generating a full avatar video, handling all processing checks, retrieving the final MP4, uploading it to Google Drive, and notifying the user through email and Slack. It turns an unstructured script into a complete, ready-to-share video package without any manual intervention. The system rewrites scripts into structured sections (intro → narrati

At a glance

Create script-to-video avatar videos with GPT-4.1-mini, HeyGen, Google Drive, Gmail and Slack is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, OpenAI, Google Drive
Modules
21
Price
Free
Version
v1.0
Create script-to-video avatar videos with GPT-4.1-mini, HeyGen, Google Drive, Gmail and Slack workflow diagram

About this workflow

Description This workflow automates the entire process of taking a raw user-submitted script, rewriting it into a polished HeyGen-ready narration, generating a full avatar video, handling all processing checks, retrieving the final MP4, uploading it to Google Drive, and notifying the user through email and Slack. It turns an unstructured script into a complete, ready-to-share video package without any manual intervention. The system rewrites scripts into structured sections (intro → narration sections → closing), ensures the final narration fits HeyGen’s free-tier limits, submits the script to HeyGen’s video API, initiates a polling loop until the video is fully rendered, downloads the finished file, uploads it to Drive with metadata, and generates clean notification messages containing the file links. Errors at any point trigger automated Slack alerts for debugging. This workflow replaces manual rewriting, video rendering, download/upload, and team communication—providing a fully-managed script-to-video pipeline. ⚙️ What This Workflow Does (Step-by-Step) 🟢 Receive Script Request via Webhook Captures the raw script payload submitted by the user. 🧹 Parse Incoming Script Payload Converts stringified JSON body into structured data for processing. ✍️ Rewrite & Structure Video Script Using AI Transforms the raw script into: • Video title • Intro • Multiple sections (title + narration) • Closing • Combined fullscript optimized for HeyGen’s 300–350 word limit Ensures natural, human narration with smooth transitions. 🧠 Script Writing Memory + LLM Engine Maintains writing consistency and uses GPT-4.1-mini to generate polished narration. 🧪 Validate Structured Script Output Enforces strict JSON schema for titles, sections, closing, and fullscript. 🎞️ Submit Video Generation Request to HeyGen Sends structured script to HeyGen API with avatar, voice, and background settings for 1280×720 export. ⏳ Wait Before Polling Loop Initial delay before the first status check. 📡 Check HeyGen Video Status Queries the HeyGen API to check progress of the video generation. ⏳ Wait Before Rechecking Adds timed spacing between repeated polls. 🔍 Evaluate Video Completion If status = completed → proceed If still processing → loop back to polling sequence 📥 Download Generated HeyGen Video Retrieves the completed MP4 using the returned videourl. ☁️ Upload Video to Google Drive Uploads the MP4 to a specific Google Drive folder, returning: • File name • View link • Download link • Timestamp • Size metadata 📣 Generate Completion Notifications Using AI Creates two outputs: • A friendly short email summary • A concise Slack message Both containing the Google Drive file link. 🧠 Notification Memory + LLM Engine Maintains tone and ensures consistent messaging across channels. 🧪 Validate Notification Output JSON Ensures emailsubject, emailbody, and slackmessage follow schema. 💬 Send Video Ready Slack Notification Posts the final Slack message containing file details and Drive link. 📧 Send Video Ready Email Notification Emails the summary and file link to the designated recipient. 🚨 Error Handler Trigger → Slack Alert Any workflow failure sends a detailed diagnostic alert with node name, message, and timestamp. 🧩 Prerequisites • HeyGen API key • Google Drive OAuth connection • Slack API credentials • Gmail OAuth connection • Valid webhook endpoint to receive scripts 💡 Key Benefits ✔ Converts raw script → structured HeyGen-ready narration automatically ✔ Produces full HD avatar video with zero manual steps ✔ Polls HeyGen until the video is fully rendered ✔ Securely uploads final MP4 to Google Drive ✔ Auto-generates polished email + Slack notifications ✔ Ensures narrative consistency using memory context ✔ Provides real-time error alerts via Slack 👥 Perfect For HR teams automating onboarding videos Marketing teams producing quick avatar explainers Training content creators Founders creating rapid how-to or announcement videos Anyone needing instant script-to-video automation

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Transcribe Telegram messages and send replies using ChatGPT

Use the template to transcribe Telegram messages and generate AI-powered replies using ChatGPT. Enhance communication by sending responses directly through Telegram.

Free

Verify an email address by MailerCheck and send an email from a new Typeform response

Every time a new response is submitted in Typeform, an email address will be verified in MailerCheck and if the email address is valid an email will be sent via Gmail. This template expects your Typeform form to collect at least Email addresses.

Free

Import signed documents from DocuSign to Google Drive

After 7 days, all documents are downloaded from DocuSign and uploaded to Google Drive. The scenario is designed to run every Monday.

Free

Homey Pro - smarthouse integration with LLM

This n8n workflow sets up a smart home assistant using OpenAI and Homey integration. It uses LangChain agent tools to allow natural language queries (in Norwegian) to trigger workflows for controlling lights, curtains, temperature, TVs, and other devices across different rooms (e.g., living room, bedroom, cinema). The system uses tool-based workflows connected to specific smart home actions and responds in Norwegian. It’s designed to be modular and easily extended with new devices or capabilitie

Free

Add new GetResponse contacts to Zoho CRM (if the contact already exists in Zoho CRM, send a message in Slack instead of adding the contact to Zoho CRM)

Every time a new contact is added to GetResponse CRM, Make will automatically check if the contact already exists in Zoho CRM. If not, it will create a new contact in Zoho CRM. If yes, Make will automatically send a message in Slack.

Free

New RescueTime alerts sent as a Slack message

Every time a defined alert is updated in RescueTime, you will get a Slack message with the alerts details. (Only for Premium users)

Free

Cold outreach automation: Scrape local leads with Dumpling AI & call via Vapi

Who is this for? This template is for sales teams, agencies, or local service providers who want to quickly generate cold outreach lists and automatically call local businesses with a Vapi AI assistant. It’s perfect for automating cold calls from scraped local listings with no manual dialing or research. --- What problem is this workflow solving? Finding leads and initiating outreach calls can be time-consuming. This workflow automates the process: it scrapes business listings from Google Maps u

Free

Access control for AI agents (RBAC) using Airtable and Telegram

Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control. Demo & Explanation []( How it works - User permissions are managed in Airtable where every restricted AI tool is listed by name and connected via roles to users - Requests to the Main Agent can be sent through a Telegram message (can be replaced by Whatsapp, IMAP or similar) - On every request the Telegram username is used to query a list o

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free