Overview
While the YouTube Automation Agent is designed for hands-off operation, you have complete manual control over every aspect of content generation, publishing, and optimization. This guide covers all manual operations and API endpoints.All API endpoints run on port
3456 by default. Override with PORT environment variable.API Base URL
Core API Endpoints
Health Check
Verify system status and agent availability.Manual Content Generation
Generate content immediately without waiting for scheduled automation.
Response:
View Analytics
Retrieve performance analytics for recently published videos.- Performance Score: 0-100 composite score based on engagement, retention, and CTR
- View Count: Total views across all tracked videos
- Engagement Rate: (Likes + Comments) / Views
- Top Performers: Top 3 highest-scoring videos
View Upcoming Schedule
Get list of scheduled content ready for publishing.Manual Publishing
Publish content immediately, bypassing the scheduled time.
Response:
Manual publishing requires valid YouTube OAuth tokens. If publishing fails, reauthorize with
npm run credentials:setup.Dashboard Access
Access the web-based dashboard for visual monitoring and control.Dashboard URL
Dashboard Features
The dashboard provides:1
System Overview
Real-time status of all 7 agents:
- Content Strategy Agent
- Script Writer Agent
- Thumbnail Designer Agent
- SEO Optimizer Agent
- Production Management Agent
- Publishing Scheduling Agent
- Analytics Optimization Agent
2
Quick Actions
One-click buttons for:
- Generate Content Now: Trigger immediate generation
- View Analytics: Open analytics data in new tab
- View Schedule: Open schedule data in new tab
3
Status Cards
Four at-a-glance metrics:
- System Status (🟢/🔴)
- Content Generated count
- Videos Published count
- Next Generation time
4
Live Monitoring
Six dashboard cards showing:
- System Overview (uptime, agents active)
- Upcoming Schedule (next 3 items)
- Content Strategy (current focus)
- Recent Activity (automation log)
- Agent Status (all 7 agents)
- Performance Metrics (scores and stats)
Dashboard API Calls
The dashboard automatically refreshes every 30 seconds using these endpoints:Advanced Operations
Querying the Database
Access the SQLite database directly for advanced queries.Manual Agent Invocation
Call individual agents programmatically for fine-grained control.Automation Control
Programmatically control the automation scheduler.Batch Operations
Generate Multiple Videos
Create content pipeline for multiple videos at once.Bulk Analytics Check
Retrieve analytics for specific video IDs.Error Handling
API Error Responses
All endpoints return consistent error format:Retry Logic
Implement exponential backoff for failed requests:Monitoring and Logging
Console Logs
The system provides detailed logging:Log Levels
- INFO: Normal operations
- SUCCESS: Completed tasks
- WARN: Non-critical issues
- ERROR: Failures requiring attention
Automation Events Log
Query the automation_events table for historical data:Integration Examples
Webhook Integration
Receive notifications when content is published:Slack Notifications
Post updates to Slack channel:Discord Integration
Best Practices
When to Use Manual Operations
✅ Good Use Cases:- Testing new content topics
- Creating time-sensitive content
- Recovering from automation failures
- Initial channel setup and configuration
- Bulk content generation for launch
- Regular daily content (use automation)
- Frequent publishing overrides
- Constant schedule changes
- Micromanaging content topics
Rate Limiting
Be mindful of API quotas:- OpenAI API: 3,500 requests/minute
- YouTube Data API: 10,000 units/day
- YouTube Analytics API: 50,000 requests/day
The automation system includes built-in rate limiting with 2-second delays between analytics requests.
Next Steps
Dashboard Guide
Master the web dashboard interface
API Reference
Complete API endpoint documentation
Agent Configuration
Customize individual agent behaviors
Troubleshooting
Solve common issues and errors