Home
Softono

N8N ViralFlow

Open source
15
Stars
5
Forks
0
Issues
0
Watchers
1 year
Last Commit

 About N8N ViralFlow

An AI-powered, fully automated n8n workflow that converts a single text prompt into scroll-stopping YouTube Shorts using dynamic visuals, dramatic TTS narration, and real-time editing — all self-hosted using Docker, Ollama, MinIO, and open-source tools.

Platforms

Web Self-hosted Docker

Links

Need Help Installing N8N ViralFlow?

We provide expert installation service for this software. Our team will install, configure, and secure N8N ViralFlow on your server. plans start at just $30.

N8N ViralFlow

View on GitHub

N8N ViralFlow

A fully automated n8n-based pipeline that transforms user input into short, scroll‑stopping videos with hooks, dynamic visuals, and dramatic TTS narration and autmatically uploads it on their Youtube.

image alt


🛠️ Tech Stack

n8n
Ollama
SearxNG
MinIO
Docker
Chatterbox TTS
Together.ai
AWS S3


Example Youtube Channel

Example Youtube Channel


🎯 Table of Contents


📝 Summary

Users fill out a stylized “Brain Rotter” form with:

  1. Topic (e.g. Indian history)
  2. Duration (30s / 1min / 2min)
  3. Generative Style (e.g. Disney Pixar)

The workflow then:

  • Generates 20 facts via web search
  • Writes a punchy script (“What if…?” hook, reveals, mic‑drop)
  • Converts text→speech, splits into segments
  • Creates scene prompts, generates images via Together.ai
  • Transforms images→video clips, concatenates, captions, adds music
  • Uploads final Short to YouTube with metadata & hashtags

✨ Features

  • End‑to‑End Automation: From form input to published YouTube Short
  • AI‑Powered Content: Facts generation, scriptwriting, image prompts
  • Cinematic Visuals: Realistic/dark‑themed images in user‑chosen style
  • Dynamic Audio: TTS narration + background music + word‑by‑word captions
  • Short‑Form Focus: Maximum 59 s, mobile‑friendly, platform‑optimized

🛠️ Tech Stack

Category Tools & Services
Orchestration n8n (automation)
AI & LLMs Ollama (deepseek‑r1:8b, mistral:7b, llama3.1:latest)
Image Gen Together.ai (FLUX.1‑schnell)
TTS chatterbox‑tts‑server (HTTP POST /tts)
Transcription nca‑toolkit (HTTP /v1/media/transcribe)
Video Processing nca‑toolkit (concatenate, ffmpeg compose, captioning)
Storage MinIO / AWS S3
Deployment Docker, n8n Cloud / Self‑hosted

📋 Workflow Overview

  1. Form Input Collection
    formTrigger: Collects Topic, Duration, Style with custom CSS.
  2. Facts Generation
    langchain.agent (deepseek‑r1:8b): Fetches 20 trending, controversial facts.
  3. Script Writing
    langchain.agent (mistral:7b): Builds “SUPREME INDIANS” script with hook, reveals, pride, mic‑drop.
  4. Script Cleanup
    code: Strips formatting, newlines, asterisks.
  5. Text‑to‑Speech
    httpRequestchatterbox‑tts‑server → returns WAV + timestamps.
  6. Transcription & Segmentation
    • Transcribe audio → JSON/SRT.
    • Split into ≤2 s scenes (Split into N's Scenes, Fixer2).
  7. Image Prompting
    chainLlm (llama3.1): Generates cinematic prompts per segment.
  8. Image Generation
    httpRequest → Together.ai API → base64 PNG → convert & upload to S3.
  9. Clip Creation & Assembly
    • httpRequest → transform image→video clip
    • combine → concatenate all clips
  10. Enhancements
    • Captioning (word‑by‑word)
    • Background music layering (FFmpeg compose)
    • Trim to 59 s
  11. YouTube Upload
    youTube node: Publishes as a public Short with title, description, tags.

🔧 n8n Nodes & AI Models

  • n8n-nodes-base.formTrigger – Custom CSS form
  • @n8n/n8n-nodes-langchain.agent – deepseek‑r1:8b & mistral:7b
  • @n8n/n8n-nodes-langchain.chainLlm – llama3.1 for image prompts
  • n8n-nodes-base.httpRequest – TTS, transcription, image & video services
  • n8n-nodes-base.code – JS for cleaning, splitting, merging, random zoom speeds
  • n8n-nodes-base.s3 – MinIO/AWS S3 uploads
  • n8n-nodes-base.aggregate / merge / splitInBatches – Data orchestration
  • n8n-nodes-base.youTube – YouTube Shorts publishing

🚀 Quick Start

Learn how to install and get started with each component:


📫 Contact

  • Made by Prabhanshu Kamal
  • GitHub: PrabhanshuKamal2121
  • LinkedIn: PrabhanshuK

⚖️ Disclaimer

  • This pipeline is for educational/demo purposes. It uses publicly available AI models and services. Results may vary; always validate before publishing.