🎬 Create daily historical AI videos with Gemini, fal.ai, Telegram and YouTube

⚑ 3,014 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

Who’s it for

This workflow is ideal for:

How it works

This workflow automates the full pipeline of generating and publishing historical videos:

  1. Triggers daily at 1 AM and initializes retry tracking (maximum 3 attempts)
  2. Fetches historical events for the current date and selects one randomly
  3. Uses Google Gemini to generate a cinematic text-to-video script
  4. Sends the prompt to fal.ai (Hunyuan LoRA) to generate a short video
  5. Polls the generation status every 30 seconds until the video is ready
  6. Downloads the generated video and sends it to Telegram with context
  7. Waits for manual approval via Telegram
  8. If approved β†’ uploads the video to YouTube and sends a confirmation message
  9. If declined β†’ retries with a new event (up to 3 attempts total)

How to set up

  1. Import the workflow into n8n
  2. Configure your Telegram credentials
  3. Set your Telegram Chat ID using a variable or Set node (avoid hardcoding)
  4. Configure HTTP Header Auth credentials for fal.ai (API key required)
  5. Set up Google Gemini API credentials
  6. Connect your YouTube account using OAuth2
  7. (Optional) Adjust the schedule time in the trigger node
  8. Activate the workflow

Requirements

How to customize the workflow

πŸ”— Nodes Used

HTTP Request, Telegram, YouTube, Schedule Trigger, AI Agent, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup