AI-powered multi-agent platform for affiliate marketing and YouTube automation built with Mastra framework
git clone https://github.com/ShunsukeHayashi/mastra-youtube-affiliate.gitMastra-YouTube-Affiliate is an AI-powered multi-agent platform designed to streamline affiliate marketing and YouTube automation workflows. Built on the Mastra framework, it leverages AI agents to coordinate tasks across marketing and content platforms. The skill enables users to automate affiliate marketing processes while managing YouTube channel operations through intelligent agent coordination.
1. **Input Customization**: Replace [PRODUCT_NAME], [AFFILIATE_LINK], [TARGET_AUDIENCE], and [NICHE_KEYWORDS] in the prompt template with your specific details. For example, if promoting a fitness app, use '[FitnessApp Pro]', '[https://fitnessapp.com/affiliate]', '[beginners and athletes]', '[home workouts, muscle building]'. 2. **Agent Coordination**: Use the Mastra framework to deploy 5 specialized agents: Script Writer, SEO Specialist, Thumbnail Designer, Content Planner, and Promotions Manager. Assign each agent to execute one of the 5 tasks in the prompt. 3. **Data Integration**: Feed the agents your YouTube Analytics dashboard (via API) to optimize scripts for your channel’s historical performance. For example, if your audience engages most with 'how-to' videos, prioritize that format in the script ideas. 4. **A/B Testing**: Generate 2-3 variations of each output (e.g., two thumbnail designs or three different hooks) and use YouTube’s A/B testing tools to compare CTR and retention. Iterate based on the winning version. 5. **Automation**: Set up Mastra workflows to auto-publish videos and thumbnails at scheduled times. Use tools like TubeBuddy or VidIQ to automate SEO tag suggestions and schedule social media posts. **Pro Tips:** - For higher conversions, include a 'limited-time offer' in your affiliate links (e.g., '20% off for the first 100 buyers'). - Use Canva’s AI tools to generate thumbnails quickly, then refine with the agent’s color scheme recommendations. - Track affiliate clicks via Bitly or Pretty Links to measure performance per video.
Automate affiliate product promotion across YouTube channels
Coordinate multi-agent workflows for affiliate link management
Streamline YouTube content scheduling and affiliate integration
Manage affiliate campaigns using AI-powered automation
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/ShunsukeHayashi/mastra-youtube-affiliateCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a multi-agent YouTube affiliate marketing system. Use [PRODUCT_NAME], [AFFILIATE_LINK], [TARGET_AUDIENCE], and [NICHE_KEYWORDS] to: 1) Generate 5 high-converting video script ideas with hooks, 2) Create a 30-day content calendar with upload schedule, 3) Draft SEO-optimized titles and descriptions for each video, 4) Design a thumbnail strategy with color schemes and text overlays, 5) Generate a 7-day promotion plan across social platforms. Prioritize engagement metrics like CTR and conversion rates. Use Mastra framework for agent coordination.
### YouTube Affiliate Marketing Campaign: 'EcoGlow LED Lighting' **Video Script Ideas (Top 3):** 1. *'5 Hidden Ways EcoGlow LED Strips Save You $200/Year' (Hook: 'Most people waste $500 on bad lighting—here’s how to fix it')* - Script: 1200 words, includes 3 affiliate links (bulk purchase discount, smart plug bundle, extended warranty). - Estimated CTR: 8.2% (based on niche benchmarks). 2. *'EcoGlow vs Philips Hue: Which is REALLY Worth It?' (Hook: 'I tested both for 30 days—here’s the brutal truth')* - Script: 1500 words, compares specs with affiliate links to both products. Includes a 'buy one, get one free' promo code. - Estimated conversion rate: 4.1% (higher due to comparison format). 3. *'I Tried EcoGlow in My Entire House—Here’s What Happened' (Hook: 'After 60 days, my electricity bill dropped by 30%')* - Script: 1800 words, includes before/after energy cost breakdown. Affiliate links to full starter kits. - Estimated watch time: 11+ minutes (boosts algorithm favor). **30-Day Content Calendar:** - Week 1: '5 Hidden Ways...' (upload Tuesday 9 AM EST) - Week 2: 'EcoGlow vs Philips Hue...' (upload Thursday 7 PM EST) - Week 3: 'I Tried EcoGlow...' (upload Monday 12 PM EST) - Week 4: 'EcoGlow Q&A: Answering Your Biggest Questions' (upload Friday 6 PM EST) **SEO Optimization:** - Titles: 'EcoGlow LED Strips Review 2024: Worth the Hype?' (target keyword: 'EcoGlow review') - Descriptions: Include 2-3 affiliate links, timestamps, and a CTA to 'Grab your discount before it expires!' **Thumbnail Strategy:** - Color scheme: Blue (trust) + neon green (energy savings). - Text overlay: 'SAVE $200!' in bold white font. - Template: Split-screen (before/after lighting) with EcoGlow logo overlay. **7-Day Promotion Plan:** - Day 1-2: Share on Reddit (r/ledlighting, r/smarthome), Pinterest (create a 'Smart Lighting Hacks' board). - Day 3-4: Post in Facebook Groups (e.g., 'Home Automation Enthusiasts'). - Day 5-7: Run a $5/day YouTube ad targeting 'smart home' interests. Track conversions via UTM parameters. **Expected Results:** - First video: 15K views, 300+ affiliate clicks (2% conversion). - Second video: 22K views, 450+ clicks (2.05% conversion). - Third video: 30K views, 600+ clicks (2% conversion). - Total affiliate revenue: ~$1,200 (assuming $20 avg commission).
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan