AutomationMart
Home/Browse/Generate videos with AI, ElevenLabs,PIAPI Shotstack/Creatomate & post to Youtube
n8n

Generate videos with AI, ElevenLabs,PIAPI Shotstack/Creatomate & post to Youtube

n8nn8n71 modulesv1.0
GmailSlackAirtableGoogle SheetsOpenAIElevenLabs

Auto-Generate Long Videos with AI, ElevenLabs,PIAPI,Shotstack/Creatomate & Post to Youtube Overview This n8n automation workflow automates the creation, scripting, production, and posting of YouTube videos. It leverages AI (OpenAI), image generation (PIAPI), video rendering (Shotstack), and platform integrations (Airtable, Google Sheets, YouTube) to streamline the process. Target Audience - Content creators, video producers, and YouTubers seeking to auto

At a glance

Generate videos with AI, ElevenLabs,PIAPI Shotstack/Creatomate & post to Youtube is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, Airtable, Google Sheets. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Airtable, Google Sheets, OpenAI, ElevenLabs
Modules
71
Price
Free
Version
v1.0
Generate videos with AI, ElevenLabs,PIAPI Shotstack/Creatomate & post to Youtube workflow diagram

About this workflow

Auto-Generate Long Videos with AI, ElevenLabs,PIAPI,Shotstack/Creatomate & Post to Youtube Overview This n8n automation workflow automates the creation, scripting, production, and posting of YouTube videos. It leverages AI (OpenAI), image generation (PIAPI), video rendering (Shotstack), and platform integrations (Airtable, Google Sheets, YouTube) to streamline the process. Target Audience - Content creators, video producers, and YouTubers seeking to automate video content creation. - Digital marketing teams managing video campaigns for travel or history niches. - Users familiar with n8n, Airtable, Google Sheets, YouTube, and API integrations. Problem Solved Manually managing YouTube video production, from ideation to posting, is time-consuming and prone to errors. This workflow addresses: - Content Sourcing: Generates video ideas using AI based on "domain of choice". - Content Formatting: Automatically creates detailed scripts and scene structures. - Visual Production: Produces high-quality images and renders videos with minimal manual input. - Multi-Platform Integration: Publishes to YouTube with status tracking in Airtable and Google Sheets. - Status Tracking: Monitors progress (Generated, Scripted, Produced, Published) across platforms. Prerequisites Before setting up, ensure you have: 1. An n8n instance (self-hosted or cloud) 2. API credentials for: - OpenAI (for idea generation) - PIAPI.ai (for image and video generation) - ElevenLabs (for audio generation) - Shotstack (for video rendering) - Creatomate (for video rendering) - Airtable & Google Sheets and Drive (for storage and tracking) - Gmail (for notifications) - YouTube API (for posting to YouTube) How the Automation Works (Step by Step) 1. Trigger (Schedule Trigger) - Initiates the workflow daily - Connects to "Generate Idea" 2. Generate Idea - Uses OpenAI to create a unique 4-minute video idea with a title, description, keywords, scene structure, and intrigue note - Checks Airtable "Ideas" table via searchAirtable to avoid duplicates - Connects to "Parse Ideas" 3. Parse Ideas - Extracts title, description, and notes from the OpenAI output using JavaScript - Connects to "Add Ideas" 4. Add Ideas - Stores the initial idea in Google Sheets "Ideas" sheet with fields like "Idea", "Description", and "Progress" (set to "Generated") - Connects to "Store in Airtable" 5. Store in Airtable - Saves the idea to Airtable "Ideas" table with mapped fields and typecast enabled - Connects to "Generate Script" 6. Generate Script - Creates a 500-600 word script with 8-10 scenes using OpenAI, based on the latest "Generated" idea - Uses Structured Output Parser to format output - Connects to "Parse Script Output" 7. Parse Script Output - Formats the script into readable text and JSON, extracting scenes and closing question - Connects to "Store Script" 8. Store Script - Saves the script to Google Sheets "Production" sheet with "Script", "Scenes", and "Status" (set to "Scripted") - Connects to "Store Script in Airtable" 9. Store Script in Airtable - Saves the script to Airtable "Production" table with mapped fields and typecast enabled - Connects to "Updated Idea to Scripted" 10. Updated Idea to Scripted - Updates the idea status to "Scripted" in Google Sheets "Ideas" sheet - Connects to "Update Status Ideas Table" 11. Update Status Ideas Table - Updates the idea status to "Scripted" in Airtable "Ideas" table, matching by "Idea ID" - Connects to "Extract Scenes" 12. Extract Scenes - Parses scene data from Airtable "Production" table for image generation - Connects to "Text-to-Image" 13. Text-to-Image - Generates images for each scene using PIAPI - Connects to "Wait for 4 Min" 14. Wait for 4 Min - Waits 3 minutes to allow image generation to complete - Connects to "Get Images" 15. Trigger (Schedule Trigger1) - Initiates the posting process daily - Connects to "Search for Latest Ready Video" 16. Search for Latest Ready Video - Searches Airtable "Production" table for the latest video with "Status" = "Ready" - Connects to "If Ready?" 17. If Ready? - Checks if a video is ready (condition: Status contains Ready) - If true, connects to "Download Video" and "Update Production Table" 18. Download Video - Downloads the video file using the VideoURL from Airtable - Connects to "Post YouTube" 19. Post YouTube - Uploads the video to YouTube with title and description, using YouTube OAuth2 20. Update Production Table - Updates the "Production" sheet in Google Sheets, setting "Status" to "Published" and matching by "Production ID" Additional Nodes and Processes - OpenAI Chat Model: Powers "Generate Idea" and "Generate Script" with GPT - Structured Output Parser: Ensures proper JSON output for scripts - Get Images: Retrieves generated images - Extract Narration: Prepares narration for voice generation - Voice Generation: Generates voiceovers - Generate Music Prompt: Creates music prompts using OpenAI - Text-to-Music: Generates music - Build Shotstack Timeline: Constructs video timeline - ShotStack Render Video: Renders the final video - Poll Rendered Videos: Checks video rendering status - Final Video: Updates Airtable "Production" with final video details - Final Video Update: Updates Google Sheets "Production" with video URL - Music Urls: Adds music URLs to the process Setup Requirements Before starting, ensure you have the following 1 n8n Instance - A self-hosted or cloud-based n8n instance to run the workflow 2 API Credentials - OpenAI: API key - Airtable: Personal Access Token (e.g, "Airtable Personal Access Token - Google Sheets: OAuth2 credentials - PIAPI: HTTP Header Auth key - YouTube: OAuth2 credentials 3 Airtable Configuration - Base: "Youtube Videos" - Tables: - "Ideas" - "Production" - Share with the Airtable token 4 Google Sheets Configuration - Document: "Youtube Videos" - Sheets: - "Ideas" - "Production" - Share with the Google Sheets credential email 5. Shotstack Configuration (Assumed) - API key and endpoint for video rendering (not specified in JSON) Setup Instructions 1. Import the Workflow - Import the provided JSON file into your n8n instance 2. Configure Credentials - Add OpenAI, Airtable, Google Sheets, PIAPI, and YouTube credentials in n8n’s credential manager 3. Set Up Airtable - Create or update the "Ideas" and "Production" tables with the specified fields - Ensure proper permissions with the Airtable token 4. Configure Google Sheets - Create or update the "Ideas" and "Production" sheets with the specified columns - Share the document with the Google Sheets credential email 5. Schedule Triggers - Set "Schedule Trigger" to trigger 6. Test the Workflow - Run manually to verify each node’s functionality - Check Airtable, Google Sheets, and YouTube for updates - Ensure PIAPI image generation completes (wait 4 minutes) 7. Monitor and Adjust - Monitor API rate limits (e.g, PIAPI, YouTube) - Adjust wait times if image or video generation delays occur - Verify connections for unlinked nodes Benefits - Efficiency: Automates the entire process from idea to posting - Scalability: Handles daily video production - Quality: Ensures cinematic scripts and visuals - Tracking: Provides detailed progress monitoring Notes - Rate Limits: Be aware of PIAPI (150,000 units per task) and YouTube API limits - Timing: Adjust wait nodes (e.g, "Wait for 4 Min") based on API response times Conclusion and Suggestions to Improve the Automation Conclusion This workflow streamlines YouTube video production, making it ideal for busy content creators, video producers, and marketing teams. Customize it by adding more platforms, adjusting wait delays for image/video generation, or enhancing notifications for status updates. Share your feedback in the n8n community to help others benefit from this automation. Suggestions to Improve - Customization: Adjust prompts, timings, and API parameters based on your needs - Expand "Text-to-Music" with multiple music styles or integrate a royalty-free music API for variety. - Improve Video Rendering: Optimize "Build Shotstack Timeline" and "ShotStack Render Video" with predefined templates to reduce rendering time. - Add Analytics Tracking: Include a node to fetch YouTube Analytics post-upload for performance monitoring. - Error Handling: Add error-catching nodes (e.g., "If" nodes) to retry failed image or video generations. - Notification System: Incorporate email or Slack notifications for key milestones (e.g., script completion, video upload).

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

Get new Telegram messages in Slack

Every time you receive a new message on Telegram, Make will automatically send a message in Slack.

Free

Generate contextual YouTube comments automatically with GPT-4o

Workflow Overview This cutting-edge n8n workflow is a powerful automation tool designed to revolutionize how content creators and marketers engage with YouTube channels. By leveraging AI and the YouTube Data API, this workflow automatically: 1. Discovers New Content: - Monitors a specific YouTube channel - Retrieves the latest video in real-time - Checks for new uploads at regular intervals 2. Generates Intelligent Comments: - Uses advanced AI (OpenAI's GPT models) to analyze video metadata

Free

Get AI insights from Databox in Slack using OpenAI

Stop switching between Slack and your analytics dashboards. Mention the bot in any Slack channel, ask a business question, and get an AI-powered answer from Databox in seconds - without leaving Slack. Who's it for - Marketing and growth teams who want instant data answers during standups - Managers who need quick metric checks without logging into dashboards - Anyone using Slack who wants to query Databox data conversationally How it works 1. @mention the bot in Slack with a business question 2.

Free

Automate Your LinkedIn Engagement with AI-Powered Comments! 💬✨

Tutorial Video This n8n workflow is your ultimate tool for smart LinkedIn interaction, leveraging the power of AI to generate witty comments and engage with posts via the Unipile API. Perfect for community managers, marketers, or anyone looking to scale their professional presence with intelligent automation! How It Works: Trigger by Chat Message: Simply send a chat message (e.g., from Telegram) containing a LinkedIn post ID. 📨 Extract Post ID with LLM: An intelligent Large Language Model (LLM)

Free

Automated PR code reviews with GitHub, GPT-4, and Google Sheets best practices

AI-Agent Code Review for GitHub Pull Requests Description: This n8n workflow automates the process of reviewing code changes in GitHub pull requests using an OpenAI-powered agent. It connects your GitHub repo, extracts modified files, analyzes diffs, and uses an AI agent to generate a code review based on your internal code best practices (fed from a Google Sheet). It ends by posting the review as a comment on the PR and tagging it with a visual label like ✅ Reviewed by AI. 🔧 What It Does 1. T

Free

Get Slack notifications about new Authvia merchants

Every time a new merchant is created in Authvia, Make will automatically send a notification message to a specified channel/chat in Slack.

Free

Automate daily AI news with Perplexity Sonar Pro (via Telegram)

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 🧠 Perplexity-Powered Daily AI News Digest (via Telegram) This ready-to-deploy n8n workflow automates the entire process of collecting, filtering, formatting, and distributing daily AI industry news summaries directly to your Telegram group or channel. Powered by Perplexity and OpenAI, it fetches only high-signal AI updates from trusted sources (e.g. OpenAI, DeepMind, HuggingFace, MIT Tech

Free

Automated Google Drive to Facebook Ads: one-click video marketing workflow

This cutting-edge n8n automation is a powerful digital marketing tool designed to streamline the process of transforming Google Drive videos into Facebook advertising assets. By intelligently connecting cloud storage, video upload, and ad creation platforms, this workflow: 1. Discovers Marketing Content: - Automatically scans Google Drive - Identifies video marketing materials - Eliminates manual content searching 2. Seamless Video Distribution: - Downloads selected video files - Uploads d

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