Tag: ai automation

  • Mass video posting: how an AI model created a pipeline for 127 n8n nodes for $4

    Mass video posting: how an AI model created a pipeline for 127 n8n nodes for $4

    Mass video posting and automatic publication of short videos is a dream for many content creators. Imagine being able to schedule auto-posting so that publication to 5 platforms happens without manual labor, while you focus on other tasks. This article is a detailed breakdown of how a mysterious AI model, later identified as Z.ai GLM 5.3 Flash, generated a complex mass posting service of 127 nodes in n8n, spending only $4 in the process.

    We will examine the architecture, the economics of the experiment, and the key lessons learned. Get ready to discover how artificial intelligence can radically change the approach to content creation and distribution, making it not only efficient but also incredibly economical.

    Introduction to the Experiment: AI Coder for Complex Pipelines

    From August 20 to 25, OpenRouter provided free access to the stealth/ox-alpha model, later de-anonymized as Z.ai GLM 5.3 Flash. This model, with a 1M token context and native multimodality (text, images, video), is positioned for “efficient coding and long-term agent tasks.”

    • Experiment Goal: Stress testing a new LLM as a coder for a complex distributed pipeline.
    • Task Scale: Five external APIs, binary streams, three dozen branching conditions, asynchronous polling – all in one workflow.
    • Result: In three days (August 21 to 23), the model “vibecoded” a workflow of 127 nodes, capable of interacting with APIs, generating media and publishing Reels.
    • Economics: 60.9 million tokens were spent, of which 85.3% were cache hits. The total cost at a blended price of $0.07/1M was about $4.

    “In the Western market, there’s a boom in autonomous bundles like ‘scraping-photo/video generation-auto-posting’. I’m interested in pipelines and fault tolerance.”

    Workflow Architecture: 5 Circuits and 127 Nodes

    Initially, the workflow had 156 nodes, but after refactoring, their number was reduced to 127. There are 113 working nodes, excluding triggers and stubs. Each circuit performs its specific function, ensuring short video distribution.

    Circuit 1: “Reconnaissance” (23 nodes)

    This circuit is responsible for finding viral content. It runs on a schedule (24 hours) and analyzes competitors’ Reels.

    • Scheme: Schedule (24h) → list of competitors → Reels via ScrapeCreators → virality math (views > avg × 2.5) → TRENDING tag.
    • For trending videos, caption (/v1/НЕЛЬЗЯgram/post) and transcript (/v2/instagram/media/transcript) are retrieved.

Circuit 1.5: “Semantic Filter” (17 nodes)

Here, content relevance is evaluated using an LLM re-ranker.

  • Model: Qwen3 Reranker 8B via chat/completions.
  • Logic: evaluation on a 0-1 scale. Content below the threshold (e.g., 0.75) is filtered out, preventing the publication of irrelevant videos.

Circuit 2: “AI Dispatcher” (17 nodes)

The model does not copy content, but “extracts the DNA of virality” and generates an original idea.

  • Output: strict JSON schema (angle, hooks, voice_script, video_prompt, NELZYAGRAM_caption).
  • A valid draft is saved to Google Sheets with DRAFT status.

Circuit 3: “Media Workshop” (37 nodes)

This circuit is responsible for creating media files.

  • Video: seedance-2.0-mini with a fallback to veo-3.1-lite, asynchronous polling (Wait 10s × 20 attempts).
  • Voice: TTS outputs raw PCM, converted to WAV on the fly.
  • Cover: image-generation with a neon tech-vibe.
  • All operations with retries, warnings, and MEDIA_READY / MEDIA_FAILED statuses.

Circuit 4: “Distribution” (19 nodes)

The final stage is video cross-posting and content publication.

  • Splicing: video with voice via ffmpeg (Write-Exec-Read to /tmp). Voice is optional.
  • Publication: Google Drive (upload + share publicly) → Instagram Graph API (REELS container – publish) → permalink → Sheets update → Telegram report.

Key Techniques for Effective Interaction with LLM

The success of the experiment largely depended on the correct formulation of prompts. A unified panel for TikTok, YouTube, Instagram requires clear instructions.

  • Role instead of request: using “Senior n8n solutions architect” changes the tone of generation, making responses more protected and less conversational.
  • Prohibition on inventing parameters: the model must indicate “VERIFY MANUALLY” if unsure about parameters.
  • Iterations by circuits: processing one circuit per message helps the model not get confused by dependencies.
  • Output Contract: one JSON block, import instructions, and a list of questionable parameters.

Engineering Solutions and Fault Tolerance

The workflow contains many engineering solutions that ensure stability and fault tolerance.

PCM to WAV on the fly

The TTS model outputs raw PCM, which n8n and NELZYAGRAM do not understand. The model generated a Code node that adds a correct RIFF header using n8n’s built-in binary-helpers.

Static Data: cycle accumulator without duplicates

$getWorkflowStaticData('global') is used to collect trends, which avoids bloating the standard context and duplicating data.

Mass video posting: how an AI model created a conveyor for 127 n8n nodes in — illustration 2

Error Handling: 402 vs 5xx

The system distinguishes between critical errors (402 — no funds) and temporary failures (5xx — service temporarily unavailable).

  • 402: Telegram alert + StopAndError (no point in retrying without funds).
  • 5xx: retry × 3 = fail-open (handle is skipped, pipeline continues).

Fail-open for reranker

If Qwen3 Reranker does not respond after three retries, all documents are assigned a neutral score of 0.5, which is filtered out. The pipeline does not break but quietly skips the round.

Model errors and my own

Despite the impressive result, both model errors and shortcomings in my approach were identified during the process.

Model flaws:

  • require(‘crypto’) in Code node (n8n does not support require).
  • Google Drive erases binaries, which required a Rebuild Handoff Item node.
  • Phantom nodes with non-existent type/typeVersion.
  • Hardcoded IG_USER_ID instead of using credentials.

My own blunders:

  • Misaligned reranker threshold (MIN_RELEVANCE_SCORE in sticker and in IF node).
  • Insufficient polling attempts for video during peak hours (20 × 10s).

Economics of the experiment: $4 for 60.9 million tokens

The cost of 500 publications or even more, thanks to this experiment, turned out to be minimal.

  • Free window: the stealth model was temporarily free.
  • Prompt caching: 85% of requests were cache hits due to iterative development.
  • Total cost: about $4 for 60.9 million tokens.

Price comparison with other models (average prices per 1M tokens):

Model Price per 1M (in/out) Estimated for 60.9M
Anthropic: Claude Opus 4.8 $5 / $25 about $426
OpenAI: GPT-5.6 Terra $2 / $12 about $183
Anthropic: Claude Sonnet 5 $2 / $10 about $171
Qwen: Qwen3.8 27B $0.35 / $2.75 about $36
DeepSeek: V3.1 Terminus $0.27 / $1 about $21
stealth/ox-alpha + cache free about $4

The paradox is that the free model built a factory that uses inexpensive services, saving significant funds on a monthly mass-posting package.

Workflow growth areas and further development

Further project development may include:

  • Monolith splitting: into three workflows (Radar / Generate / Publish).
  • Telegram bot: with human-in-the-loop management (“Publish / Regenerate”).
  • Neuroavatar: integration of HeyGen: Avatar IV model for creating videos with avatars.

Conclusion

The experiment with stealth/ox-alpha showed that AI models are capable of creating complex and fault-tolerant pipelines for automatic publication of short videos. The key success factor is clear technical specifications and a structured approach to interacting with LLMs. This technology opens up huge opportunities for mass uploading with proxies and anti-detect, allowing to post to 10 accounts and more, significantly reducing labor costs.

If you are looking for how to choose a mass posting service, pay attention to solutions that use similar AI approaches. Mass posting via API is becoming more accessible and effective than ever. Try applying these principles in your projects and see their power!

Frequently Asked Questions

What is stealth/ox-alpha?

stealth/ox-alpha is the codename for an AI model that was later de-anonymized as Z.ai GLM 5.3 Flash. It has a 1M token context and native multimodality, designed for efficient encoding and agent tasks.

How much did the workflow creation experiment cost?

Thanks to a free trial period and a high cache hit rate (85%), the experiment cost about $4 for 60.9 million tokens.

What platforms are supported for cross-posting?

In this workflow, publishing to Instagram Reels via the Graph API was implemented. However, the architecture allows for expanding the list of platforms, including TikTok and YouTube, to create a unified dashboard.

Is it possible to publish 100 videos a day using such a system?

Yes, theoretically it is possible. The system is designed for automatic short video publishing and mass posting. Limitations will depend on the API throughput of the platforms used and computational resources.

How to ensure fault tolerance in mass posting?

