Generate News Digest Videos from WordPress Articles to YouTube Shorts with Shotstack
Daily News Digest Video Generator for YouTube Shorts
Instalations Instructions
Youtube Instalation Instructions
Overview
This workflow automatically creates and publishes daily news digest videos from WordPress articles to YouTube. It runs every evening at 7 PM, compiling the day's top stories from a news portal into a professionally formatted vertical video (1080x1920px) optimized for social media platforms like YouTube Shorts.
What It Does
-
๐ Scheduled Trigger Runs automatically every day at 19:00 (7 PM)
-
๐ฐ Fetches Today's Articles Retrieves all published WordPress posts from the current day
-
โ Validates Content Ensures there are at least 3 articles before proceeding
-
๐ฌ Video Detection Scans article content HTML for embedded videos Extracts MP4 URLs from WordPress video players Parses wp-playlist-script JSON data Falls back to
and <source>tag detection -
๐งน Data Processing Extracts** article titles, links, and featured media IDs Decodes HTML entities**: Converts โ to โ, " to ", etc. Fetches featured images** from WordPress Media API Assigns default images** for articles without featured media Calculates reading time** per article (3-7 seconds based on word count) Cleans text**: Removes HTML tags and normalizes whitespace
-
๐ฅ Video Generation (via Shotstack API)
Intro Slide (3 seconds) Black background Large logo (centered) Title on center Current date in DD-MM-YYYY format
News Slides (3-7 seconds each) Each article is displayed with: Background**: Video (if available) or featured image, cropped to fit Dark overlay**: 40% opacity black layer for text readability Article headline**: Large white text at top Small logo**: Top-right corner Pagination counter**: Bottom-right white badge (e.g., "1 / 22") CTA button**: Centered CTA Background music**: Subtle looped audio track Transitions**: Smooth fade in/out between slides
Outro Slide (3 seconds) Identical to intro slide Provides clean ending to the video
-
โณ Processing Wait Waits 30 seconds for Shotstack to render the video Polls Shotstack API to verify video completion
-
๐ฅ Download Video Retrieves the finished MP4 file from Shotstack Downloads video data for YouTube upload
-
๐ค YouTube Upload Automatically uploads to YouTube with: Title**: "Daily Digest - [Day] [Weekday], [Year]" Description**: Same as title Category**: News & Politics Made for kids**: Yes Tags**: dailydigest
โจ Key Features
Intelligent Content Handling โ Automatic video/image detection and intelligent media selection โ Dynamic reading time calculation for optimal viewer engagement โ HTML entity cleaning for proper text display (WordPress compatibility) โ Fallback default images for articles without media โ Video background support with automatic muting
Professional Video Production โ Vertical format optimized for mobile viewing (1080x1920px) โ Professional branding with logos and consistent styling โ Smooth fade transitions between slides โ Background music with looping support โ Dynamic pagination counters โ Call-to-action buttons for engagement
Customization โ Centralized variables for easy branding updates โ Configurable logos, colors, and text โ Adjustable reading time calculation โ Flexible date formatting โ Customizable audio track
๐ฏ Use Cases
Perfect for: ๐ฐ News websites wanting to repurpose daily articles ๐ฑ Media outlets creating social media content ๐ฅ Content creators automating video production ๐ Publishers maximizing content distribution ๐ Marketing teams driving traffic from social platforms
๐ง Customization Options
Easy Changes Update logos by changing logo_big and logo_small URLs Modify branding colors via button_bg_color variable Adjust button text with button_text variable Change video title with daily_digest_text variable Update background music by replacing audio URL
Advanced Customization Adjust reading time formula in calculateReadingTime() function Modify date format in getRomanianDate() function Change video dimensions (currently 1080x1920) Update font family and sizes Adjust overlay opacity and colors Modify transition effects
๐ Prerequisites
Required Credentials WordPress API - Access to stire.md WordPress site Shotstack API - API key for video rendering (Stage environment) YouTube OAuth2 - Authenticated YouTube account for uploads
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Transcribe & Summarize Audio with Whisper and GPT, from Google Drive to Notion
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This work...
Build an MCP Server which answers questions with Retrieval Augmented Generation
Build an MCP Server which has access to a semantic database to perform Retrieval Augmented Generation (RAG) Tutorial C...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments