🧠 HeyCMO
Tools

Content Tools

Visual content rendering, lead magnet generation, and voice synthesis tools.

Content Tools

HeyCMO's content tools handle the visual and multimedia side of content creation — rendering branded images, generating lead magnet PDFs, creating video content, and synthesizing voice narration.

Renderer (Core Engine)

The foundational rendering engine used by all visual content tools. Uses Playwright (headless Chromium) to render HTML templates into PNG images.

Architecture

  • Single-browser instance with connection recovery
  • Concurrency semaphore (one render at a time to prevent resource exhaustion)
  • Automatic browser reconnection on failure
  • Configurable viewport dimensions

How It Works

  1. Agent provides slide/content data + template selection
  2. Template function generates branded HTML
  3. Playwright renders HTML at target resolution
  4. PNG image is saved to disk and file path is returned

Generates branded 1080×1080 PNG carousel images — the highest-engagement format on Instagram and LinkedIn.

Templates

TemplateBest ForDescription
tipEducational contentNumbered tip slides with progression
statData-driven postsBig number callouts with context
storyNarrative contentStory arc across slides
quoteThought leadershipAttribution-style quote slides
listicleLists and breakdownsBulleted item slides

Input

  • slides (2–10) — Array of { text, subtitle? } objects
  • template — One of: tip, stat, story, quote, listicle
  • brand (optional) — Custom colors and font overrides

Output

File paths to generated PNG images, one per slide.

Creative Static

Generates single branded images for social posts. Same rendering engine as carousels but for standalone visuals.

Creative Reel

Generates short-form video with text overlays on solid color backgrounds using FFmpeg.

Input

  • script (1–10 segments) — Array of { text, duration } objects
  • brand (optional) — Background and text colors
  • outputPath — Safe local .mp4 filename

How It Works

  1. Calculates total duration from segment timings
  2. Generates FFmpeg filter chain with timed text overlays
  3. Renders 9:16 portrait video (1080×1920) for social platforms
  4. Returns file path, duration, and segment count

Creative OG Image

Generates 1200×630 PNG Open Graph images optimized for social sharing previews (Twitter cards, Facebook, LinkedIn).

Lead Magnet Generator

Generates PDF lead magnets matched to funnel stage with pre-built templates:

Templates

TypeStructure
ChecklistBefore You Start → Core Implementation → Optimization → Maintenance
GuideMulti-section comprehensive guide with actionable steps
TemplateFill-in-the-blank frameworks
Cheat SheetQuick reference with key facts and formulas

Each template dynamically adapts to the topic and target audience.

Text-to-Speech (Voice)

Uses the ElevenLabs HTTP API to generate voice narration for video content, podcast intros, and audio versions of written content. Handled by apps/api/agent/tools/voice.ts.

On this page