Back to all workflows
    n8n17 nodes

    Automated YouTube Shorts & Facebook Reels Creator

    Schedule TriggerOpenAIJWT AuthYouTube APIFacebook Graph API

    The Problem

    Consistent short-form content requires hours of work — ideation, scripting, video generation, editing, and uploading across multiple platforms. Most creators burn out trying to keep up with daily posting demands.

    The Solution

    A 17-node fully automated content pipeline that runs on a schedule, uses OpenAI to generate scripts, authenticates securely via JWT, generates AI videos, polls until ready, then publishes to both YouTube Shorts and Facebook Reels simultaneously.

    How It Works

    1. 1⏰ Schedule Trigger — fires automatically on a set daily or weekly schedule
    2. 2🧠 OpenAI Chat Model + Structured Output Parser — generates video concept, script, and visual prompt
    3. 3🔐 Build JWT Payload + Sign JWT Token — constructs secure authentication credentials
    4. 4🔑 Exchange JWT for Access Token — authenticates with the video generation API
    5. 5🎥 Generate Video (HTTP Request) — submits the AI script to the video creation service
    6. 6⏳ Wait — holds execution while the video renders
    7. 7🔄 Get Generated Video + Is Done? — polls the API in a loop until video is confirmed ready
    8. 8🔍 Is Filtered? + Is Error? — validates the output and catches any generation errors
    9. 9📦 Extract Video Data + Convert to File — decodes Base64 video into an upload-ready file
    10. 10📤 Upload to YouTube — publishes the video as a YouTube Short automatically
    11. 11📘 Facebook Graph API — posts the same video as a Facebook Reel simultaneously

    Results

    • Full video created and published to 2 platforms in minutes, fully hands-free
    • Daily content consistency achieved without any manual effort
    • Scalable across multiple niches, pages, and channels from one workflow
    • JWT-secured API connections — production-grade reliability and error handling

    Want something like this for your business?

    I build custom AI-powered automations tailored to your workflows. Book a free 30-min call to discuss your use case.

    Book a Free Call