Back to Catalog

End-to-end YouTube video automation with HeyGen, GPT-4 & Avatar videos

Amjid AliAmjid Ali
804 views
2/3/2026
Official Page

πŸŽ₯ End-to-End YouTube Video Automation Workflow with n8n, HeyGen & AI

Automate the entire YouTube content creation pipeline β€” from video idea to AI-generated avatar video, upload, metadata generation, and publishing β€” with zero manual intervention!


Who is this for?

This template is perfect for:

  • Affiliate marketers (e.g., PartnerStack, SaaS products)
  • YouTube creators scaling video production
  • Agencies managing client content
  • Educators and coaches delivering automated video lessons
  • Entrepreneurs running faceless YouTube channels

🧠 What problem does it solve?

Publishing consistent, high-quality video content is essential for audience growth and monetization. But manually creating each video β€” researching, writing, recording, uploading, and optimizing β€” is slow, repetitive, and unsustainable at scale.

This workflow solves that by automating:

  • βœ… Content sourcing from Google Sheets
  • βœ… Script generation with AI
  • βœ… Avatar video creation via HeyGen
  • βœ… YouTube upload and metadata
  • βœ… Final publishing and status update

All done without touching a single button. Schedule it weekly and watch videos go live while you sleep.


βš™οΈ What this workflow does

  • πŸ“₯ Reads video ideas from a Google Sheet (e.g., PartnerStack affiliate product)
  • 🌐 Fetches product details from the web using HTTP Request
  • 🧠 Generates a promotional video transcript using an AI agent
  • πŸŽ™ Converts the script to an avatar video using HeyGen API
  • ⏳ Waits for the video to render and fetches download URL
  • ⬆️ Uploads the video to YouTube via API
  • 🧠 Generates title, description, tags, and hashtags using AI
  • πŸ”„ Updates video metadata and changes visibility to Public
  • πŸ“Š Logs publication details back to Google Sheets
  • πŸ‘€ Optional human-in-the-loop step before publishing

πŸ›  Setup

  1. πŸ”Œ Connect the following integrations:

    • Google Sheets (or Airtable)
    • HeyGen API
    • YouTube Data API (OAuth 2.0)
    • OpenAI / Gemini / Ollama
  2. 🧾 Add your video ideas to Google Sheets:

    • Include product name, link, and "To Do" status
  3. πŸ“‚ Import the n8n template and configure API credentials

  4. 🧠 Customize your AI prompt for tone, format, and industry

  5. πŸ•’ Schedule it to run weekly (1 video per week)


✏️ How to customize this workflow

  • Swap Google Sheets with Airtable, Notion, or API feeds
  • Modify AI prompts for different use cases: reviews, explainers, tutorials
  • Use D-ID, Synthesia, or your preferred avatar platform
  • Add analytics, thumbnails, or comment automation
  • Localize content for multi-language channels
  • Integrate with Slack, Discord, or Telegram for notifications

πŸ“Œ Sticky Notes Included

  • πŸ“Š Get Partner Idea: Pulls one item from the Google Sheet
  • 🌐 Fetch Content: Extracts product details via HTTP request
  • 🧠 AI Script: Generates video transcript using GPT or Gemini
  • πŸŽ₯ Video Generation: Sends script to HeyGen, waits for rendering
  • ⬆️ Upload to YouTube: Uploads video file
  • 🧠 Metadata Generator: Creates optimized title, tags, description
  • πŸ—“ Metadata Update: Updates YouTube metadata and sets video to Public
  • πŸ“‹ Sheet Update: Marks video as published in the Google Sheet
  • πŸ§‘ Human Approval (Optional): Pause & resume on manual review

🌐 Useful Links


πŸ”— Why this workflow?

This advanced automation setup is ideal for users exploring:

  • YouTube automation via n8n and API
  • AI-powered content pipelines with OpenAI/Gemini
  • Avatar video generation (HeyGen / D-ID / Synthesia)
  • Workflow automation for affiliate marketing
  • Full-stack video publishing using no-code tools
  • Enterprise-grade publishing for brands and creators

Built with modularity, customization, and full control in mind β€” whether you’re using n8n Cloud or a self-hosted instance.

n8n YouTube Video Automation with AI and HeyGen

This n8n workflow automates the end-to-end process of generating YouTube video ideas, creating scripts, and potentially preparing for avatar video generation using AI. It leverages Google Sheets for content management, OpenAI for AI-driven text generation, and includes placeholders for video creation and publishing.

What it does

