Quote

Process description

This automation is a complete system for automatically creating viral clips from long videos. The system takes a link to the video via a web form, analyzes it using Vizard AI to identify the most viral fragments, generates attractive titles using AI, and automatically publishes ready-to-make clips to TikTok via the Blotato platform.

API keys and services:

  1. Vizard AI API - for analyzing videos and creating clips
  2. OpenAI API Key - for generating titles and descriptions (gpt-4o-mini)
  3. Blotato API - for uploading media and publishing on social networks
  4. TikTok Account ID - for automatic publishing

System architecture by blocks

SECTION 1: SENDING VIDEOS

1.1 On form submission - Getting a link to a video

Purpose: A web form for getting links to videos from users

Form settings:

  • Form Title: “Clips”
  • Form Fields: One “Link to video” field
  • Webhook ID: 453572d2-e25b-48d5-bf2e-58a54b438a19

Supported platforms:

  • youtube
  • Instagram
  • TikTok
  • Vimeo
  • Other video platforms

1.2 HTTP Request — Sending to Vizard AI

Purpose: Creates a project in Vizard AI to analyze videos and generate clips

HTTP Request settings:

  • Method: POST
  • URL: https://elb-api.vizard.ai/hvizard-server-front/open-api/v1/project/create
  • Authentication: HTTP Header Auth (Vizard AI credentials)
  • Credentials: Vizard AI (Your Vizard AI API Key)

JSON Body:

{

“lang”: “en”,

“preferLength”: [0],

“videoURL”: “{{$json ['Video Link']}}”,

VideoType: 2,

“MaxClipNumber”: 8

}

Request parameters:

  • lang: “en” is the language of analysis
  • PreferLength: [0] - preferred clip length (0 = automatic)
  • VideoType: 2 - type of video for processing (In this case, we take video from YouTube)
  • MaxClipNumber: 8 - maximum number of clips

SECTION 2: WAITING FOR PROCESSING

2.1 Wait - Wait 60 seconds

Purpose: Gives Vizard AI time to process videos and create clips

Settings:

  • Amount: 60 seconds

Why do you need to wait:

  • AI video analysis takes time
  • Generating clips requires processing
  • Transcription generation and virality analysis

2.2 HTTP Request1 - Project Status Check

Purpose: Gets analysis results and ready-made clips from Vizard AI

Settings:

  • Method: GET
  • URL: https://elb-api.vizard.ai/hvizard-server-front/open-api/v1/project/query/ {{$json.projectID}}
  • Authentication: HTTP Header Auth (Vizard AI)

The answer with the clips ready:

{

“code”: 2000,

“message”: “success”,

“videos”: [

{

“title”: “Amazing moment from video”,

“VideoURL”: "https://example.com/clip1.mp4 “,

“transcript”: “This is the transcript of the viral moment... “,

ViralScore: 10,

“ViralReason”: “High engagement potential due to emotional content”,

“duration”: 15,

“StartTime”: 45,

EndTime: 60

},

{

“title”: “Another great clip”,

“VideoURL”: "https://example.com/clip2.mp4 “,

“transcript”: “Another interesting part... “,

ViralScore: 8,

“ViralReason”: “Contains trending topic”,

“duration”: 12,

“StartTime”: 120,

EndTime: 132

}

]

}

2.3 If - Readiness Test

Purpose: Checks if clips are ready for further processing

Condition:

  • $json.code === 2000 (successful processing)

Logic:

  • True: Let's move on to processing clips
  • False: Back to waiting (Wait)

SECTION 3: PREPARING CLIPS

3.1 Edit Fields — Extract a video array

Purpose: Extracts an array of ready-made clips for further processing

Set settings:

{

“assignments”: [

{

“name”: “videos”,

“value”: “= {{$ ('HTTP Request1') .item.json.videos}}”,

“type”: “array”

}

]

}

3.2 Split Out - Split into separate clips

Purpose: Converts an array of clips into separate elements for individual processing

Settings:

  • Field To Split Out: videos
  • Include: AllotherFields

The result: Each clip becomes a separate element in the stream

3.3 Filter - Selecting only viral clips

Purpose: Filters clips by virality index

Filtration condition:

  • $JSON.videos.viralScore === 10 (only clips with the highest viral score)

Why do you need a filter:

  • We publish only the most promising videos
  • We save publication limits
  • We improve the quality of content

3.4 Limit - Quantity limit

Purpose: Limits the number of clips that can be processed

Settings:

  • Limit: 1 (by default, can be configured)

Why the restriction:

  • Controlling publishing costs
  • Testing the quality of clips
  • Spam prevention

3.5 AI Agent — Creating titles and descriptions

Purpose: Generates engaging titles and descriptions for TikTok

Input data:

Transcription: {{$json.videos.transcript}}

Clip title: {{$json.videos.title}}

Viral reason: {{$JSON.videos.ViralReason}}

System prompt:

You're an AI Agent for editing and creating titles and descriptions for viral tik tok video cuts.

You will receive a transcription and the reason for the virality of the video and, based on them, you must come up with a short but clear description/title for the tik tok video

Your answer should consider solely of a description for the video

Examples of generated content:

  • “This moment changed everything! 🤯 #viral #trending”
  • “No one expected this turn 😱 #шок #неожиданно”
  • “The top secret has been revealed! Save it so you don't lose it 📌”

3.6 OpenAI Chat Model — Language Model

Purpose: Provides AI Agent with text generation capabilities

Settings:

  • Model: gpt-4o-mini
  • Credentials: OpenAI account 6 (ID: 7IAFMTUDLWOPFPA1)

The advantages of gpt-4o-mini:

  • Fast content generation
  • Low cost for mass processing
  • Good understanding of trends and viral content

