Analyze and optimize brand visibility in LLM responses. Better Rank helps you understand how often your brand (BetterHelp) appears compared to competitors when users ask AI assistants for recommendations, and provides actionable optimization suggestions.
- Prompt Execution – Runs a user-defined prompt multiple times (1–20x) through Gemini Flash 2.5 and records each response.
- Brand Mention Analysis – Counts how often BetterHelp and a chosen competitor (e.g., Talkspace, Cerebral) are mentioned across all responses.
- Website Analysis – Uses Tavily to analyze BetterHelp and competitor sites for strengths, weaknesses, keywords, and content structure.
- Optimization Recommendations – Uses Gemini to generate recommendations across:
- Content
- Site structure
- Keywords
- SEO
- LLM visibility
- Competitive positioning
- Action plans
- Next.js – App framework
- Gemini Flash 2.5 – LLM for prompt execution and optimization
- Braintrust – Monitoring and tracing of LLM calls
- Tavily – Web search and website analysis
GEMINI_API_KEY– Google AI API key for GeminiTAVILY_API_KEY– Tavily API key for website analysis- Braintrust keys (if using Braintrust monitoring)
- Install dependencies:
pnpm install-
Set the required environment variables in
.env.local. -
Run the development server:
pnpm dev- Open http://localhost:3000 in your browser.
- Enter a prompt (e.g., “What are the best online therapy platforms?”).
- Set execution frequency (1–20 runs).
- Enter a competitor name to compare against BetterHelp.
- Click Start Analysis.
- Review brand mention stats, website analysis, and optimization recommendations.
This repository is linked to a v0 project. You can continue developing by visiting the link below.