Video & Media
Generated in 12.67s

Universal Social AI Content Builder

Complete content creation system triggered via Telegram. Generates viral short videos, ad variants, and storytelling content using OpenAI, json2video, Airtable tracking, S3 storage, and Buffer scheduling.

Prompt

Generate n8n workflow: { "title": "Plain-English Summary — n8n Universal Social AI Content Builder (2025)", "what_this_is": "A set of n8n workflows that let you send a text prompt from Telegram and automatically turn it into viral short videos, ad variants, and storytelling content. It uses OpenAI for scripts and captions, json2video for rendering, Airtable for job tracking, S3 for video storage, and Buffer (or other schedulers) for posting to social platforms.", "environment_variables": { "OPENAI_API_KEY": "Key for OpenAI (used for scripts, captions, hashtags)", "JSON2VIDEO_API_KEY": "Key for the AI video generation service", "S3_BUCKET": "Your AWS S3 bucket name for storing final videos", "S3_REGION": "Your S3 region", "S3_KEY": "S3 access key", "S3_SECRET": "S3 secret key", "TELEGRAM_BOT_TOKEN": "Token for your Telegram bot to receive prompts", "BUFFER_ACCESS_TOKEN": "Access token for Buffer or social scheduler", "AIRTABLE_API_KEY": "Airtable API key", "AIRTABLE_BASE_ID": "Airtable base ID used for job tracking", "TIKTOK_UPLOAD_TOKEN": "Optional token for direct TikTok uploads", "YOUTUBE_OAUTH": "OAuth token for YouTube uploads", "RENDER_CALLBACK_URL": "Webhook URL json2video will call when a render is complete" }, "workflows": [ { "name": "Telegram → Viral Short Creator (Script + Video + Upload)", "purpose": "Takes a Telegram message prompt and automatically creates a short vertical AI video, tracks it, and notifies the user.", "steps": [ "1. Telegram Trigger — waits for a message from the bot.", "2. Validate Prompt — ensures the message isn’t empty and saves the chat ID.", "3. OpenAI Script Generator — asks OpenAI to create a 15–45s script with hooks, scenes, CTA, hashtags, and a caption.", "4. Extract Script — stores the text output from OpenAI.", "5. Prepare Video Payload — builds the settings for json2video (style, duration, voice, callback).", "6. json2video Create Render — starts rendering the video.", "7. Airtable Register Job — logs the render job into Airtable with its status.", "8. Reply to User — sends a Telegram message saying the short is being created." ], "result": "Video rendering begins automatically, tracked in Airtable, and the user is notified." }, { "name": "Render Callback → Finalize Upload & Publish", "purpose": "Processes finished renders, stores videos in S3, generates captions and hashtags, and schedules them for posting.", "steps": [ "1. Webhook (render callback) — receives json2video’s completion notice.", "2. Validate Callback — confirms render URL exists.", "3. Download Video — fetches the rendered video file.", "4. Upload to S3 — stores the video in your cloud bucket.", "5. Generate Captions & Hashtags — asks OpenAI for captions, hashtags, and ad variants.", "6. Post to Scheduler — sends the video and caption to Buffer or another platform for publishing.", "7. Update Airtable Job — marks the job as published and stores the final video link." ], "result": "The video is uploaded, captioned, hashtagged, and scheduled or published automatically." }, { "name": "Ad Variant Builder (A/B + 10 Variants)", "purpose": "Generates 10 ad video variants from a single script so you can test multiple hooks and CTAs.", "steps": [ "1. Manual Trigger — you start this workflow manually.", "2. Get Base Script — loads a default or provided ad script.", "3. OpenAI Variant Generator — produces 10 short ad variations (titles, hooks, scripts, CTAs).", "4. Split Variants — divides the response into 10 separate entries.", "5. Queue Variant Renders — sends each variation to json2video for rendering." ], "result": "10 ad videos ready for testing performance and engagement." }, { "name": "Storyline Manager (Series Builder)", "purpose": "Helps build multi-part story content or video series.", "steps": [ "1. HTTP Trigger — listens for new episode submissions via webhook.", "2. Airtable Append Episode — logs episode info (title, prompt, episode number).", "3. OpenAI Episode Script — generates a 45s script with 4 scenes and a cliffhanger for continuity." ], "result": "Episodes are generated, stored, and ready for rendering into a full series." } ], "best_practices": [ "Use 9:16 vertical videos (1080x1920) for TikTok, Reels, and Shorts.", "Generate multiple captions and CTAs for A/B testing.", "Add a moderation check before rendering to comply with platform rules.", "Cache and reuse common prompts and voices to maintain brand consistency.", "Track all jobs with Airtable or a database for analytics and retrying failures.", "Add retry logic for APIs like OpenAI, json2video, and S3 to handle rate limits." ], "notes": [ "Replace placeholder keys and URLs with your actual credentials.", "Buffer is only an example — you can replace it with TikTok, YouTube, or Instagram APIs.", "If you prefer local rendering, swap json2video for FFmpeg or another video tool.", "Add logging and monitoring for better reliability and error handling." ], "summary": "An end-to-end Telegram-driven system that converts text prompts into AI-generated viral videos, automatically uploads, captions, hashtags, and schedules them — plus tools to generate ad variants and story episodes for consistent content creation in 2025." }

English: Generate workflow that takes Telegram prompts and creates viral short videos, ad variants, and storytelling content using OpenAI, json2video, Airtable, S3, and Buffer.

Generated Workflow

Loading workflow preview...

n8nworkflowtelegramaivideosocial-mediacontentairtables3

Create Your Own Workflows

Install n8n Builder and generate custom workflows with AI in seconds.