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

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

Ready for 3.0

by Rahul Joshi ✓ · 135 views · created 2025-12-15 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 21 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Google Drive, Slack and Gmail.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Parse Incoming Script Payload (Code): runs custom JavaScript code
  2. Slack: uses Slack
  3. Rewrite & Structure Video Script (AI Agent): runs an AI agent, with model: LLM Engine for Script Rewriting; memory: Apply Script Writing Memory Context; output parser: Validate Structured Script Output
  4. Submit Video Generation Request to HeyGen (HTTP Request): calls an HTTP API
  5. Wait: pauses before continuing
  6. Check HeyGen Video Status (HTTP Request): calls an HTTP API
  7. Wait: pauses before continuing
  8. Evaluate Video Completion Status (If): checks a condition and branches into true / false
  9. Download Generated HeyGen Video (HTTP Request): calls an HTTP API
  10. Upload Generated Video to Google Drive (Google Drive): uses Google Drive

…plus 3 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle DriveSlackGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (13)

From the author

📘 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…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.