How aws-samples/sample-mimir-saga-ai-media-pipelines works
This AWS CDK application deploys AI-assisted Mimir media workflows and Saga editorial workflows. A Mimir or Saga action/webhook initiates a pipeline; Step Functions coordinate processing that can analyze, summarize, transform, or assemble media and then update the relevant system. The rough-cut workflow combines script analysis, clip search, voice-over, and timeline creation. Separate capabilities cover feed ingestion, story research, MCP access, and observability. The graph combines README-documented workflows with sampled source; unsampled handlers are included only where their role is documented or clear from their path.
Main entry points: infrastructure-stack.ts Workflow orchestration · rough_cut_agent.py Rough-cut agent · app.ts CDK app · saga-feeds-stack.ts Saga feed workflow
Components 26
Pipeline orchestration
- Workflow orchestration
lib/infrastructure-stack.ts - Saga feed workflow
lib/saga-feeds-stack.ts
Media processing
- Video embeddings
lambda/embedding-trigger-handler/index.js - Camera stability
lambda/stability-analysis-handler/index.js - Video summarization
lambda/summarizer-handler/index.js - Transcription
lambda/transcribe-handler/index.js - Video chapters
lambda/chapterize-handler/index.js - Smart reframe
lambda/vertical-reframe-handler/index.js - Graphics overlay
lambda/graphics-overlay-handler/index.py
Editorial workflows
- Rough-cut agent
agents/rough-cut-agent/rough_cut_agent.py - Cut profiles
agents/rough-cut-agent/profiles.py - Agent prompts
agents/rough-cut-agent/prompts.py - Media and timeline tools
agents/rough-cut-agent/tools.py - Story research
lambda/story-research-handler/index.js - Story context
lambda/story-context-handler/index.js - Feed matching
lambda/saga-feed-handler/index.js
Platform integrations
- Mimir Saga MCP
agents/mimir-mcp-server/mimir_mcp.py - Authenticated MCP gateway
lib/mcp-gateway-stack.ts - AgentCore runtimes
lib/agentcore-stack.ts - Agent runtime construct
lib/constructs/multi-agent-core.ts - XML processor agent
agents/xml-processor-agent/xml_processor_agent.py
Runtime services
- Model logging
lib/observability-stack.ts - S3 Vectors
lib/infrastructure-stack.ts - CDK app
bin/app.ts
Other components
- Mimir
- Saga
Connections 31
- Mimir → Workflow orchestration: triggers workflows
README.md - Saga → Workflow orchestration: triggers actions
README.md - Workflow orchestration → Video embeddings: runs embedding
README.md - Workflow orchestration → Camera stability: analyzes footage
README.md - Workflow orchestration → Video summarization: summarizes video
README.md - Video summarization → Transcription: falls back to
README.md - Workflow orchestration → Video chapters: creates chapters
README.md - Workflow orchestration → Smart reframe: reframes video
README.md - Workflow orchestration → Graphics overlay: overlays graphics
README.md - Workflow orchestration → Rough-cut agent: invokes agent
README.md - Workflow orchestration → Story research: runs research
README.md - Workflow orchestration → Story context: gathers context
README.md - Saga → Saga feed workflow: triggers ingestion
README.md - Saga feed workflow → Feed matching: matches stories
README.md - Rough-cut agent → Cut profiles: selects profile
agents/rough-cut-agent/rough_cut_agent.py - Rough-cut agent → Agent prompts: uses prompts
agents/rough-cut-agent/rough_cut_agent.py - Rough-cut agent → Media and timeline tools: uses tools
agents/rough-cut-agent/rough_cut_agent.py - Rough-cut agent → Camera stability: reads stability maps
agents/rough-cut-agent/rough_cut_agent.py - Rough-cut agent → S3 Vectors: searches embeddings
README.md - Rough-cut agent → Mimir: creates timeline
README.md - Mimir → Mimir Saga MCP: exposes asset tools
README.md - Saga → Mimir Saga MCP: exposes story tools
README.md - Authenticated MCP gateway → Mimir Saga MCP: routes tool requests
lib/mcp-gateway-stack.ts - AgentCore runtimes → Agent runtime construct: deploys runtimes
lib/agentcore-stack.ts - Agent runtime construct → XML processor agent: hosts agent
- CDK app → Workflow orchestration: instantiates stack
bin/app.ts - CDK app → Saga feed workflow: instantiates stack
bin/app.ts - CDK app → AgentCore runtimes: instantiates stack
bin/app.ts - CDK app → Authenticated MCP gateway: instantiates stack
bin/app.ts - CDK app → Model logging: instantiates stack
bin/app.ts - Workflow orchestration → Model logging: configures model logging