Engineering notes

AI Content Automation

Designing an API-Driven Video Production Workflow

Project type
Automation / AI Workflow Engineering
Role
Independent Developer
Technologies
JavaScript, Node.js, Playwright, HeyGen API, HyperFrames, FFmpeg, Git
Status
Working local pipeline with additional automation and publishing features under development.

Overview

AI Content Automation is a workflow engineering project focused on reducing repetitive tasks involved in producing short-form digital content.

The system combines browser automation, AI-generated video assets, media processing and programmatic video editing.

My objective was to create a reusable production process rather than manually repeating the same steps for every video.

The Problem

Producing a short promotional video often involves several separate tools.

A typical workflow may require writing a script, generating narration, capturing product demonstrations, creating visual assets, adding captions and exporting the final video.

Moving between these tools manually introduces delays and makes it difficult to maintain consistent output.

I wanted to explore how APIs and automation could connect these stages.

My Approach

I divided the production process into separate components responsible for specific tasks.

These include:

  • Planning video scenes.
  • Generating AI presenter content.
  • Capturing real application interfaces.
  • Processing video and audio assets.
  • Adding captions and visual elements.
  • Preparing final video outputs.

I used Node.js scripts to coordinate integrations and Playwright to automate browser interactions.

HeyGen was integrated for AI presenter generation, while HyperFrames and FFmpeg were used in the media production workflow.

Technical Architecture

The workflow follows a modular structure:

Content Brief → Scene Planning → Asset Generation → Browser Capture → Video Assembly → Review

Each stage has a defined responsibility.

For example, product demonstrations are captured from real application interfaces using Playwright rather than generated as fictional software screens.

This helps maintain accuracy when producing promotional content.

Engineering Challenges

Coordinating Multiple Services

Different tools expose different interfaces, authentication methods and response formats.

I worked on connecting these services through reusable scripts and handling the practical differences between their workflows.

Browser Automation

Automating real application demonstrations requires careful control of browser navigation, timing and interaction sequences.

I used Playwright to capture application flows in a vertical format suitable for short-form videos.

Protecting Sensitive Information

Automated demonstrations can accidentally expose passwords or private information.

I introduced a workflow rule requiring password masking, careful handling of autofill suggestions and additional visual protection when necessary.

Managing Media Assets

Video production involves large files, different formats and multiple intermediate outputs.

I used FFmpeg and organised project directories to support repeatable media processing.

What I Learned

The project helped me develop practical skills in:

  • API orchestration.
  • Browser automation.
  • Node.js scripting.
  • Media processing.
  • Workflow decomposition.
  • Error investigation.
  • Integration testing.
  • Secure handling of demonstration data.

It also reinforced the importance of keeping automated systems modular.

When individual components have clear responsibilities, they are easier to test, replace and improve.

Future Development

Future improvements include stronger job-state tracking, retry handling, automated quality checks, monitoring and more reliable publishing integrations.

I also want to improve the workflow's ability to recover from failed external API requests without restarting an entire production job.

Conclusion

AI Content Automation demonstrates how I approach automation problems: identify repetitive work, divide the process into manageable components and connect the necessary technologies into a reusable system.

It combines my earlier RPA background with modern API-driven automation and AI services.

All engineering notes