An AI-powered system that transforms insurance plan PDFs into dynamic Slidev presentations with synchronized narration, powered by LangGraph orchestration, GPT-4o content analysis, and OpenAI's Text-to-Speech.
The system automatically:
- Processes and analyzes insurance plan PDFs
- Generates professional slide decks with consistent branding
- Creates synchronized voiceover narration
- Validates content accuracy and structural alignment
- Exports to multiple formats (PDF/web)
npm run create-deck <DECK_ID> "<Deck Title>"
# Example: npm run create-deck FEN_EXAMPLE "Example Insurance Plan"npm run dev:<DECK_ID> # Start development server
npm run build:<DECK_ID> # Build for production
npm run export:<DECK_ID> # Export to PDF
npm run preview:<DECK_ID> # Preview remotelynpm run generate-audio <DECK_ID>- LangGraph: Orchestrates the multi-step generation pipeline
- GPT-4o: Powers content analysis and generation
- OpenAI TTS: Creates natural narration
- Slidev: Renders markdown into presentations
-
Template System
- Dynamic template injection
- Automatic variable replacement
- Consistent branding and styling
- Smart layout selection based on content
-
Content Processing
- Intelligent section breakdown
- Key information extraction
- Benefit comparison tables
- Feature highlight detection
-
Presentation Structure
- Overview slides
- Feature breakdowns
- Plan comparisons
- Cost management tools
- Service descriptions
- Definitions and limitations
-
PDF Analysis
- Image extraction
- Content analysis with GPT-4o
- Table detection and processing
-
Content Generation
- Markdown generation with Slidev syntax
- Template-based formatting
- Branding integration
-
Validation
- Structure alignment verification
- Content accuracy checks
- Template compliance
-
Audio Generation
- Script creation
- TTS processing
- Timing synchronization
interface BuilderState {
messages: any[]; // Processing messages
metadata: DeckMetadata; // Deck configuration
slides: Record<string, any>[]; // Generated slides
audio_config?: Record<string, any>; // Audio settings
error_context?: Record<string, any>; // Error tracking
deck_info?: Record<string, string>;
pdf_info?: Record<string, any>;
page_summaries?: Record<string, any>[];
}insurance-deck-builder/
├── agents/ # AI processing agents
│ ├── builder/ # Core pipeline logic
│ ├── config/ # AI configuration
│ └── utils/ # Helper functions
├── decks/ # Generated presentations
│ ├── FEN_TEMPLATE/ # Base template
│ └── [DECK_ID]/ # Generated decks
├── scripts/ # Utility scripts
└── types/ # TypeScript definitions
MIT License - Free to use, modify, and distribute