The Scenario: My Uncle, Seattle Rain, and a Search Result That Made No Sense
A few weeks ago, my uncle, who lives in the Seattle area, called me. Heâs tired of fighting the relentless moss that thrives on his roof due to the constant PNW rain. He mentioned a high-ranking metal roofing contractorâone of the key accounts at the digital marketing agency I contract forâand he asked, âWhy canât I find them in the quick summaries Google gives me?â
He was referring to AI Overviews (AIOs).
As the SEO Specialist on the account, I knew this contractor consistently ranked #1 for high-value local queries like âstanding seam metal roof installers Seattleâ and âbest metal roofing for rainy climate Seattle.â Their transactional pages were dominating the SERPs. Yet, the AI Overviewsâthe very feature designed to answer informational questionsâwere consistently citing competitors.
This launched me into a deep dive to understand exactly how Googleâs Gemini model was processing these high-intent searches.
đ The Breakthrough: A Peek Under the Hood of AI Search Logic
The core problem wasnât a lack of ranking; it was a lack of informational coverage that the AI could easily digest and cite.
The key to solving this lies in a lesser-known feature of the Gemini API: the grounding metadata. This metadata reveals the exact âfan-out queriesâ the model generated internally to find its information. Essentially, it shows the AIâs internal research logic.
Using a simple Python script in Google Colab (and a little help from the Gemini API), I started feeding the model the initial search questions relevant to the agencyâs client account.
Your company or client might dominate local SERPs. But are they appearing for informational queries in Googleâs AI Overviews.
The Insight: The AI was not just searching the initial prompt; it was fanning out to a cluster of six highly specific, long-tail informational needs (e.g., durability, material comparisons, and specific material problems like moss).
đĄ The Missing Link: Why the Client Was Invisible to the AI
The clientâs existing content was focused on conversion (service pages, CTAs) and was successfully ranking. But it lacked dedicated, extractable, high-authority content that answered the AIâs complex research questions.
Of the six âfan-outâ queries the AI was using, the agencyâs content only partially addressed three. Three massive informational content gaps were discovered:
- âdurable metal roofing Seattleâ (Needs a localized, comparative guide).
- âmetal roofing moss mildew resistanceâ (Needs a definitive piece on material science).
- âmetal roofing types for heavy rainâ (Needs a feature-focused technical breakdown).
â The Result: Content that Lifts Both Local SEO and LLM Visibility
This technical discovery led to a clear, actionable content strategy that I presented to the agencyâs content team. We didnât need to reinvent our SEO. We just needed to be cited for the why and the how.
The agency developed three new, hyper-focused blog postsâone for each missing fan-out queryâwith structures designed for AI extraction (tables, bulleted lists, immediate answers).
We then internally linked these new, authoritative informational pieces to the clientâs existing, high-ranking transactional service pages.
The outcome was nearly immediate: Within two weeks, the client started being cited in AI Overviews for those high-value informational queries.
By serving the AIâs need for objective, authoritative information, we created a new discovery pathway that directly supports the businessâs local rankings and conversionsâa huge win for the agency and the client.
Actionable Takeaway for My Network
You donât need to be a Python expert to replicate this process. The fastest path to insight is leveraging Gemini itself.
If youâre struggling to capture AI Overviews for your top keywords:
- Start with the AI: Feed your high-value queries into a tool that uses the Gemini model (or directly access the API).
- Ask the AI to Help You Code: If you want to dive into the API/Python, ask Gemini to generate the initial script and explain the groundingMetadata to you. Itâs the ultimate coding tutor.
- Audit the Fan-Outs: Find the 3-5 sub-topics the AI is researching, and ensure you have a dedicated, expertly written content piece for each one.
A Note on the Technology: This fan-out query extraction technique relies on accessing the grounding data exposed by the Gemini API (specifically, models like Gemini 2.5 Flash). This method remains highly valuable for SEOs who may not have direct API access but wish to understand the AIâs search logic. As Google continues to iterate on its models (e.g., with future Gemini updates), the specific queries generated or the method of extraction may evolve. Always treat this data as a directional insight into the current AI search environment.
Acknowledging Community Insight:Thanks to Chris Long for highlighting this important technical caveat and for sharing that his team Nectiv will be testing the Gemini 3 iteration for further changes.
The future of SEO isnât just about ranking on the main page; itâs about being the definitive, cited source in the AIâs final answer. Go find your agency or clientâs AI blind spots!