Create script-to-video avatar videos with GPT-4.1-mini, HeyGen, Google Drive, Gmail and Slack
Ready for 3.0What 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).
- Parse Incoming Script Payload (Code): runs custom JavaScript code
- Slack: uses Slack
- 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
- Submit Video Generation Request to HeyGen (HTTP Request): calls an HTTP API
- Wait: pauses before continuing
- Check HeyGen Video Status (HTTP Request): calls an HTTP API
- Wait: pauses before continuing
- Evaluate Video Completion Status (If): checks a condition and branches into true / false
- Download Generated HeyGen Video (HTTP Request): calls an HTTP API
- Upload Generated Video to Google Drive (Google Drive): uses Google Drive
…plus 3 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
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)
- HTTP Request
n8n-nodes-base.httpRequest - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
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…