Trendpanda

byRakshith Kumar

# AI Affiliate Factory – Master Prompt for 8080.ai ## Project Name **AffiliateFactory AI** --- # Mission Build a production-ready, AI-powered affiliate marketing platform that automates the entire content publishing pipeline for Pinterest and Digistore24 while keeping a human approval step before publishing. The goal is to allow one person to operate a publishing business capable of producing hundreds of high-quality affiliate articles and Pinterest Pins with minimal manual work. The platform must be modular, scalable, and cloud-ready. --- # Core Goal The system should automatically: - Discover profitable affiliate opportunities - Research keywords - Generate content ideas - Write SEO blog posts - Create Pinterest Pins - Generate social captions - Insert affiliate products - Publish to WordPress - Schedule Pinterest posts - Track performance - Learn from analytics - Continuously improve future content Everything should happen from one dashboard. --- # Tech Stack Frontend - React - Next.js - TailwindCSS Backend - Node.js - Express Database - PostgreSQL Authentication - Supabase Auth Storage - Supabase Storage Automation - n8n integration AI - OpenAI-compatible LLM abstraction - Prompt templates - Image generation provider abstraction Publishing - WordPress REST API Scheduling - Queue system - Cron jobs - Background workers Analytics - Google Analytics integration - Google Search Console integration Deployment - Docker - Vercel (frontend) - Railway or Render (backend) --- # Dashboard Create a beautiful modern dashboard. Navigation Dashboard Content Pinterest Keywords Affiliate Products Analytics Automation Email Settings Logs --- # Dashboard Home Display Articles Published Drafts Waiting Pins Scheduled Monthly Clicks Affiliate Revenue (manual input or imported) Top Performing Articles Top Performing Pins Keyword Opportunities Recent AI Jobs Automation Status Quick Actions --- # MODULE 1 ## Keyword Intelligence Engine Features Generate keywords using AI. Cluster keywords. Estimate search intent. Classify Informational Commercial Transactional Competition Difficulty Priority Expected affiliate value Store all keywords. Allow filtering. Mark approved. Reject duplicates. --- # MODULE 2 ## Content Planner Generate Topic clusters Publishing calendar Content roadmap Seasonal topics Weekly publishing goals Auto scheduling. --- # MODULE 3 ## AI Article Writer Input Keyword Target audience Tone Article length Output SEO Title Meta Description URL Slug Introduction Table of Contents H2 Sections H3 Sections FAQ Conclusion Affiliate CTA Pinterest Description Suggested Internal Links Suggested External Sources Reading Time Schema Markup Alt Text Every article should be genuinely useful and written for humans first, with SEO best practices applied naturally. Support multiple writing styles. --- # MODULE 4 ## Affiliate Product Engine Store products. Fields Product Name Network Commission Cookie Duration Category Landing Page Affiliate Link Description Pros Cons Ratings Price AI should recommend products based on article context. Affiliate disclosure should be inserted automatically where appropriate. Allow multiple products per article. --- # MODULE 5 ## Pinterest AI Studio Generate Pin Title Pin Description Board Recommendation Keywords Hashtags Image Prompt Overlay Text CTA Create multiple variants. Generate seasonal versions. Generate viral curiosity versions. Generate educational versions. Generate comparison versions. --- # MODULE 6 ## Image Generator Create Pinterest Pins Featured Images Blog Graphics Social Images Support Brand colors Logo Fonts Templates Store assets automatically. --- # MODULE 7 ## WordPress Publisher Connect website. Publish via REST API. Upload Images Categories Tags Featured Image SEO fields Slug Schedule posts. Save drafts. Support manual approval before publishing. --- # MODULE 8 ## Pinterest Publisher Connect Pinterest account. Publish Pins. Schedule Pins. Choose board. Track publishing status. Retry failed jobs. --- # MODULE 9 ## Social Repurposing Engine Convert every article into Twitter/X posts Threads posts LinkedIn posts Facebook posts Instagram captions Short-form video scripts Email newsletters Everything generated from one article. --- # MODULE 10 ## Email Marketing Create Lead magnets Welcome sequences Broadcast emails Weekly newsletters Affiliate campaigns Segment subscribers. Track opens and clicks. --- # MODULE 11 ## Automation Center Visual automation builder. Enable or disable workflows. Schedule jobs. Retry failures. View execution history. Pause automation. Resume automation. --- # MODULE 12 ## Analytics Display Traffic CTR Top articles Top Pins Affiliate clicks Conversion rate Revenue Search Console metrics Top keywords Average rankings Growth graphs --- # MODULE 13 ## AI Optimization Agent Continuously analyze Traffic Click-through rates Bounce rates Affiliate conversions Suggest Better headlines Improved CTAs Content refreshes Internal linking opportunities Pin redesigns Automatically create optimization tasks for approval. --- # MODULE 14 ## Brand Manager Store Logo Brand colors Fonts Writing tone Audience persona Preferred CTA style Ensure every generated asset follows the selected brand identity. --- # MODULE 15 ## Prompt Library Store reusable prompts. Version prompts. Test prompt variations. Assign prompts to different workflows. --- # MODULE 16 ## Approval Workflow No content should be published automatically by default. Pipeline: AI Generates ↓ Draft Review ↓ Edit if needed ↓ Approve ↓ Publish ↓ Schedule Pinterest ↓ Track Performance Provide one-click approve, reject, or regenerate actions. --- # MODULE 17 ## Project Management Track Ideas Drafts Published Archived Assign status. Notes. Deadlines. --- # MODULE 18 ## Notifications Email Push notifications Dashboard alerts Notify when Article ready Pin ready Publishing failed Analytics spike Affiliate link missing Optimization suggested --- # MODULE 19 ## Settings WordPress Pinterest OpenAI-compatible API Supabase Email provider Analytics Timezone Language Automation preferences Brand defaults --- # Security Use secure authentication. Encrypt API keys. Role-based permissions. Audit logs. Rate limiting. Input validation. --- # UI Minimal. Fast. Modern. Responsive. Dark mode. Light mode. Beautiful charts. Drag-and-drop workflow builder. Loading states. Skeleton screens. Toast notifications. Keyboard shortcuts. --- # Performance Lazy loading. Caching. Background queues. Optimized database queries. Responsive on desktop and mobile. --- # Future Expansion Design the architecture so future modules can be added without major refactoring. Potential future modules include: - Amazon Associates - ClickBank - Impact - CJ Affiliate - ShareASale - Rakuten Advertising - YouTube automation - TikTok automation - Instagram automation - AI video generation - AI voiceovers - Multi-language publishing - Multi-site management - Team collaboration - Revenue forecasting - A/B testing - Content versioning - AI chatbot assistant - Competitor monitoring - Trend detection --- # Final Objective Build this application as a scalable SaaS platform, not just a personal automation tool. The codebase should follow clean architecture, be fully modular, and make it easy to add new affiliate networks, publishing channels, AI providers, and analytics sources. Prioritize maintainability, extensibility, and a polished user experience while ensuring that all AI-generated content is reviewed by a human before publication.

