AI Overview Citation Monitor
Queries a keyword set through a SERP API that captures Google AI Overview (SGE) blocks, extracts the cited URLs and sni…
Updated
About this skill
AI Overview Citation Monitor is a AI Search (AEO and GEO) skill for AI agents, published in the seoskills.sh catalog. Reach for it when your work involves answer and generative engine optimization for AI Overviews, Perplexity, and ChatGPT. Install it with one command and it runs inside your own agent, so the work happens in your workflow, not a separate SEO tool.
SKILL.md
AI Overview Citation Monitor
AGENT ROLE: Autonomous AI-Overview surveillance agent. For each keyword, retrieve the SERP via a SERP API, detect the AI Overview block, extract its cited sources, and emit the JSON in references/output.schema.json.
OBJECTIVE
Report, per keyword: whether Google shows an AI Overview, which URLs it cites, whether the brand or competitors are among them, and the aggregate AI-Overview trigger rate and brand citation rate for the keyword set.
INPUTS
keywords(REQUIRED string[]).brand_domains(OPTIONAL string[]).competitor_domains(OPTIONAL string[]).location(OPTIONAL, default "United States"),hl(lang, default "en"),device(desktop|mobile, default mobile — AIO surfaces differ by device).serp_provider(OPTIONAL enum): defaultserpapi. Also supportsdataforseorequest shape viareferences-defined mapping.
AUTHENTICATION (SERP API)
- REQUIRE env
SERP_API_KEY.- IF unset THEN STOP
error.code="AUTH_MISSING_API_KEY": "Set SERP_API_KEY for your SERP provider (SerpApi, DataForSEO, etc.)."
- IF unset THEN STOP
- Provider endpoints:
serpapi:GET https://serpapi.com/search.json?engine=google&q={kw}&api_key={key}&...→ AI Overview underai_overview(sometimes returned as apage_tokenrequiring a secondengine=google_ai_overviewfetch).dataforseo:POSTthe SERP advanced task withpeople_also_ask/ai_overviewitem types (Basic auth).
- This is third-party SERP data; Google is NOT queried directly. Record
serp_providerin output.
EXPECTED TOOL CALLS
- Run
scripts/aio_monitor.py --keywords keywords.json [--brand a.com] [--competitors b.com,c.com]. - Per keyword: fetch SERP; IF
ai_overviewpresent as a token THEN issue the provider's follow-up call to expand it before parsing.
PROCEDURE (deterministic, per keyword)
STEP 1 — FETCH SERP for {keyword, location, hl, device}.
STEP 2 — DETECT AI Overview: has_aio = true IF the response contains a non-empty ai_overview block.
STEP 3 — EXTRACT citations: collect the block's references/sources URLs (dedupe, preserve order/rank).
STEP 4 — MATCH: brand_cited IF any brand_domains in the citation set; competitors_cited = matching competitor domains; capture each cited source's position within the AIO.
STEP 5 — ALSO capture the top organic position of the brand for the same keyword (for the "cited vs ranked" gap).
STEP 6 — AGGREGATE: aio_trigger_rate = has_aio_count / keyword_count; brand_aio_citation_rate = brand_cited_count / has_aio_count.
STEP 7 — EMIT, keywords with AIO first.
RATE LIMITS & ERROR HANDLING
- SERP APIs bill per search and rate-limit. On
429/quota THEN backoff2^attempt(max 5); after that STOPerror.code="RATE_LIMITED"withpartial= keywords processed. Do NOT silently drop keywords. - On provider
5xx/timeout retry ≤3 then mark that keywordstatus="serp_error". - Cap concurrency at 3 (SERP APIs meter aggressively).
MISSING / INSUFFICIENT DATA
- IF a keyword returns no AI Overview THEN
has_aio=false,citations:[]— a valid, common result (AIO does not trigger for every query), never an error. - IF the AIO block is present but citations are withheld by the provider tier THEN
has_aio=true,citations_available=false— do not fabricate sources.
OUTPUT
One JSON object per references/output.schema.json. No prose.
FILES
scripts/aio_monitor.py— SERP-API client with AIO detection + citation extraction.references/output.schema.json— output contract.
Not using the CLI? Copy the SKILL.md and paste it straight into ChatGPT, Claude, or any agent.
Embed a badge
Install into your agent
More in AI Search (AEO and GEO)
ai-seo
When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' 'optimize for Claude/Gemini,' 'llms.txt,' 'llms-full.txt,' 'OKF,' 'Open Knowledge Format,' 'knowledge bundle,' 'agent-readable site,' 'agent readiness,' 'is my site
seo-geo
SEO & GEO (Generative Engine Optimization) for websites. Analyze keywords, generate schema markup, optimize for AI search engines (ChatGPT, Perplexity, Gemini, Copilot, Claude) and traditional search (Google, Bing). Use when user wants to improve search visibility, search optimization, search ranking, AI visibility, ChatGPT ranking, Google AI Overview, indexing, JSON-LD, meta tags, or keyword research.
optimize-for-ai
Optimize content for AI search engines — ChatGPT, Perplexity, Claude, Gemini, Google AI Overviews. Use when the user asks about AI SEO, AISO, getting cited by AI, appearing in AI answers, answer engine optimization, AEO, GEO, LLMO, AI Overviews, zero-click search, or how to appear in ChatGPT/Perplexity results. For traditional SEO, see diagnose-seo.
seo-aeo-best-practices
SEO and AEO best practices for metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD structured data, EEAT, and content optimized for search engines and AI answer surfaces. Use this skill when implementing page SEO, technical SEO, schema markup, international SEO, AI-overview readiness, or improving content for Google, ChatGPT, Perplexity, and similar assistants.
seo-maps
Maps intelligence for local SEO: geo-grid rank tracking, GBP profile auditing via API, review intelligence across Google/Tripadvisor/Trustpilot, cross-platform NAP verification, competitor radius mapping, and LocalBusiness schema generation. Three tiers: free (Overpass + Geoapify), DataForSEO, and DataForSEO + Google. Use when user says "maps", "geo-grid", "rank tracking", "GBP audit", "review velocity", "competitor radius", or "SoLV".
seo-dataforseo
Live SEO data via DataForSEO MCP server: SERP analysis, keyword research (volume, difficulty, intent, trends), backlink profiles, on-page analysis, competitor and content analysis, business listings, AI visibility (LLM mention tracking), and domain analytics. Requires DataForSEO extension installed. Use when user says "dataforseo", "live SERP", "keyword volume", "backlink data", "AI visibility check", or "real search data".