Features
- Video Processing: Upload Loom files or analyze YouTube URLs
- Smart Summarization: Automatic extraction of highlights and action items
- Custom Prompts: Use default templates or create custom analysis workflows
- Fast Processing: Powered by Gemini 2.0 Flash API
How It Works
The analyzer processes videos through a structured pipeline:Core Components
| Component | Purpose |
|---|---|
| Gemini Files API | Video upload and validation |
| Gemini Cache API | Context extraction and preprocessing |
| LLM Engine | Analysis using GPT-4 or Gemini models |
| Prompt Templates | Structured analysis instructions |
| Token Tracker | Usage monitoring and cost calculation |
Implementation
Video Analysis Pipeline
Processing Flow
-
Upload Validation
- Validates file size and duration constraints
- Checks format compatibility
-
Context Extraction
- Pre-processes video using Gemini Cache API
- Extracts semantic context for analysis
-
LLM Analysis
- Applies prompt templates for sales-focused insights
- Generates structured output with key findings
-
Result Storage
- Saves analysis to backend storage
- Tracks token usage and costs
API Reference
Endpoints
Primary Analysis EndpointFunctions
| Function | Purpose |
|---|---|
getAIProAgentChatResponse() | Standard LLM agent processing |
getSalesCallResponse() | Sales-specific analysis pipeline |
Configuration
Model Settings
- Primary Model: Gemini 2.0 Flash (recommended)
- Alternative: GPT-4 for specialized analysis
- Context Window: Up to 1M tokens
File Constraints
- Maximum Duration: 2 hours
- Supported Formats: MP4, MOV, WebM
- File Size Limit: 500MB
- Source Types: Direct upload, Loom URLs, YouTube URLs
Analysis Templates
Built-in templates for common analysis patterns:- Objection identification and handling
- Sentiment and engagement tracking
- Talk ratio and conversation flow
- Key decision points and next steps
Usage Examples
Basic Analysis
Custom Analysis
Performance Considerations
File Limits
- Maximum video duration: 2 hours
- Supported formats: MP4, MOV, WebM
- File size limit: 500MB
Processing Time
- Average processing: 30-60 seconds per hour of video
- Parallel processing supported for multiple videos
- Caching reduces repeat analysis time by 80%
Error Handling
Common error scenarios and responses:| Error Code | Description | Solution |
|---|---|---|
VIDEO_TOO_LARGE | File exceeds size limit | Compress video or split into segments |
INVALID_URL | URL not accessible | Verify video is public and URL is correct |
QUOTA_EXCEEDED | API rate limit reached | Implement request throttling |
PROCESSING_FAILED | Analysis pipeline error | Retry with different prompt or video format |
Integration Notes
Authentication
API calls require valid authentication tokens. Include in request headers:Rate Limits
- 100 requests per hour per API key
- 10 concurrent video processing jobs
- Token usage tracked per request