LandingLoginDashboard
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 6

Trendpanda System Requirements Document

Introduction

Trendpanda is an AI-powered affiliate marketing platform designed to automate the entire content publishing pipeline for Pinterest and Digistore24. The platform aims to enable a single user to efficiently manage a publishing business, producing high-quality affiliate articles and Pinterest Pins with minimal manual intervention. The system is designed to be modular, scalable, and cloud-ready, with a human approval step before publishing AI-generated content.

System Overview

Trendpanda automates the discovery of profitable affiliate opportunities, keyword research, content idea generation, SEO blog post writing, Pinterest Pin creation, social caption generation, affiliate product insertion, WordPress publishing, Pinterest post scheduling, performance tracking, and continuous content improvement. All functionalities are accessible from a single dashboard.

Page 2 of 6

Functional Requirements as Story Points

  • As a User, I should be able to discover profitable affiliate opportunities automatically.
  • As a User, I should be able to research keywords using AI.
  • As a User, I should be able to generate content ideas automatically.
  • As a User, I should be able to write SEO blog posts with AI assistance.
  • As a User, I should be able to create Pinterest Pins automatically.
  • As a User, I should be able to generate social captions for posts.
  • As a User, I should be able to insert affiliate products into content.
  • As a User, I should be able to publish content to WordPress via REST API.
  • As a User, I should be able to schedule Pinterest posts.
  • As a User, I should be able to track performance metrics.
  • As a User, I should be able to learn from analytics to improve future content.
  • As a User, I should be able to manage all tasks from a single dashboard.
  • As an Admin, I should be able to approve AI-generated content before publishing.
  • As a User, I should be able to generate keywords and cluster them.
  • As a User, I should be able to classify keywords by intent and difficulty.
  • As a User, I should be able to generate topic clusters and a publishing calendar.
  • As a User, I should be able to generate SEO titles, meta descriptions, and more for articles.
  • As a User, I should be able to store and manage affiliate products.
  • As a User, I should be able to generate multiple variants of Pinterest Pins.
  • As a User, I should be able to create and store images for various platforms.
  • As a User, I should be able to connect and publish to Pinterest.
  • As a User, I should be able to convert articles into social media posts.
  • As a User, I should be able to create and manage email marketing campaigns.
  • As a User, I should be able to build and manage automation workflows.
  • As a User, I should be able to view detailed analytics and performance metrics.
  • As a User, I should be able to receive notifications for various events.
  • As a User, I should be able to manage settings for WordPress, Pinterest, and other integrations.
  • As a User, I should be able to ensure secure authentication and data handling.
Page 3 of 6

User Personas

  • Admin: Responsible for overseeing the platform's operations, approving content, and managing settings.
  • Content Creator: Uses the platform to generate and publish content, manage affiliate products, and track performance.
  • Marketer: Focuses on optimizing content for SEO, managing social media posts, and running email campaigns.

Core User Flows

  • Admin reviews AI-generated content -> Approves or edits content -> Publishes content -> Schedules Pinterest posts -> Tracks performance.
  • Content Creator generates keywords -> Creates content ideas -> Writes articles -> Inserts affiliate products -> Publishes to WordPress.
  • Marketer analyzes performance metrics -> Optimizes content -> Manages social media and email campaigns -> Tracks conversions and revenue.

Visuals Colors and Theme

  • primary: #1E90FF (Dodger Blue)
  • primary_light: #63B8FF (Light Dodger Blue)
  • secondary: #FFD700 (Gold)
  • accent: #FF4500 (Orange Red)
  • highlight: #32CD32 (Lime Green)
  • bg: #FFFFFF (White)
  • surface: #F8F8FF (Ghost White)
  • text: #000000 (Black)
  • text_muted: #696969 (Dim Gray)
  • border: #D3D3D3 (Light Gray)

Signature Design Concept

Page 4 of 6

Interactive Content Galaxy

The homepage will feature an interactive galaxy map where each star represents a feature or section of the platform. Users can click on a star to open a detailed view of that feature, drag to rotate the galaxy, and hover to highlight connections between related features. This concept will use @react-three/fiber and @react-three/drei for 3D interactions, creating an engaging and memorable first impression.

Landing Hero Motion Brief

The hero section will depict a dynamic transformation of content inputs (keywords, images, text) into a polished article and Pinterest Pin. Using motion/react, the animation will show inputs gathering around a central article, transforming into a complete post with visual effects, and then dispersing into various publishing channels. The loop will last 10 seconds, with interactive elements for users to explore different content types.

Interaction Model & Motion Direction

  • Interaction Model: Parallax
  • The landing page will feature layered depth via scroll, with decorative layers translating at different speeds to create a visually rich storytelling experience. Real content will remain in normal flow, ensuring a natural scrolling experience.
Page 5 of 6

Non-Functional Requirements

  • The platform must be responsive and perform well on both desktop and mobile devices.
  • Ensure secure authentication and data encryption.
  • Implement role-based permissions and audit logs.
  • Optimize database queries and use caching for performance.
  • Support lazy loading and background queues.

Tech Stack

  • Frontend: React, Next.js, TailwindCSS
  • Backend: Node.js, Express
  • Database: PostgreSQL
  • Authentication: Supabase Auth
  • Storage: Supabase Storage
  • Automation: n8n integration
  • AI: OpenAI-compatible LLM abstraction
  • Publishing: WordPress REST API
  • Scheduling: Queue system, Cron jobs, Background workers
  • Analytics: Google Analytics integration, Google Search Console integration
  • Deployment: Docker, Vercel (frontend), Railway or Render (backend)
Page 6 of 6

Assumptions and Constraints

  • The platform will initially support English language content.
  • Users will require a WordPress and Pinterest account for publishing.
  • The system will rely on third-party APIs for analytics and publishing.
  • Future modules should be easily integrable without major refactoring.

Glossary

  • AI: Artificial Intelligence
  • LLM: Large Language Model
  • SEO: Search Engine Optimization
  • CTA: Call to Action
  • REST API: Representational State Transfer Application Programming Interface
  • SaaS: Software as a Service

This document outlines the comprehensive requirements for the Trendpanda project, ensuring a robust and scalable platform for affiliate marketing automation.

Landing design preview
Landing: View Info
Login: Sign In
Dashboard: View Stats
Content: Review Drafts
Content: Approve Content
Content: Edit Content
Pinterest: Schedule Posts
Analytics: Track Performance
Settings: Manage Integrations
Logs: View Audit Logs
Automation: View Execution History
Landing design preview
Landing: View Info
Login: Sign In
Dashboard: View Stats
Content: Review Drafts
Content: Approve Content
Content: Edit Content
Pinterest: Schedule Posts
Analytics: Track Performance
Settings: Manage Integrations
Logs: View Audit Logs
Automation: View Execution History