Content EngineRich MediaMasteryOSFeature FlagsVoice March 2026

Content Engine, Rich Media & MasteryOS Feature Layer

A new layer on top of the 4-layer stack: content publishing engine, AI-generated rich media in NowPage, gated resource library in MasteryOS, and MasteryBook features surfaced natively inside MasteryOS.

What We're Building

The 4-layer stack (Create → Extract → Distribute → Monetize) has been defined. This doc adds the production capabilities that make each layer generate revenue independently and compound into each other.

Content Engine

MasteryBook research → multiple content formats → published via NowPage. Mastery Minutes, blog posts, podcast episodes, visual summaries — all generated from one source document.

Rich Media in NowPage

NowPage HTML pages embed AI-generated images (Nanobanana/Imagen), audio overviews, and video. Assets stored in Supabase Storage. Every HC page becomes a full multimedia experience.

MasteryOS Feature Layer

All content artifacts and MasteryBook capabilities surface natively inside MasteryOS — gated behind subscription tiers. Experts toggle premium features on. Users access them within their subscription.

The Core Design Principle

MasteryBook is the engine. MasteryOS is the storefront. NowPage is the window display. The expert creates once in MasteryBook — the content engine formats it into everything, NowPage publishes it publicly, and MasteryOS gates the full version behind a subscription. One expert action → compounding content output across all three layers.

The Content Engine

A new service layer that sits between MasteryBook (extraction) and NowPage (publishing). Takes structured MasteryBook output and transforms it into multiple content formats simultaneously.

📄

Input: MasteryBook source_guide JSON

summary, key_points, topics, insights, full_text. Already generated on every upload. The content engine subscribes to a webhook when a source's status changes to "ready."

⚙️

Content Engine processes in parallel

Runs multiple LLM calls concurrently: blog post, Mastery Minutes, podcast script, visual prompt, social snippets, email digest. Each format has its own prompt template calibrated to the expert's voice/tone profile.

🎨

Rich media generation

Podcast script → ElevenLabs/MasteryBook audio pipeline → .mp3 in Supabase Storage. Visual prompt → Nanobanana/Imagen API → .png in Supabase Storage. Video script → queued for video generation (Veo or similar).

📦

Asset catalog in MasteryOS

All outputs written to MasteryOS resource library with metadata: format, created_at, source_id, access_tier. Expert can preview and selectively publish each piece.

📡

Expert approves → NowPage publishes

Expert reviews generated content in MasteryOS dashboard. One-click publish sends to NowPage with all rich media embedded. Page goes live on expert's domain with full multimedia.

🔒

Gating: public teaser + subscriber full access

NowPage shows: summary + first insight + audio clip preview (60 sec) + image. Full podcast, full blog, all insights, video → subscriber-only in MasteryOS. Assessment at bottom of NowPage page → MasteryOS signup.

Mastery Minutes

The signature content format: a 300-500 word distillation of one expert insight, designed to be consumed in under 2 minutes. Think "HBR Daily" or "Morning Brew" — but for the expert's specific methodology.

Mastery Minutes Format

  • Hook: The one thing you'll know after reading this
  • Context: Why this matters right now (2 sentences)
  • The insight: The expert's framework in plain language
  • The application: One action to take today
  • The 2nd order: What changes if you get this right
  • CTA: "Go deeper →" link to MasteryOS subscriber page

Distribution Channels

  • NowPage HC page (public, SEO-indexed)
  • Email digest (to NowPage community subscribers)
  • Social post variants (Twitter thread, LinkedIn, Instagram caption)
  • MasteryOS subscriber feed (premium: full with audio)
  • Podcast episode (premium audio layer)
  • Weekly digest bundle (5 minutes → email roundup)

The Volume Play

An expert with 20 documents in MasteryBook has 20 potential Mastery Minutes — each a standalone HC page indexed by Google. At 50 documents, that's 50 indexed pages linking back to their MasteryOS profile. The content engine turns passive uploads into an always-on SEO and lead generation machine. No extra expert effort required.

NowPage Rich Media

NowPage stores and serves raw HTML from Supabase. That HTML can embed anything a browser can render. There's no hard limitation — the constraint is asset storage and CDN delivery, not the page format itself.

