🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.
JavaScript ai-agentsautomationcontent-automationcontent-creationcontent-strategygoogle-geminijavascriptnodejsopenaiself-hostedseo-optimizationsocial-media-automationthumbnail-generatorvideo-generationyoutube-apiyoutube-automationyoutube-botyoutube-channelyoutube-shortsyoutube-uploader
feat: let autonomous planning apply approved audience-demand topics
darkzOGx7613499090d6
diff --git a/agents/content-strategy-agent.js b/agents/content-strategy-agent.jsindex e529606..10d7c75 100644--- a/agents/content-strategy-agent.js+++ b/agents/content-strategy-agent.js@@ -312,6 +312,7 @@ class ContentStrategyAgent {recentTopics: recentRows.map(row => row.topic),competitorChannelsAnalyzed: this.competitorData.length,approvedLearnings: approvedLearnings.map(item => ({+ category: item.category,title: item.title,rationale: item.rationale,confidence: item.confidence,@@ -349,7 +350,7 @@ Allowed source catalog: ${JSON.stringify(research.sourceCatalog)}Recent topics to avoid repeating: ${JSON.stringify(research.recentTopics)}Operator-approved performance learnings to apply: ${JSON.stringify(research.approvedLearnings)}-Do not invent trend data, statistics, sources, URLs, or factual claims. Use only exact URLs from the supplied source catalog. Apply only the supplied approved learnings; pending or rejected recommendations are not authorized. Prefer evergreen topics when the supplied signals are weak.`;+Do not invent trend data, statistics, sources, URLs, or factual claims. Use only exact URLs from the supplied source catalog. Apply only the supplied approved learnings; pending or rejected recommendations are not authorized. Prefer evergreen topics when the supplied signals are weak. Learnings with category "audience_demand" are audience-requested topics mined from real comments on published videos; prefer planning a video that directly answers one when it fits the channel objective, and cite it in the rationale.`;try {const response = await this.aiTextService.generateText(prompt, { maxTokens: 1800, temperature: 0.65 });