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
| Platform | API | Checker Location |
|---|---|---|
| ChatGPT | OpenAI | chatgpt/mini_orchestrator.py |
| Claude | Anthropic | claude/mini_orchestrator.py |
| Gemini | Google AI Studio | gemini/mini_orchestrator.py |
| Perplexity | Perplexity API | perplexity/mini_orchestrator.py |
| Copilot | Bing Chat | copilot/mini_orchestrator.py |
| DeepSeek | DeepSeek API | deepseek/mini_orchestrator.py |
| Grok | xAI API | grok/mini_orchestrator.py |
| Google AI | AI Overviews | google_ai/mini_orchestrator.py |
Internal Services
| Service | Purpose |
|---|---|
| analyze_single_prompt | Main orchestrator for single prompt |
| check_single_prompt_visibility | Runs all 8 checkers in parallel |
| Platform Checkers | Individual AI platform integrations |
| Scoring | Calculates visibility scores |
| Database Operations | Updates 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
}