An intelligent video generation and management system that creates, analyzes, and publishes AI-generated videos across multiple platforms via a Telegram bot interface.
- Multi-Client Management: Handle multiple content creators and platforms from one system
- Intelligent Planning: LLM-based story and content planning
- Video Generation: AI-powered image and audio synthesis
- Smart Analysis: Video performance tracking and feedback integration
- Memory System: Learns from successful patterns and failures
- Daily Scheduling: Automated content generation and publishing
- Telegram Control: Command-based bot interface for easy management
- Reference Learning: Platform-specific reference video analysis
ai_video_agent/
βββ agent.py # Core orchestration engine
βββ llm_planner.py # Story and content planning
βββ image_generator.py # AI image synthesis
βββ audio_generator.py # Text-to-speech generation
βββ video_assembler.py # Video composition and export
βββ video_analyzer.py # Performance metrics and analysis
βββ story_validator.py # Content quality validation
βββ telegram_bot.py # Bot command interface
βββ client_profile.py # Multi-client management
βββ memory_system.py # Pattern learning system
βββ daily_scheduler.py # Automated scheduling
βββ main.py # Entry point
- Python 3.8+
- See
requirements.txtfor dependencies
git clone <repository-url>
cd AI_Video_Agent_v6
pip install -r requirements.txtCreate your client profiles in clients/ directory (YAML format):
name: "Your Client Name"
platform: "youtube"
content_style: "educational"
# See clients/example_fitness_coach.yaml for full template# Windows
setup_windows.bat
# macOS/Linux
python -m pip install -r requirements.txtDaily Scheduler (Automated generation):
python -m ai_video_agent.daily_scheduler
# or: run_daily.bat (Windows)Telegram Bot (Interactive control):
python -m ai_video_agent.telegram_bot
# or: run_telegram.bat (Windows)One-off Generation:
python -m ai_video_agent.mainMain configuration file with API endpoints, model settings, and platform defaults.
Individual YAML files for each content creator:
- Content style and platform preferences
- Brand guidelines and tone
- Content frequency and scheduling
- Reference video patterns
The system learns from:
- successful_patterns.json: High-performing content structures
- failed_patterns.json: What to avoid in future generations
- runs.json: Execution history and timing data
- feedback.json: User and audience feedback integration
/start - Initialize bot
/create [client] - Generate new video
/status - Current system status
/schedule [time] - Set automated generation
/analyze [video_id] - Analyze video performance
/feedback [notes] - Submit feedback
/help - Show all commands
ai_video_agent/- Python package with core modulesclients/- Client configuration YAML filesmemory/- JSON files for learning and historyassets/- Music tracks and sound effectsreference_videos/- Platform-specific reference contentconfig.yaml- Main configuration
The system integrates with:
- LLM APIs (for planning and validation)
- Image generation APIs
- Text-to-speech services
- Video hosting platforms
- Telegram Bot API
Configure API keys in config.yaml or environment variables.
Videos are analyzed for:
- Engagement metrics
- Watch time patterns
- Audience retention
- Platform-specific performance
- Content pattern effectiveness
- Create platform adapter in client profile
- Extend
video_analyzer.pywith metrics - Add reference videos in
reference_videos/
- Modify prompts in
llm_planner.py - Adjust image/audio settings in generators
- Update validation rules in
story_validator.py
Check memory/runs.json for execution logs and timing.
Errors are tracked in memory/failed_patterns.json with context.
- Store API keys in environment variables, not config.yaml
- Use Telegram bot tokens securely
- Keep client profiles out of version control if they contain sensitive data
- Add
.gitignoreentries for credentials
[Specify your license]
Contributions welcome! Please:
- Fork the repository
- Create feature branch
- Test thoroughly
- Submit pull request
For issues, questions, or feature requests, please open a GitHub issue.
- Web dashboard for management
- Advanced analytics visualization
- Multi-language support
- Additional platform integrations
- Cloud deployment templates
- Advanced prompt engineering UI