This workflow streamlines the content creation process for YouTube by:

  1. Triggering on Schedule: Initiates the workflow at a predefined interval to check for new content ideas.
  2. Fetching Content from Google Sheets: Reads a list of video ideas or topics from a specified Google Sheet.
  3. Filtering for New Ideas: Identifies new, unprocessed video ideas by checking a "Published" status.
  4. Generating Video Script with AI: Uses an OpenAI Chat Model (via an AI Agent) to generate a detailed video script based on the provided idea.
  5. Structuring AI Output: Parses the AI-generated script into a structured format (e.g., JSON) for easy use in subsequent steps.
  6. Updating Google Sheet: Marks the processed video idea in the Google Sheet as "Published" to prevent reprocessing.
  7. Sending Email Notification: Notifies a specified email address about the successful generation of a new video script.
  8. Placeholder for Video Creation (HeyGen/Avatar Videos): Includes an HTTP Request node, likely intended for integration with a video generation service like HeyGen (as suggested by the directory name), to create avatar videos from the generated script.
  9. Placeholder for YouTube Upload: Includes a YouTube node, indicating the intention to upload the generated video to YouTube.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Google Account: For Google Sheets integration. You will need to configure Google Sheets credentials in n8n.
  • OpenAI API Key: For the AI Agent and OpenAI Chat Model nodes. You will need to configure OpenAI credentials in n8n.
  • SMTP Server/Email Service: For the "Send Email" node to send notifications.
  • HeyGen Account (Optional, but likely intended): If you plan to use HeyGen for avatar video generation, you will need an account and its API credentials.
  • YouTube Account (Optional, but likely intended): If you plan to upload videos directly to YouTube, you will need a YouTube account and its API credentials.

Setup/Usage

  1. Import the Workflow:

    • Download the provided JSON file.
    • In your n8n instance, click "Workflows" in the left sidebar.
    • Click "New" and then "Import from JSON".
    • Paste the JSON content or upload the file.
  2. Configure Credentials:

    • Locate the "Google Sheets" node and configure your Google Sheets API credentials.
    • Locate the "OpenAI Chat Model" node and configure your OpenAI API credentials.
    • Locate the "Send Email" node and configure your SMTP or email service credentials.
    • If using HeyGen or YouTube, configure the respective credentials for the "HTTP Request" and "YouTube" nodes.
  3. Configure Google Sheet:

    • Create a Google Sheet with a column for video ideas and another for a "Published" status (e.g., TRUE/FALSE).
    • Update the "Google Sheets" node to point to your specific spreadsheet and sheet name, and configure the column mappings.
  4. Configure AI Agent:

    • Review the prompts and settings within the "AI Agent" and "OpenAI Chat Model" nodes to ensure they align with your desired video script generation style and content.
    • Adjust the "Structured Output Parser" if your desired output format from the AI changes.
  5. Review and Customize:

    • Examine the "HTTP Request" node. This node is currently a placeholder and would need to be configured with the specific HeyGen API endpoint, authentication, and payload to generate a video from the AI-generated script.
    • Examine the "YouTube" node. This node is also a placeholder and would need to be configured for uploading the generated video, including title, description, tags, and privacy settings.
    • Adjust the "Schedule Trigger" to your preferred interval for checking new ideas.
    • Modify the "Send Email" node to specify the recipient, subject, and body of the notification email.
  6. Activate the Workflow:

    • Once all configurations are complete, save the workflow and activate it.

Related Templates

Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled

Who Is This For? This n8n workflow listens for order cancellations in Shopify, extracts relevant customer and order data, checks if the customer’s phone number is registered on WhatsApp via the Rapiwa API, and sends a personalised apology message with a re-order link. It also logs successful and unsuccessful attempts in Google Sheets for tracking. What This Workflow Does Listens for cancelled orders in your Shopify store Extracts customer details and order information Generates a personalised apology message including a reorder link Sends the message to customers via WhatsApp using a messaging API (e.g., Twilio or Rapiwa) Logs the communication results for tracking purposes Key Features Real-Time Cancellation Detection: Automatically triggers when an order is cancelled Personalised Messaging: Includes customer name, order details, and a direct reorder link WhatsApp Integration: Sends messages via WhatsApp for higher engagement Error Handling: Logs successful and failed message deliveries Reorder Link: Provides a convenient link for customers to reorder with one click Requirements n8n instance with nodes: Shopify Trigger, HTTP Request (for WhatsApp API), Code, Google Sheets (optional) Shopify store with API access WhatsApp messaging provider account with API access Valid customer phone numbers stored in Shopify orders How to Use β€” Step-by-Step Setup Credentials Setup Shopify API: Configure Shopify API credentials in n8n to listen for order cancellations WhatsApp API: Set up WhatsApp messaging credentials (e.g., Twilio, Rapiwa, or any supported provider) Google Sheets (Optional): Configure Google Sheets OAuth2 if you want to log communications Configure Trigger Set the workflow to trigger on Shopify order cancellation events Customize Message Content Modify the apology message template to include your store branding and tone Ensure the reorder link dynamically includes the customer's cancelled order info Set Up WhatsApp Node Connect your WhatsApp API credentials Ensure the phone numbers are formatted correctly for WhatsApp delivery Google Sheet Required Columns You’ll need two Google Sheets (or two tabs in one spreadsheet): A Google Sheet formatted like this ➀ sample The workflow uses a Google Sheet with the following columns to track coupon distribution: | Name | Number | Email | Address | Price | Title | Re-order Link | Validity | Status | | -------------- | ------------- | --------------------------------------------------- | ----------------- | ----------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------ | ---------- | | Abdul Mannan | 8801322827799 | contact@spagreen.net | Dhaka, Bangladesh | BDT 1955.00 | Pakistani Lawn | Link πŸ”— | unverified | not sent | | Abdul Mannan | 8801322827799 | contact@spagreen.net | Dhaka, Bangladesh | BDT 1955.00 | Pakistani Lawn | Link πŸ”— | verified | sent | Important Notes Phone Number Validation: Ensure customer phone numbers are WhatsApp-enabled and formatted properly API Rate Limits: Respect your WhatsApp provider’s API limits to avoid throttling Data Privacy: Always comply with privacy laws when messaging customers Error Handling: Monitor logs regularly to handle failed message deliveries Testing: Test thoroughly with dummy data before activating the workflow live Useful Links Dashboard: https://app.rapiwa.com Official Website: https://rapiwa.com Documentation: https://docs.rapiwa.com Support & Help WhatsApp: Chat on WhatsApp Discord: SpaGreen Community Facebook Group: SpaGreen Support Website: https://spagreen.net Developer Portfolio: Codecanyon SpaGreen

