Case File 21 / 21 · Media & AI
Lucidream: Agentic podcast clipping and distribution
An AI content chief of staff that turns one podcast episode into a week of clips and posts
- Our role
- Product Engineering · Agentic AI & Video Pipeline
- Industry
- Media & AI
- Outcome
- One episode in; captioned clips, show notes, an article, a newsletter and a week of social posts out, from a single chat.
The engagement
What Lucidream needed
Lucidream is an agentic podcast clipping, editing and distribution tool for creators. A podcaster drops in an episode and talks to one agent: it finds the moments worth sharing, cuts and captions clips in landscape and portrait, writes show notes, articles, newsletters and posts in the creator's voice, and schedules or publishes them to their social accounts. Rootlex engineers the agent backend, the video rendering and reframing pipeline, and the web app the creator works in.
What we built
- One chat-based agent that finds moments, creates and edits clips, renders them and posts them, choosing its own tools on each turn.
- Clips rendered in 16:9 and in 9:16, with a GPU service that reframes to portrait by tracking faces.
- Show notes, articles, newsletters and social posts written in each creator's own voice, learned and remembered over time.
- Publishing and scheduling to 14 social platforms with analytics, through a self-hosted publishing stack.
- Queue-driven rendering that scales its workers with demand, with live progress streamed to the app.
Impact
One episode in; captioned clips, show notes, an article, a newsletter and a week of social posts out, from a single chat.
The challenge
Why it had to be built
Recording a podcast is only half the work. Every episode then needs clipping, reframing for vertical video, captions, show notes, a write-up and posts for each social platform, and most creators either spend days on it or let the episode go out quietly. Lucidream does that distribution work through one agent the creator simply talks to. Behind the chat that means a real video pipeline: transcription and search across episodes, frame-accurate clipping, caption rendering, face-tracked portrait reframing and publishing, all fast enough to feel conversational.
Who uses it
- Podcasters and video creators
- Drop in an episode, ask for clips in plain words, refine them by chat, and approve, schedule or publish the results.
- Content teams
- Run distribution for high-volume shows, with brand templates, a shared voice for each channel and posting to connected accounts.
- New visitors
- Try the product on their first episode before signing up, then keep everything they made when they create an account.
Inside the product
What Lucidream does
01
One agent, every step
The same agent chats, creates and edits. It switches between modes as the conversation moves, keeps the full history, and picks the tools it needs for each request.
02
Clips by conversation
Ask for "the moment about raising money" and the agent finds it in the transcript and cuts a clip; "make it shorter" or "add captions" edits it in place.
03
Landscape and portrait
Every clip renders in 16:9 for YouTube and in 9:16 for Shorts, Reels and TikTok, reframed by tracking the speaker's face.
04
On-brand captions
Word-level captions and brand overlays burned into each clip during rendering.
05
Search across episodes
Episodes are transcribed, split into passages and indexed for both meaning and exact words, so the agent can find any moment across a creator's catalogue.
06
The creator's voice
A per-channel voice file sets tone, taste and banned phrases, and is applied to every reply and every piece of writing.
07
Memory that learns
The agent remembers each creator's preferences, and treats approvals and rejections as evidence of what they like.
08
Written content
Show notes, articles, newsletters and platform-specific posts drafted from each episode.
09
Social publishing
Post now or schedule across 14 platforms including X, Instagram, TikTok, LinkedIn and YouTube, with the right aspect ratio attached and analytics read back.
10
Plans and billing
Paid plans through Stripe checkout and webhooks, with plan usage visible to the agent.
11
Agent access
Creators' own AI agents can run the same job through Lucid's MCP server with one API key.
Under the hood
How it is engineered
- A streaming agent loop
- Each chat turn streams over server-sent events while the model calls tools. If a stream drops mid-turn, the app re-attaches and replays the events, so long renders never lose the conversation.
- Queue-driven rendering
- Render and ingest jobs go onto SQS with idempotency keys. Consumers hand them to Remotion and the GPU service over HTTP, write status to Postgres, and the backend pushes completion to the app.
- Autoscaled by queue depth
- A Lambda reads render-queue depth every minute and sets the number of render workers, so capacity follows demand.
- Face-tracked portrait reframing
- A GPU service uses YOLO and RetinaFace with hardware-accelerated ffmpeg to follow the speaker when turning landscape video into 9:16.
- Hybrid retrieval
- Transcripts are embedded into dense and sparse vector indexes in Pinecone, and creator memory combines Gemini embeddings with Postgres full-text search.
- Self-hosted publishing
- Social posting runs on a self-hosted Postiz stack, so content, OAuth tokens and analytics stay on the product's own infrastructure, with every post written to an audit table.
- Try before sign-up
- Anonymous visitors are real accounts flagged as anonymous, so their chats, clips and memory carry over intact when they register.
- Observability
- Every service is instrumented with OpenTelemetry and reports traces and metrics to SigNoz.
More case files
Other partnerships
- FinTechTwigTradeMulti-broker trading platform
- Media & AIThe SpiceAI podcast intelligence platform
- Retail & E-commerceHinchLuxury interiors e-commerce platform
- Manufacturing & IoTASACOSmart-factory platform for CNC manufacturing
- Devotional & MediaEkamDaily devotional app in nine Indian languages
- Creator ToolsSwishPhoto and video editor that animates by touch
- Consumer AppsLumaPrivate, on-device storage cleaner for iPhone
- Distribution & Supply ChainMaterialFlowWhatsApp-first order operations for distributors
- HealthcareBhavishya BharatOffline-first hospital management
- EV ChargingVega ChargeQR-and-UPI software for walk-up EV charging
- HealthcareQatalysClinical care platform for residential care centres
- HealthcareMediMindHospital management system with ABDM integration
- IT ServicesCloud QuestEngineering partner for an AI and IT staffing firm
- IT & Life Sciences StaffingAlice ConsultingEngineering partner for a life sciences firm
- IT Staffing & ConsultingTekBluEngineering partner for an IT consulting firm
- EducationPenguin TotsPrintable worksheet store for kids
- IT Services & Software EngineeringQuadSoftEngineering partner for a software engineering firm
- Electronics ManufacturingVelosys ElectronicsEngineering partner for an electronics maker
- Enterprise Software ConsultingBNS InternationalEngineering partner for a software consultancy
- Events & HospitalityVRC ConventionEngineering partner for a convention venue
Forward Deployed Engineering
Embedded with Lucidream, not working at arm's length
Rootlex engagements are run by forward deployed engineers (FDEs) who join the client's team, learn the business first-hand, and own the platform in production.
- Embedded in your team: your repos, tools, channels and stand-ups
- Accountable for the outcome in production, not just the code
- Backed by our AI, cloud, embedded and security practices
Get in touch
Planning something similar?
Tell us where you’re headed — we’ll bring the architecture, the team, and the partnership to get there.