Media TypeHow It WorksStorageStatus
AI-Generated Images Nanobanana/Imagen API → .png → Supabase Storage → <img src="..."> in page HTML Supabase Storage (public bucket) Needs image gen + storage wiring
Audio Overviews MasteryBook audio_overview → .mp3 → Supabase Storage → <audio controls> in HTML Supabase Storage Audio gen exists, storage wiring needed
Video Veo/video gen → upload → Supabase Storage or YouTube → <video> or iframe Supabase Storage or YouTube embed Planned — video gen not integrated yet
Podcast Player Styled <audio> tag with waveform preview. Episode metadata in HTML. Full episode behind paywall link. Supabase Storage Audio gen exists, player UI needed
Interactive Assessment JavaScript quiz embedded in HTML. Answers → POST to API → lead capture → MasteryOS signup trigger. No storage needed (JS inline) Template needed
Infographics / Visual Summary Content Engine generates structured data → renders as styled HTML (no image needed) OR Imagen generates graphic. Supabase Storage or inline HTML HTML approach possible now

Image Generation: Nanobanana / Imagen

Nanobanana is Google's image generation capability accessible via Gemini API (Imagen model family). It's the same infrastructure as Google's ImageFX. MasteryBook's Gemini integration gives us direct access.

1

Content Engine generates a visual prompt

From the source_guide JSON: "Create a professional infographic-style hero image for a coaching framework about [topic]. Style: clean, dark background, [expert brand colors]. No text in image."

2

Gemini Imagen API call

POST https://generativelanguage.googleapis.com/v1beta/models/imagen-3.0-generate-001:predict with the prompt. Returns base64-encoded PNG. Uses expert's BYOK Gemini API key from Credential Vault.

3

Upload to Supabase Storage

Decode base64 → upload to public/expert-{id}/images/{source-id}.png bucket. Get the public CDN URL.

4

Embed in NowPage HTML

NowPage template places <img src="{cdn_url}" alt="{expert} framework visualization"> in the hero section. Optimized with lazy loading and responsive sizing.

5

Image stored in MasteryOS resource library

Same URL stored as a resource in MasteryOS. Expert can reuse the image in other contexts. User with access can download for their own use (premium tier feature).

Asset Storage Architecture

All rich media assets need a consistent, CDN-backed storage pattern. Supabase Storage is already in the stack — it becomes the asset CDN for the entire ecosystem.

Asset TypeBucket StructureAccess PolicyCDN URL Pattern
Expert avatarsexperts/{id}/avatar.pngPublicsupabase.co/storage/v1/object/public/experts/...
AI-generated imagescontent/{expert-id}/{source-id}/hero.pngPublic (teaser) / Auth (full res)Same pattern, auth header for full res
Audio overviewsaudio/{expert-id}/{source-id}/overview.mp3Signed URL (subscriber only)Signed URL with expiry (1h)
Video contentvideo/{expert-id}/{source-id}/video.mp4Signed URL (subscriber only)Signed URL with expiry (1h)
PDF exportsexports/{expert-id}/{source-id}/export.pdfSigned URL (subscriber only)Signed URL with expiry (1h)
NowPage teaser audioteasers/{expert-id}/{source-id}/60s.mp3Public (first 60s only)Public CDN URL

The Teaser Architecture

Every piece of premium content has a public teaser version and a gated full version. NowPage hosts the teaser. MasteryOS hosts the full version behind a subscription gate. This creates a consistent conversion funnel: discover on NowPage → taste the teaser → subscribe in MasteryOS to get the full version. Every asset is both marketing and product simultaneously.

MasteryOS Resource Library

A structured, searchable library of all content artifacts produced by or for an expert — gated behind subscription tiers. The library is the primary value proposition for MasteryOS subscribers beyond the AI assistant.

Resource TypeProduced ByAccess GateExpert Controls
Mastery Minutes (articles)Content Engine from MasteryBookFree preview on NowPage / Full in MasteryOS subscriber tierPublish/unpublish, set tier, edit before publish
Audio Overviews (podcasts)MasteryBook audio_overview pipeline60s teaser public / Full episode subscriber-onlyToggle on/off, set episode number, add description
Visual Frameworks (images)Content Engine + NanobananaCompressed preview public / Full resolution subscriberApprove/reject generated image, set as featured
Research ReportsMasteryBook research_tasksExecutive summary public / Full report subscriberSet summary excerpt, gate full report
Study Materials (flashcards/quizzes)MasteryBook study_materialsPreview 5 cards / Full deck subscriberEdit cards, add expert commentary
Video OverviewsMasteryBook video pipeline (when built)30s trailer public / Full video subscriberApprove/reject, set thumbnail
Live Chat InsightsMasteryOS AI assistant sessionsFeatured Q&As public / Subscriber access to AI chatPin best answers as featured resources
Downloadable PDFsContent Engine exportsSubscriber-onlySet which tier, track downloads