Fault tolerance is ensured by protective logic: separation of 402 and 5xx errors, fail-open strategies for critical nodes, as well as asynchronous polling and retries. This guarantees that the schedule across 10+ accounts will be executed seamlessly, even during temporary failures.

  • AI Content Factory: How to Scale Content Production Without Losing Quality

    AI Content Factory: How to Scale Content Production Without Losing Quality

    Creating an effective AI-powered content factory is not just about automation, but about building an entire system where neural networks handle routine operations, freeing up time for strategic planning. We, as producers, know: a tired streamer cannot generate ideas. How do you package raw material into highlights without losing quality and without turning the process into chaos? This article will help you build an assembly line where AI will not be a replacement, but a powerful assistant.

    What is a content factory and why is it needed?

    A content factory is a systematized process of content production, based on the principle of “One idea – many formats”. AI here does not completely replace humans, but automates repetitive actions. Our goal is not just to increase volume, but to create mass cutting of 100+ clips and other formats, while maintaining quality and relevance.

    The role of AI in the content conveyor

    AI can be implemented at almost every stage of content production, from idea to publication. However, its role should always be auxiliary. For example, a neural network can suggest 100 blog topics, but the choice of the most relevant and valuable ones remains with a human.

    This is especially true for expert content, where factual accuracy is critically important.

    “A neural network can easily generate a hundred blog topics for a dental clinic, an English school, or an online store. The harder part is understanding which of these are actually worth pursuing.”

    Defining goals and initial data

    Before building a “conveyor,” it is necessary to clearly define what problem it should solve. The phrase “We need more content” is too vague. We need to understand what exactly is missing: time, people, or money.

    Choosing a content factory strategy

    • A) Accelerating publication for multiple platforms: If the task is to quickly manage Telegram, VKontakte, and other social networks with a small team, the factory should reduce the time from idea generation to a complete set of publications.
    • B) Increasing organic traffic: In this case, the content factory is built around semantics. AI helps analyze search queries, identify gaps, and generate ideas for new articles optimized for SEO.
    • C) Reducing production costs: If the team spends a lot of time gathering factual material, the factory will help repackage one expensive source into several formats, saving budget.
  • Searching for “Raw Material” for a Content Factory

    Quality raw material is the key to successful production. For each strategy, it is different:

    Developing a Route: From Raw Material to Finished Content

    After defining the goal and raw material, it is necessary to think through the content movement route. This will help to understand how long each stage takes and where automation can be implemented.

    Route Examples

    1. For multi-platform publication: 🛠️ Facts → Format Selection → Tasks → Drafts → Editing → Visuals → Publication.
    2. For SEO traffic: 🛠️ Semantics → Analysis of existing materials → Cluster Selection → Sources and Facts → Article → Publication → Indexing → Next Material.
    3. For cost reduction: 🛠️ Expensive source material → Processing → Maximum repackaging (e.g., cutting a podcast into video clips, cropping 9:16 from horizontal footage).

    Automating Repetitive Operations

    AI is most effective where there are repetitive actions that do not require a new solution each time. These can be:

    Establishing Rules for AI

    For AI to work effectively, it needs clear rules and boundaries. Without them, it can generate meaningless or irrelevant content.

    Content Factory with AI: How to Scale Content Production Without Losing Quality — illustration 2

    Examples of Rules

  • To save budget: Determine what material is considered standalone, when a derivative format adds value, and what cannot be cut without losing meaning.
  • Implementing AI Tools

    Only after defining goals, raw materials, routes, and rules can specific AI tools be selected. It is important to understand what limitation we are removing and what area we are automating.

    Recommended Tools

    Evaluating the Effectiveness of a Content Factory

    The content factory’s performance should be checked at three levels:

    1. Production speed: How much time passes from factual material to publication? Where do delays occur?
    2. Control cost: How much time is spent checking and correcting AI drafts?
    3. Content results: Read-throughs, saves, clicks, leads, organic traffic, video views. It’s important that 50 additional posts don’t go “into the drawer.”

    “Good automation should reduce the cost per useful unit, not just increase the number of files in a folder.”

    Frequently Asked Questions

    How long does it take to cut a two-hour stream?

    Using specialized AI tools, such as Creoscan, cutting a two-hour stream into main highlights can take from 15 to 30 minutes, including automatic subtitle addition and adaptation to different formats, for example, cutting for TikTok from Twitch.

    What moments are usually cut from streams?

    From streams, highlights, funny moments, important announcements, key answers to audience questions, gaming achievements, and the host’s emotional reactions are usually cut. Anything that can attract attention and go viral.

    Are subtitles needed for cuts?

    Yes, subtitles for cuts are extremely important. They improve content accessibility, allow viewing videos without sound, and increase audience engagement, especially on social media, where many users watch videos without sound.

    Can I order 20 clips from a stream?

    Of course! Many studios and freelancers offer services for cutting without loss of quality. With AI tools, this can be done quickly and efficiently, resulting in 20 clips from a stream, ready for publication.

    Who is the person who cuts streams?

    A person who cuts streams is a video editor or content manager specializing in creating short, engaging videos from long live streams. They select the most interesting moments, add graphics, music, and subtitles to transform raw footage into ready-made highlights for various platforms.

    Conclusion

    Building an AI content factory is not an instant solution, but a sequential process. Start small: choose one repeatable content stream, work it out manually, and then automate the sections that do not require a new solution. This will allow you to effectively scale production, create 20 clips from a stream or dozens of posts, and ultimately, monetize a stream through cuts. Ready to start your conveyor? Try the tools we’ve discussed and turn your ideas into ready-made content today!