Prompt Structure

Replit AI Prompt: Build a Weekly Trend Tracker App (No Code)

Build a Next.js app on Replit called "Weekly Trend Radar" that runs every Sunday at 18:00 [YOUR TIMEZONE] and produces a ranked trend brief by Monday morning.

01 DATA SOURCES (fetch in parallel)

  • Reddit JSON API — top posts past 7 days from: [ADD YOUR SUBREDDITS — e.g. r/artificial, r/ecommerce, r/Entrepreneur]
  • Product Hunt GraphQL — top 20 products of the past week
  • GitHub Trending — weekly trending repos (language: all, then Python, JS)
  • Hacker News Algolia API — front_page stories past 7 days with 100+ points
  • (Optional) Apify actor for TikTok Shop top products — leave config stub

02 SCORING

  • Compute a 7-day growth score per item (upvotes/stars/points velocity)
  • Use Anthropic Claude API (claude-sonnet-4-5) to classify each item into niches: [ADD YOUR NICHES — e.g. "AI Tools", "E-commerce", "Viral Products", "Dev Tools", "Other"]
  • Dedupe similar topics across sources using embedding similarity OR simple title overlap

03 OUTPUT UI

  • Dashboard with tabs per niche
  • Each card shows: title, source, growth score, 2-sentence summary, link to original
  • Three buttons per card: "Save Topic", "Generate Script", "Export to Notion"
  • "Generate Script" calls Claude with a hook/intro/climax/ending video structure template (short punchy, no em-dashes, no clickbait words) — [OPTIONAL: add your tone/style instructions here]
  • "Export to Notion" pushes to Notion database ID: [YOUR_NOTION_DB_ID] via Notion API

04 SCHEDULING

  • Use Replit Scheduled Deployments OR a cron workflow to run the scraper every Sunday 18:00 [YOUR TIMEZONE]
  • Store results in Replit DB or a simple SQLite file, keyed by ISO week

05 SECRETS

  • Use Replit Secrets, never hardcode: ANTHROPIC_API_KEY, REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, PRODUCT_HUNT_TOKEN, NOTION_TOKEN, NOTION_DATABASE_ID, [ADD ANY OTHER KEYS YOU NEED]

Build it end-to-end, working, no placeholder data. Test each source returns real results before wiring the UI.