Skip to main content

Purpose

Checks if a business is mentioned in AI platform responses for a given prompt. This is the core visibility tracking functionality.

Architecture

8 AI Platforms

PlatformAPIChecker Location
ChatGPTOpenAIchatgpt/mini_orchestrator.py
ClaudeAnthropicclaude/mini_orchestrator.py
GeminiGoogle AI Studiogemini/mini_orchestrator.py
PerplexityPerplexity APIperplexity/mini_orchestrator.py
CopilotBing Chatcopilot/mini_orchestrator.py
DeepSeekDeepSeek APIdeepseek/mini_orchestrator.py
GrokxAI APIgrok/mini_orchestrator.py
Google AIAI Overviewsgoogle_ai/mini_orchestrator.py

Internal Services

ServicePurpose
analyze_single_promptMain orchestrator for single prompt
check_single_prompt_visibilityRuns all 8 checkers in parallel
Platform CheckersIndividual AI platform integrations
ScoringCalculates visibility scores
Database OperationsUpdates entity_prompts_tracker

Code Location

src/app/apis/cron/analyze_visibility/
├── routes.py              # HTTP endpoint
├── mini_orchestrator.py   # Main orchestrator
├── platform_checkers.py   # Parallel execution
├── database_operations.py # DB updates
├── scoring.py             # Score calculation
├── chatgpt/               # ChatGPT checker
├── claude/                # Claude checker
├── gemini/                # Gemini checker
├── perplexity/            # Perplexity checker
├── copilot/               # Copilot checker
├── deepseek/              # DeepSeek checker
├── grok/                  # Grok checker
└── google_ai/             # Google AI checker

Response Format

{
  "status": "success",
  "prompt": "best payment gateway for startups",
  "chatgpt": true,
  "claude": false,
  "gemini": true,
  "perplexity": true,
  "copilot": false,
  "deepseek": false,
  "grok": true,
  "google_ai": false
}