Create comedic marketing reels with Sora2, OpenAI & auto-post to social media
Viral Marketing Reel & Autopost with Sora2 + Blotato
Create funny, ultra-realistic marketing reels on autopilot using n8n, Sora2, Blotato, and OpenAI. This beginner-friendly template generates a comedic video prompt, creates a 12-second Sora2 video, writes a caption, and auto-posts to Instagram/TikTok — all on a schedule.
🎥 Watch the full step-by-step tutorial: https://www.youtube.com/watch?v=lKZknEzhivo
What this template does
This workflow automates an entire short-form content production pipeline:
Scheduled Trigger: Runs automatically at your chosen time (e.g., every evening at 7PM).
AI “Video Prompt Agent”: Creates a cinematic, funny, 12-second Sora2 text-to-video prompt designed to promote a product (default: Sally’s Coffee).
Insert Row (Data Table): Logs each generated video prompt for tracking, reuse, or inspiration.
Sora2 (via Wavespeed):
Sends POST request to generate a video.
Waits 30 seconds.
Polls the prediction endpoint until the video is completed.
Blotato Integration:
Uploads the finished video to your connected social account(s).
Automatically publishes or schedules the post.
Caption Generator:
Uses an AI agent to create an Instagram/TikTok-ready caption with relevant hashtags.
This turns n8n into a hands-free comedic marketing engine that writes, creates, and posts content for you.
Why it’s useful
Create daily or weekly marketing reels without filming, editing, or writing scripts.
Experiment with new comedic formats, hooks, and product placements in seconds.
Perfect for small businesses, agencies, creators, and social media managers.
Demonstrates how to combine AI agents + Sora2 + polling + external posting services inside one workflow.
Requirements
Before running this template, configure:
OpenAI API Key (for the prompt agent & caption model)
Wavespeed / Sora2 API credentials
Blotato account connected to Instagram/TikTok (for posting)
n8n Data Table (optional, or replace with your own)
⚠️ All credentials must be added manually after import. No real credentials are included in the template.
How it works
- Schedule Trigger
Runs at a fixed time or interval.
- Video Prompt Agent (LangChain Agent)
Generates a cinematic, realistic comedic video idea.
Built with a detailed system prompt.
Ensures brand integration (e.g., Sally’s Coffee) happens naturally.
- Insert Row (Data Table)
Logs each generated prompt so future videos can be referenced or reused.
- Sora2 POST Request
Sends the generated prompt to Sora2 via Wavespeed’s /text-to-video endpoint.
- Wait 30s + GET Sora2 Result
Polls the result until data.status === "completed".
Continues looping if still “processing”.
- Upload Media (Blotato)
Uploads the finished video file.
- Caption Generator
Creates a funny, platform-ready Instagram/TikTok caption with hashtags.
- Create Post (Blotato)
Publishes (or schedules) the video + caption.
Setup Instructions (Step-by-Step)
Import template into n8n.
Open Video Prompt Agent → review or customize the brand name, style, humor tone.
Add your OpenAI API credentials:
For prompt generation
For caption generation
Add your Wavespeed/Sora2 credentials to the POST and GET nodes.
Connect your Blotato credential for uploading and posting.
(Optional) Replace the Data Table ID with your own table.
Adjust the Schedule Trigger time to your desired posting schedule.
Run once manually to confirm:
Prompt is generated
Video is created
Caption is written
Video uploads successfully
Enable workflow → your daily/weekly comedic autoposter is live.
Customization Ideas
Change the brand from Sally’s Coffee to any business, product, or influencer brand.
Modify the prompt agent to enforce specific camera styles, settings, or comedic tones.
Swap posting destinations: Blotato supports multiple networks—configure IG/TikTok/Facebook/YouTube Shorts.
Add approval steps: Insert a Slack/Telegram “Approve before posting” step.
Add analytics logging: Store video URLs, caption, and AI cost estimate.
Troubleshooting
Sora video stuck in processing: Increase the wait time or add another polling loop.
Upload fails: Ensure media URL exists and Blotato account has posting permissions.
Caption empty: Reconnect OpenAI credential or check model availability.
Posting fails: Confirm your Blotato API key is valid and linked to a connected account.
Category: Marketing, AI Video, Social Media Automation
Difficulty: Beginner–Intermediate
Core Nodes: LangChain Agent, HTTP Request, Wait, Data Table, Blotato, OpenAI
Includes: System prompts, polling logic, caption generator, posting workflow
n8n Workflow: Create Comedic Marketing Reels with Sora 2 & OpenAI, Auto-Post to Social Media
This n8n workflow leverages the power of AI to generate engaging and humorous marketing content. It's designed to automate the process of creating comedic video reels using OpenAI's capabilities (potentially including Sora 2 for video generation, although the JSON itself doesn't explicitly confirm Sora 2 integration, it indicates OpenAI for AI Agent and Chat Model) and then automatically posting them to social media platforms.
What it does
This workflow acts as a framework for an AI-driven content creation and distribution system. While the provided JSON is a barebones structure, it outlines the core components for such a system:
- Scheduled Trigger: The workflow is designed to be initiated on a schedule, allowing for regular, automated content generation.
- AI Agent: Utilizes an AI Agent (likely powered by LangChain and OpenAI) to process information and make decisions, which could involve generating ideas for comedic reels, scripting, or determining content parameters.
- OpenAI Chat Model: Employs an OpenAI Chat Model (e.g., GPT-3.5, GPT-4) for conversational AI tasks, such as generating comedic dialogue, refining scripts, or creating engaging captions.
- Simple Memory: Incorporates a memory buffer to maintain context within the AI agent's operations, ensuring continuity in content generation.
- OpenAI Node: A general OpenAI node, which could be used for various tasks like text generation, image generation, or even video generation (if Sora 2 is integrated and accessible via the OpenAI API).
- HTTP Request: A generic HTTP Request node is included, which would typically be used to interact with external APIs, such as social media platforms for posting, or a video generation service.
- Conditional Logic (If): An "If" node allows for conditional branching, enabling the workflow to make decisions based on AI output (e.g., checking content quality, deciding which social media platform to post to).
- Wait Node: A "Wait" node can introduce delays, useful for rate limiting API calls or scheduling posts at optimal times.
- Data Table: A "Data table" node is present, which could be used to store content ideas, generated scripts, posting schedules, or tracking content performance.
- Sticky Note: A "Sticky Note" is included for documentation within the workflow, likely for instructions or explanations.
Prerequisites/Requirements
To effectively use and expand this workflow, you will need:
- n8n Instance: A running n8n instance.
- OpenAI API Key: An API key for OpenAI to access its AI models (Chat, Agent, and potentially Sora 2 if available).
- Social Media Accounts: Accounts for the social media platforms you intend to post to (e.g., Instagram, TikTok, YouTube).
- Social Media API Access: Necessary API credentials and access for the target social media platforms to enable automated posting.
- Video Generation Service (Optional but Recommended): If Sora 2 is not directly integrated via OpenAI API, an alternative video generation service might be needed, accessible via HTTP requests.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Credentials:
- Set up your OpenAI API Key credentials within n8n.
- Configure credentials for any social media platforms you plan to integrate for auto-posting (e.g., Instagram, TikTok, YouTube).
- Customize AI Agent and Chat Model:
- Adjust the prompts and parameters for the AI Agent and OpenAI Chat Model to guide the comedic content generation according to your brand and target audience.
- Specify the desired length, style, and themes for your comedic reels.
- Integrate Video Generation (if applicable):
- If using Sora 2 via the OpenAI node, configure the parameters for video generation.
- If using an external video generation service, configure the HTTP Request node to interact with its API, passing the generated script or content.
- Configure Social Media Posting:
- Modify the HTTP Request node (or add specific social media nodes) to handle posting the generated video reels and captions to your desired social media platforms.
- Set up the "If" node to handle any conditional logic related to posting (e.g., checking for successful video generation before posting).
- Set Schedule: Configure the Schedule Trigger node to define how often the workflow should run and generate new content.
- Activate Workflow: Save and activate the workflow.
This workflow provides a robust starting point for an automated comedic marketing reel generator, ready for customization and expansion to fit specific content strategies.
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow — reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.