MasteryBook Features Native in MasteryOS

From a subscriber's perspective: they never leave MasteryOS. The "Create Podcast" button looks like an MasteryOS feature. Behind the scenes it's a POST to the MasteryBook API. Results come back into the MasteryOS resource library. The seam is invisible.

A

Expert enables "Podcast Generation" in MasteryOS expert settings

Feature toggle ON (costs +$X/mo, billed via Stripe). Expert's enabled_features array updated: ["basic_rag", "audio_overview", ...]

B

Subscriber sees "Create Audio Overview" in MasteryOS

Only visible if expert has audio_overview feature enabled AND subscriber's tier includes it. MasteryOS UI renders the button natively. No mention of "MasteryBook."

C

Subscriber clicks → MasteryOS API layer intercepts

POST /api/resources/create with {type: "audio_overview", source_ids: [...], subscriber_id: "..."}. MasteryOS backend validates feature access.

D

MasteryOS calls MasteryBook API

POST masterybook.api/audio-overview with expert's namespace + source IDs. MasteryBook API key stored in Credential Vault. Result: audio_url, script, duration.

E

Result stored in MasteryOS resource library

Audio file uploaded to Supabase Storage. Row created in resources table: {type: "audio", url: "...", created_by: subscriber_id, source_ids: [...], access_tier: subscriber_tier}

F

Subscriber can play, download, share (based on tier)

The audio lives in MasteryOS. Subscriber never needs to know about MasteryBook. Expert sees subscriber-generated content in their resource library too — both parties contributed to a shared knowledge artifact.

Premium Feature Model + Pricing

Features are billed as add-ons on top of the base MasteryOS platform. Expert pays to enable the feature. Subscribers access it within their subscription tier. This is the same model as the voice agent.

🎙️ Audio Overviews
Available Now

Expert uploads content → AI generates conversational podcast episode from their material. ElevenLabs voice synthesis with expert's voice clone (optional).

Expert add-on: +$29/mo

Subscriber access: included in Standard+ tier

🖼️ Image Generation
Needs Wiring

AI-generated visual frameworks, infographics, and hero images from expert content. Uses expert's Gemini BYOK key (Imagen). Zero cost to Jason.

Expert add-on: +$19/mo

Subscriber access: included in Standard+ tier

🔬 Deep Research
Needs Wiring

MasteryBook's multi-step research pipeline: subscriber asks a complex question → agent plans searches → synthesizes across all expert content → returns structured report.

Expert add-on: +$39/mo

Subscriber access: Premium tier only

🎬 Video Overviews
Planned

AI-generated short video summary of expert content. Veo (Google) or similar. Script from MasteryBook → AI voiceover + visual → video file stored.

Expert add-on: +$49/mo

Subscriber access: Premium tier only

🤖 AI Voice Agent
Speed fix needed

Real-time voice conversation with expert's AI assistant. LiveKit WebRTC. Currently too slow — see voice stack section. $10/mo add-on model already defined.

Expert add-on: +$10/mo

Subscriber access: Premium tier or voice add-on

📊 Study Materials
Available

MasteryBook-generated flashcards, quizzes, and study guides from expert content. Subscriber can study, test themselves, track progress against expert's framework.

Expert add-on: +$19/mo

Subscriber access: Standard+ tier

The Full Access Tier Model

Every piece of content and every feature lives at exactly one access level. This is the gating model that makes BYOK + feature flags work consistently across the entire stack.

Feature / Content
Free (NowPage)
Basic MasteryOS
$297/mo
Standard MasteryOS
$497/mo
Premium MasteryOS
$2,497/mo
Mastery Minutes articles
✓ Full text
✓ Full text
✓ Full text
✓ Full text
AI-generated images
Compressed
✓ Full res
✓ + Download
✓ + Download
Audio overviews (podcast)
60s teaser
✓ Full episode
✓ + Download
AI assistant (text chat)
✓ 50 msg/mo
✓ Unlimited
✓ Unlimited
Create audio overviews
✓ (if expert enabled)
✓ (if expert enabled)
Deep research reports
✓ (if expert enabled)
Study materials (flashcards)
Voice agent
Add-on +$X/mo
✓ Included
Video overviews
30s trailer
✓ (when built)
Resource library downloads
✓ PDFs
✓ All formats

Voice Agent Speed: Root Cause + Fix

LiveKit is the right transport layer (WebRTC, peer-to-peer). The speed problem is almost certainly in the AI processing pipeline, not the transport. The latency stack to diagnose:

Current Stack — Too Slow