SECTION 4: POSTING ON SOCIAL MEDIA

4.1 Set Accounts - Setting up accounts

Purpose: Prepares parameters for publication on various social networks

JSON configuration:

{

“blotato_api_key”: “YOUR API KEY”,

“instagram_id”: “”,

“youtube_id”: “”,

“tiktok_id”: “YOUR TIK TOK ID”,

“facebook_id”: “”,

“facebook_page_id”: “”,

“threads_id”: “”,

“twitter_id”: “”,

“linkedin_id”: “”,

“pinterest_id”: “”,

“pinterest_board_id”: “”,

“bluesky_id”: “”,

“video_caption”: “{{$json.output}}”

}

4.2 Upload — Uploading videos to Blotato

Purpose: Uploads a video file to the Blotato cloud for further publishing

HTTP Request settings:

  • Method: POST
  • URL: https://backend.blotato.com/v2/media
  • Headers: blotato-api-key
  • Body Parameters:
    • url: {{$ ('Filter') .item.json.videos.videoURL}}

Response from Blotato:

{

“url”: "https://blotato.com/media/abc123def456.mp4 “,

“MediAid”: “abc123def456",

“status”: “uploaded”

}

4.3 TIKTOK — Posting on TikTok

Purpose: Automatically publishes the finished clip to TikTok via the Blotato API

HTTP Request settings:

  • Method: POST
  • URL: https://backend.blotato.com/v2/posts
  • Headers: blotato-api-key

JSON Body for TikTok:

{

“post”: {

“target”: {

“targetType”: “tiktok”,

“isYourBrand”: false,

“DisabledDuet”: false,

“PrivacyLevel”: “PUBLIC_TO_EVERYONE”,

“IsaiGenerated”: false,

“DisabledStitch”: false,

“DisabledComments”: false,

“isBrandedContent”: false

},

“content”: {

“text”: “{{$ ('Set Accounts') .item.json.video_caption}}”,

“platform”: “tiktok”,

“MediaURLS”: ["{{$json.url}}"]

},

“accountID”: “{{$ ('Set Accounts') .item.json.tiktok_id}}”

}

}

TikTok post settings:

  • Privacy: Public to everyone
  • Duets: Allowed
  • Stitchy: Allowed
  • Comments: Allowed
  • AI content: Not marked as AI-generated
  • Branding: Not marked as branded content

Node connection diagram

Main stream:

  1. On form submissionHTTP Request (creating a project in Vizard)
  2. HTTP RequestWait (waiting 60 seconds)
  3. WaitHTTP Request1 (readiness test)
  4. HTTP Request1If (status check)

Processing results:

  1. If (True) → Edit FieldsSplit OutFilterLimit
  2. If (False) → Wait (waiting again)

Content generation:

  1. LimitAI AgentSet Accounts

Publication:

  1. Set AccountsUploadTIKTOK

AI connections:

  • OpenAI Chat ModelAI Agent

Required services and their settings

Vizard AI setup:

  • Get the API key on vizard.ai
  • Connect credentials to n8n
  • Set video processing limits

Blotato setup:

  • Create an account at blotato.com
  • Get an API key
  • Connect your TikTok account (or any other social network you need)

TikTok setup:

  • Connect your TikTok account via Blotato
  • Get an Account ID for publications
  • Set up autoposting permissions

OpenAI setup:

  • API key for gpt-4o-mini model
  • Setting limits and billing

System capabilities

Video analysis:

  • Automatic selection viral moments
  • Virality assessment on a 10-point scale
  • Transcription and content analysis
  • Identifying causes viral potential

AI content generation:

  • Smart headlines for TikTok
  • Attractive descriptions with hashtags
  • Adapting to trends and viral formats
  • Optimization for algorithms TikTok

Automated publishing:

  • Instant publishing ready-made clips
  • Setting up privacy and parameters
  • Multiple platform support via Blotato
  • Publication planning (if required)

Filtering and control:

  • A selection of only the best videos (ViralScore = 10)
  • Quantity limit publications
  • Quality control content
  • Spam prevention

System application

For content creators:

  • Automating a routine - turning long videos into short clips
  • Save time - no need to manually search for the best moments
  • Increased coverage - AI identifies the most viral fragments
  • Ongoing content - regular publications without participation

For agencies and studios:

  • Scaling up production - processing multiple videos
  • Quality standardization - AI provides common criteria
  • Lower costs - automation replaces manual installation
  • Analytical approach - virality data instead of intuition

For businesses and brands:

  • Content repurpose - turning webinars/presentations into clips
  • Increased presence - automatic activity on TikTok
  • Trending content - getting into relevant topics
  • ROI optimization - get the most out of every video

The result of the system

What happens is:

  • Automatic conveyor viral content
  • AI-optimized clips with high potential
  • Ready-made publications on TikTok without manual intervention
  • Save time 90% compared to manual work
  • Stable flow high-quality content

Performance metrics:

  • Number of clips: up to 8 from one video
  • Quality filtering: only clips with ViralScore = 10
  • Automation: 100% automatic process from link to publication

Advantages over manual work:

  • Objectivity - AI analysis instead of subjective opinion
  • Speed - minutes instead of hours for processing
  • Scalability - processing an unlimited number of videos
  • Consistency - the same high quality of analysis
  • effectivity - reducing content production costs

ROI and business indicators:

  • Saving on installation - replacing the video editing team with an AI system
  • Increasing the amount of content - 5-10 times more publications
  • Quality improvement - only AI-verified clips are published
  • Increased engagement - viral clips get more views and likes

This system turns any long video into a series of viral TikTok clips with minimal effort and maximum efficiency!

Читайте также