DEV Community

Cover image for I built an AI agent that audits a site's visibility in both Google AND ChatGPT/Perplexity — here's how it works
Dusan Walla
Dusan Walla

Posted on

I built an AI agent that audits a site's visibility in both Google AND ChatGPT/Perplexity — here's how it works

Google rankings aren't the whole game anymore. I started noticing my clients' potential customers asking ChatGPT and Perplexity "best web designer in Dublin" and getting answers — answers that didn't include my clients.

So I built a two-agent system that audits both: Wave 1 (traditional search) and Wave 2 (AI citation). It's open source.

The problem it solves
Classic SEO tools tell you where you rank in Google. They tell you nothing about whether ChatGPT mentions you when someone asks a relevant question.

Both matter. Ignoring either leaves visible search traffic on the table.

Two agents, two jobs
seo-strategist handles Wave 1:

Pulls live GSC data via Supermetrics
Cross-references Ahrefs for keyword difficulty + volume
Runs a mandatory cannibalization gate — if two pages compete for the same query, it stops and flags before doing any optimisation
Outputs: Keyword Targets · Technical Audit · Sitemap Recommendations
aeo-strategist handles Wave 2:

Runs 30+ prompts across ChatGPT, Claude, Gemini, Perplexity
Identifies "lost prompts" — queries where competitors get cited and you don't
Writes FAQ/HowTo schema specs for the pages most likely to recover citations
Outputs: Question Bank · AEO Questions · Content Calendar
Both agents share one Visibility Plan record and coordinate through a joint Sitemap Recommendations tab.

What the output looks like
After running on WebFluence Digital's own site in April 2026, the squad produced:

8 keyword targets with intent, KD, volume, and target page mapped
8 AEO questions sourced from PAA, AnswerThePublic, and Reddit
10 sitemap recommendations (the site needed to go from 1 page to 10 to compete)
8 technical audit issues (3 Critical, 4 High, 1 Medium)
12 content calendar entries in a 90-day cadence
A branded PDF deliverable
All written into Airtable. Permanent. Retainer-shaped.

It's open source
The plugin is on GitHub: visibility-strategist. Fork it, rebrand the PDF template, swap in your own niche knowledge. PRs welcome especially for non-Dublin, non-SME niche packs.

Full breakdown of how I use this in client retainers is in the [WebFluence resources section](https://webfluence.digital/#resources

Top comments (1)

Collapse
 
carllowman profile image
Carllowman

Great approach! The biggest challenge with AI search visibility is knowing why a brand appears—or gets completely missed—in Google, ChatGPT, and Perplexity.

That’s the problem SerpSpur AI is built to solve. It helps analyze SEO performance and AI-search visibility, giving actionable insights to improve how your website and brand can be discovered and cited across modern search.

SEO is no longer just about rankings—it’s also about being visible in AI answers. 🚀

Worth checking out for anyone working on GEO, AEO, SEO, or AI search optimization.