STT → LLM → TTS

Total: 3-6 seconds

STT: Whisper ~500ms. LLM: GPT-4 or similar ~1,500-3,000ms. TTS: ElevenLabs standard ~800ms-1,500ms. WebRTC overhead: ~100ms. Sum: painfully slow.

Recommended Fix

Short term (this week): Switch to Option A — replace the LLM with Groq and switch TTS to Cartesia or ElevenLabs Flash. The STT can stay as-is or switch to Deepgram. This change is 3-4 lines of code in Ashwini's voice backend.

Medium term: Migrate to OpenAI Realtime API. Audio-to-audio eliminates the STT/TTS pipeline entirely. LiveKit stays as the transport layer — Realtime API gives you the AI stream, LiveKit distributes it. This becomes the definitive voice stack.

ComponentCurrentFast AlternativeLatency Impact
Speech-to-TextWhisper (OpenAI) ~500msDeepgram Nova-3 ~50ms−450ms
LLM inferenceGPT-4 ~2,000msGroq Llama 3.1 70B ~150ms or Gemini Flash ~200ms−1,800ms
Text-to-SpeechElevenLabs standard ~1,200msCartesia streaming ~60ms first chunk or ElevenLabs Flash ~200ms−1,000ms
TransportLiveKit WebRTC ✓Keep LiveKit — it's not the problemNo change needed

2nd Order Effects

Action
1st Order
2nd Order
Content Engine live
Expert uploads → 6+ content formats generated automatically.
Expert who uploads 2 documents/week generates 12+ pieces of content/week with zero extra effort. 50 HC pages in 6 months. SEO compounds. Every page is a lead magnet. Expert becomes a "prolific" content creator without creating content.
NowPage embeds rich media
HC pages include audio, images, interactive elements.
NowPage pages become genuinely shareable content, not just text. Time-on-page increases. Social shares increase. The teaser/gate model (60s audio free, full episode gated) is the most natural conversion mechanism in media — proven by every podcast, newsletter, and YouTube channel.
MasteryBook features native in MasteryOS
Subscribers get creation tools, not just consumption.
The platform becomes sticky in both directions. Subscribers don't just consume — they create artifacts (their own audio overviews, their own research reports based on expert content). The more they create, the more embedded they are. Churn drops. Perceived value increases. They're not paying for access — they're paying for a creation environment.
Voice agent speed fixed (under 400ms)
Voice conversations feel natural. Adoption increases.
Voice becomes the highest-engagement channel. Subscribers who use voice stay 3x longer than text-only (based on any conversational AI product). Voice creates the "expert in your pocket" feeling that no text interface can match. This is the feature that makes MasteryOS feel like magic to subscribers.
Feature flags + premium add-ons
Experts pay only for features they use. Revenue expands.
Revenue per expert increases over time as they add features. Expert who starts at $297/mo grows to $297 + $29 audio + $19 images + $10 voice = $355/mo. At 50 experts: that's ~$3K/mo in add-on revenue on top of base platform. This is the SaaS expansion revenue model (NRR > 100%) that makes the business compound.

Build Order (Cascade)

Phase 1 — Now (Agent Sandbox)

Content Engine + Asset Storage

  • Supabase Storage buckets + access policies
  • Content Engine service: source_guide → Mastery Minutes
  • Audio: wire MasteryBook audio_overview → Storage
  • NowPage template: embed audio + image tags
  • "Publish to NowPage" button in MasteryBook UI
Phase 2 — Before Labs April 1

MasteryOS Resource Library + Feature Bridge

  • resources table in MasteryOS DB (type, url, tier, source_ids)
  • Resource library UI in MasteryOS dashboard
  • MasteryBook API integration in MasteryOS backend
  • Feature flag system (enabled_features per expert)
  • Stripe add-on billing for premium features
Phase 3 — After First Labs Cohort

Image Gen + Voice Fix + Deep Research

  • Nanobanana/Imagen integration in Content Engine
  • Voice agent: swap LLM to Groq + Cartesia TTS
  • Deep research feature flag + MasteryBook wiring
  • Study materials gating in MasteryOS
  • Video overview pipeline (when Veo stable)

The One-Line Summary

MasteryBook generates. NowPage teases. MasteryOS gates. The expert enables features. Subscribers pay to access and create.

Every content format has a public teaser and a subscriber full version. Every feature has a base tier and premium add-ons. The voice agent gets fast. The whole stack compounds because each piece drives demand for the next.

Published March 2026 · Command Center · MasteryBook Integration · Ecosystem Vision