Skip to main content

Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok

Workflow preview

Workflow preview
100%
Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This automation creates a fully integrated pipeline to generate AI powered videos , store them , and publish them on TikTok — all automatically. It connects OpenAI Sora 2 , and Postiz (for TikTok p...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.openai, n8n-nodes-postiz.postiz, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok
Workflow name
Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok

This automation creates a fully integrated pipeline to generate AI-powered videos, store them, and publish them on TikTok — all automatically. It connects OpenAI Sora 2, and Postiz (for TikTok publishing) to streamline content creation.


Key Benefits

Full Automation – From text prompt to TikTok upload, everything happens automatically with no manual intervention once set up. ✅ Centralized Control – Google Sheets acts as a simple dashboard to manage prompts, durations, and generated results. ✅ AI-Powered Creativity – Uses OpenAI Sora 2 for realistic video generation and GPT-5 for optimized titles. ✅ Social Media Integration – Seamlessly posts videos to TikTok via Postiz, ready for your audience. ✅ Scalable & Customizable – Can easily be extended to other platforms like YouTube, Instagram, or LinkedIn. ✅ Time-Saving – Eliminates repetitive steps like manual video uploads or caption writing.


How it works

This workflow automates the end-to-end process of generating AI videos and publishing them to TikTok. It is triggered either manually or on a recurring schedule.

  1. Trigger & Data Fetch: The workflow starts by checking a specified Form for new entries. It looks for rows where a video has been requested (a "PROMPT" is filled) but not yet generated (the "VIDEO" column is empty).

  2. AI Video Generation: For each new prompt found, the workflow sends a request to the Fal.ai Sora 2 model to generate a video. It then enters a polling loop, repeatedly checking the status of the generation request every 60 seconds until the video is "COMPLETED".

  3. Post-Processing & Upload: Once the video is ready, the workflow performs several actions in parallel:

    • Fetch Video & Store: It retrieves the final video URL, downloads the video file
    • Generate Title: It uses the OpenAI GPT-4o-mini model to analyze the original prompt and generate an optimized, engaging title for the video.
    • Publish to TikTok: The video file is uploaded to Postiz, a social media scheduling tool, which then automatically publishes it to a connected TikTok channel, using the AI-generated title as the post's caption.

Set up steps

To make this workflow functional, you need to complete the following configuration steps:

  1. Prepare the Google Sheet:

    • Create a Form with at least "PROMPT", "DURATION", and "VIDEO" fields.
  2. Configure Fal.ai for Video Generation:

    • Create an account at Fal.ai and obtain your API key.
    • In both the "Create Video" and "Get status" HTTP Request nodes, set up the "Header Auth" credential.
    • Set the Name to Authorization and the Value to Key YOUR_API_KEY.
  3. Set up TikTok Publishing via Postiz:

    • Create an account on Postiz and connect your TikTok account to get a Channel ID.
    • Obtain your Postiz API key.
    • In the "Upload Video to Postiz" and "TikTok" (Postiz) nodes, configure the API credentials.
    • In the "TikTok" node, replace the placeholder "XXX" in the integrationId field with your actual TikTok Channel ID from Postiz.
  4. (Optional) Configure AI Title Generation:

    • The "Generate title" node uses OpenAI. Ensure you have valid OpenAI API credentials configured in n8n for this node to work.

Need help customizing?

Contact me for consulting and support or add me on Linkedin.

Header 2

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Wait 60 sec.

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 3 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Completed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Create Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Get Url Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Get File Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Generate title

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - TikTok

Type / Role
n8n-nodes-postiz.postiz - postiz
Config choices
Version 1

Block 15 - Upload Video to Postiz

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

3. Summary Table

Workflow Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Davide
Published 27 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10212/10212.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok do?

This automation creates a fully integrated pipeline to generate AI powered videos , store them , and publish them on TikTok — all automatically. It connects OpenAI Sora 2 , and Postiz (for TikTok p...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.