Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
import { describe, expect, it } from 'vitest';
import { opportunityLevel } from './prompt-volume-opportunity';
describe('opportunityLevel', () => {
it('leaves a prompt under 1,500 AI searches a month off the list', () => {
expect(opportunityLevel(0)).toBeNull();
expect(opportunityLevel(1499)).toBeNull();
});
it('calls 1,500 to 2,999 Medium and 3,000 or more High', () => {
expect(opportunityLevel(1500)).toBe('medium');
expect(opportunityLevel(2999)).toBe('medium');
expect(opportunityLevel(3000)).toBe('high');
expect(opportunityLevel(3645)).toBe('high');
});
it('gives a low-confidence estimate no level on its own', () => {
expect(opportunityLevel(5000, 'low')).toBeNull();
expect(opportunityLevel(5000, 'medium')).toBe('high');
expect(opportunityLevel(1500, 'high')).toBe('medium');
});
});