RapiwaBy Rapiwa
103

Automate job searching & resume customization with AI, LinkedIn & Google Sheets

πŸ€– AI-Powered Job Matcher & Resume Customizer Description This advanced workflow automates the entire job search and preparation process, moving beyond simple notifications to provide AI-driven career intelligence. It connects to LinkedIn to scrape fresh job postings, filters against jobs you've already seen, and then uses powerful LLMs (Mistral Large/Small) to perform a detailed resume-to-job match, generate tailored cover letters, and provide concrete resume improvement suggestions. All data is logged into a Google Sheet for comprehensive tracking, and a clean, single Daily Digest Email summarizes the top 5 matches found each day. --- ✨ Key Features Automated Scheduling: Runs daily to find new job postings. Multi-Keyword Search: Uses your main job title and three alternate titles generated by an AI Agent for maximum search coverage. LinkedIn Web Scraping: Pulls new job URLs, details, location, and salary data from LinkedIn Search results. Duplicate Prevention: Uses the Compare Datasets node to ensure only new, unseen jobs are processed against your master Google Sheet. Intelligent Matching (LLM): The workflow performs a detailed job-to-resume comparison, generating: A Match Score (0-100) with evidence for alignment in skills, experience, and domain. A Tailored Cover Letter specific to the job title and company. Actionable Resume Improvement points (e.g., [ADD], [QUANTIFY]) to optimize your resume for the specific role. Centralized Tracking: Saves all job data, match scores, cover letters, and resume suggestions to a Google Sheet. Professional Daily Digest: Sends a single, clean HTML email summarizing the top 5 highest-scoring job matches for easy review. --- πŸ› οΈ Prerequisites n8n Credentials: Google Drive: To download your resume (PDF/DOCX file URL). Google Sheets: To connect to your job tracking sheet. Gmail: To send the daily digest email. Mistral Cloud: For the LLM processing (Resume Breakdown, Job Matching, and Resume Analysis). External Files: A Job Tracking Google Sheet (used as a master database). Your current Resume file (PDF recommended, hosted on Google Drive). Setup Notes: Update the file links (Download Resume node) and Google Sheet details (Get row(s)/Append nodes). Set your personal email address in the Send Digest Email node. Review the LLM prompts to tailor the AI agent's persona and output fields to your exact needs.

Jordan HoyleBy Jordan Hoyle
1405

Automate peer review assignments with GPT-4-nano, Slack and email notifications

Introduction Automate peer review assignment and grading with AI-powered evaluation. Designed for educators managing collaborative assessments efficiently. How It Works Webhook receives assignments, distributes them, AI generates review rubrics, emails reviewers, collects responses, calculates scores, stores results, emails reports, updates dashboards, and posts analytics to Slack. Workflow Template Webhook β†’ Store Assignment β†’ Distribute β†’ Generate Review Rubric β†’ Notify Slack β†’ Email Reviewers β†’ Prepare Response β†’ Calculate Score β†’ Store Results β†’ Check Status β†’ Generate Report β†’ Email Report β†’ Update Dashboard β†’ Analytics β†’ Post to Slack β†’ Respond to Webhook Workflow Steps Receive & Store: Webhook captures assignments, stores data. Distribute & Generate: Assigns peer reviewers, AI creates rubrics. Notify & Email: Alerts via Slack, sends review requests. Collect & Score: Gathers responses, calculates peer scores. Report & Update: Generates reports, emails results, updates dashboard. Analyze & Alert: Posts analytics to Slack, confirms completion. Setup Instructions Webhook & Storage: Configure endpoint, set up database. AI Configuration: Add OpenAI key, customize rubric prompts. Communication: Connect Gmail, Slack credentials. Dashboard: Link analytics platform, configure metrics. Prerequisites OpenAI API key Gmail account Slack workspace Database or storage system Dashboard tool Use Cases University peer review assignments Corporate training evaluations Research paper assessments Customization Multi-round review cycles Custom scoring algorithms Benefits Eliminates manual distribution Ensures consistent evaluation

Cheng Siong ChinBy Cheng Siong Chin
42