Skip to content

Bharath-code/ad_agency

Repository files navigation

PromptLens

PromptLens is an AI recommendation diagnostics platform that shows B2B teams why AI assistants like ChatGPT, Claude, and Perplexity recommend competitors instead of them, then gives the exact content and positioning fixes to win those buyer prompts.

Features

  • Visibility Score: Track your aggregate brand presence across dozens of high-value buyer intent queries.
  • Head-to-Head Competitor Analysis: See exactly why an AI is recommending a competitor instead of you.
  • Actionable Fixes: Get concrete AI-generated recommendations for positioning, content, and messaging tweaks to win back recommendations.
  • Scan Transcripts & CSV Export: Drill down into raw LLM responses and export the data for deeper analysis.
  • Historical Trends: Track your visibility score progress over time.
  • Automated Scanning: Background cron jobs power recurring AI product sentiment analysis.

Tech Stack

  • Framework: SvelteKit
  • Backend & Database: Convex (Real-time edge database and serverless functions)
  • Authentication: Convex Auth with GitHub OAuth
  • LLM Integration: OpenAI & Anthropic (via custom routing layer in Convex actions)
  • Payments: Dodo Payments
  • Styling: TailwindCSS + Custom UI components powered by Lucide Svelte

Getting Started

Prerequisites

Installation

  1. Install dependencies:

    pnpm install
  2. Initialize Convex (this will spin up your backend and start syncing your schemas/functions):

    npx convex dev
  3. Start the SvelteKit development server in a new terminal:

    pnpm run dev

Environment Variables

Copy your .env.local.example to .env.local and populate the required keys to ensure everything runs correctly:

# Convex
CONVEX_DEPLOYMENT=...
NEXT_PUBLIC_CONVEX_URL=...

# Auth (GitHub)
AUTH_GITHUB_ID=...
AUTH_GITHUB_SECRET=...

# AI Models
OPENAI_API_KEY=...
ANTHROPIC_API_KEY=...

# Dodo Payments
DODO_PAYMENTS_API_KEY=...
DODO_WEBHOOK_SECRET=...

Running Tests

We use Vitest to run our core utility and LLM testing functions.

pnpm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors