How Our AI SEO Agent Cleared 1,186 Schema Errors in One Day

AI SEO agent case study

A specialty coffee equipment retailer on Shopify had more than a thousand structured data errors, a dozen 404s and 155 links to broken pages. Our AI SEO agent traced them to four root causes, and our team shipped the fixes the same day.

The short answerAhrefs flagged the symptoms. The agent read the Ahrefs exports in seconds, found the four causes behind them and wrote the fix plan. Our team approved each change and applied it in the Shopify admin. By the evening re-crawl, structured data errors went from 1,186 to 0, 404 pages from 12 to 0, links to broken pages from 155 to 0, and the Ahrefs health score from 90 to 91. It had been in the 70s in July.

Bar chart of Ahrefs Site Audit issues before and after the fixes: structured data errors 1,186 to 0, links to broken pages 155 to 0, 404 pages 12 to 0, broken redirects 1 to 0, slow pages 10 to 5.

Ahrefs issue Before (2:40 PM) After (8:10 PM)
Structured data has schema.org validation errors 1,186 0
Links to broken pages 155 0
404 pages 12 0
Broken redirects 1 0
Slow pages 10 5
Ahrefs health score 90 (70s in July) 91

Source: Ahrefs Site Audit, two crawls of the same store on the same day. Image compression, meta lengths and heading fixes are the next pass, so those rows haven’t moved yet.

Inputs

The agent is only as good as the data it can see

An AI agent can’t fix what it can’t measure. Ours works from a lot of sources at once, and it chooses the fastest one for each job.

Crawl data

Ahrefs

Site Audit exports list every error, page and link. The agent turned nine exports into a fix plan in about five seconds.

Its own crawl

Manual checks and crawls

When exports are stale, the agent crawls the store politely itself (332 URLs in about 25 minutes) and checks every fix on the live site.

Search and revenue

Search Console, GA4 and Merchant Center

Which pages earn impressions, traffic and sales decides what gets fixed first. Product feed health comes from Google Merchant Center.

AI visibility

Searchable, GeoToolbox and QueryBurst

Where the brand shows up, or doesn’t, in AI answers, and which prompts and sources matter.

Trends

SEOGets

Search Console and GA4 trends over time, so we can see whether a fix moved anything.

Speed

PageSpeed Insights

Core Web Vitals for each page template, combined with Ahrefs page weights to rank the speed fixes.

Diagnosis

Four root causes behind 1,300+ errors

Fixing errors one URL at a time would have taken weeks. The agent grouped them by cause instead:

  1. A theme schema that guessedThe theme’s Product markup copied any barcode into a GTIN field, including internal SKUs that aren’t GTINs at all. It also sent an empty category, a plain-text brand and a property schema.org doesn’t recognize. That one template produced most of the 1,186 errors.
  2. Review badges with orphan ratingsThe reviews app printed rating markup on every product card in collection grids. Those ratings weren’t attached to a product, so every grid page failed validation.
  3. Links to renamed productsProduct descriptions still linked to old product URLs. Because descriptions also render on collection and search pages, one mistyped link alone had 64 inlinks.
  4. Leftovers from an uninstalled appAn SEO app removed years ago left six HTML sitemap pages and a footer link behind, holding 71 dead or redirected links.

Ahrefs Site Audit row before the fixes: Structured data has schema.org validation error, 1,186.

The structured data row in Ahrefs before the fixes.

The schema fix

Rebuilding the product schema without faking anything

Schema was the biggest problem, and the easiest one to get wrong. Here is how we fixed it:

  1. Back up firstWe duplicated the live theme before touching a file, so the whole change can be undone in one click.
  2. Only real barcodes become GTINsThe Product markup now outputs a GTIN only when the barcode is all digits and a valid GTIN length. Anything else becomes an mpn. We never invent a GTIN, because a fake one can get products pulled from Google Shopping.
  3. Fix the fields Google readsBrand is now a proper Brand object, empty categories are left out, the unrecognized property is gone, and Product markup only prints on product pages.
  4. Ratings that match what shoppers seeThe star rating in the markup now comes from the same review data the widget shows. We turned off the reviews app’s own rating markup and filtered it out of the product card badges.
  5. Add the missing contextCollection pages now describe themselves as a collection with an item list, and product, collection and article pages carry breadcrumbs.
  6. Verify on the live storeEvery template was checked on the live site. Product and article pages show zero schema issues, and the ratings in the markup match the widget.

Liquid code from the Shopify theme: a barcode becomes a GTIN only if it is all digits and a valid length, otherwise the SKU is output as an mpn, and brand is a Brand object.

Links and redirects

  1. 25 redirectsOld product and page URLs now redirect to their closest live match, matched word by word so a filter never redirects to the wrong part. That includes one redirect pointing at a deleted collection.
  2. 34 links rewritten at the sourceLinks inside 20 product descriptions, 2 pages and 6 blog articles now point straight at the live URL. A final catalog scan found none of the old links left.
  3. App leftovers retiredThe six orphaned sitemap pages are hidden and redirected, and their footer link is gone.
Agent plus team

Who did what

The agent did most of the finding and planning. It read the exports, grouped the errors by cause, ranked the fixes and drafted each change. Our team gave it the detailed instructions for this store, approved every change, and applied the theme and admin edits by hand while checking each one live.

The guardrails stay the same on every client:

Undo

Every change is reversible

Theme backups, logged redirects and a snapshot before each write.

Approval

A person signs off

Content and bigger changes wait for approval. Prices, specs and certifications are never touched.

Honesty

No invented data

GTINs come only from real barcodes, and ratings only from real reviews.

Ahrefs Site Audit health score gauge showing 91, rated Excellent, after the fixes.

The evening re-crawl: health score 91.

What’s next

The next pass

Day one went to errors that affect how Google and AI assistants read the store. Next up are 166 oversized product images, meta descriptions and titles that run long, and a few pages with more than one H1. Those changes affect copy and media, so they go through approval first.

For more on how the agent works, see our AI SEO agent. For the same work on our own site, read how the agent took our Ahrefs health score from 74 to 96.

FAQs

Straight answers

Can an AI SEO agent fix Shopify site audit errors?

Yes, for most of them. Our agent reads Ahrefs exports or crawls the store, groups errors by root cause and drafts the fixes. A person approves each change, and theme or content edits are checked on the live store before we call them done.

Why did the store have so many structured data errors?

Most came from one theme template that copied any barcode into a GTIN field and sent fields schema.org doesn’t accept. The rest came from a reviews app printing ratings on product cards without a product attached.

Do you add GTINs when a product doesn’t have one?

No. A GTIN is only output when the product has a real barcode with valid digits. Otherwise the schema uses the part number as an mpn. Made-up GTINs can get products pulled from Google Shopping.

How long did the fixes take?

One day. The plan came from Ahrefs exports in seconds, the fixes went in during the afternoon, and an evening re-crawl confirmed the results.

Does the health score capture all of the work?

No. Ahrefs health score is the share of pages without errors, so it moved from 90 to 91. The bigger change is in the error counts: 1,186 structured data errors and 155 links to broken pages went to zero.

Your store next

Find what’s behind your site audit

Send us your Ahrefs or Semrush export. We’ll show you the root causes and what to fix first.

Suggested

What five missed RFQs a month cost in lifetime revenue: $375K+ injection molding, $750K+ EMS, $1.13M+ power supplies, $1.88M+ large-part machining.

The Cost of Inaction in Manufacturing Lead Generation: What Five Missed RFQs a Month Cost in 15 Industries

What five missed RFQs a month cost in 15 manufacturing industries, with customer lifetime values, a conservative 15 to 20% close rate, and a cost of inaction calculator.
October 27, 2026
Diagram of AI crawlers such as GPTBot, ClaudeBot and PerplexityBot passing through the Cloudflare edge to a website

Build an AI Crawler Monitor with Workers, Analytics Engine and Cloudflare AI Search

Log every AI crawler with Workers and Analytics Engine, then use Cloudflare AI Search to see which of your pages a RAG engine actually retrieves for buyer prompts.
October 27, 2026
Card: search crawlers to allow. ChatGPT needs OAI-SearchBot, Perplexity needs PerplexityBot, Google AI Mode needs Googlebot; GPTBot and Google-Extended are training only.

How to Get Cited by ChatGPT, Perplexity and Google AI Mode

How ChatGPT, Perplexity and Google AI Mode choose sources, which crawlers to allow, and a five-step plan to get your company cited, based on official docs.
October 26, 2026
Card: where AI clicks land in GA4. Browser referrals in AI Assistant or Referral, ChatGPT UTM links in Unassigned, app links in Direct, AI Overviews in Organic Search.

How to Set Up AI Search Attribution in GA4: A Step-by-Step Guide for 2026

Step-by-step GA4 setup for AI search attribution: an AI Assistants channel, a copy-paste regex, ChatGPT UTM fixes and a self-reported AI source field.
October 26, 2026
Checklist card: voice search in the AI assistant era, with six of the 11 steps, from crawler access to asking assistants out loud each month.

Voice Search in 2026: How AI Assistants Pick Their Sources

We first wrote about voice search in 2022, when the question was whether “Hey Siri” and “OK Google” would change how people shop. Four years later, voice is back in a bigger form. People now talk to ChatGPT, Gemini, Siri, Alexa+ and Copilot the way they talk to a knowledgeable friend, and those assistants answer by reading the web in
October 17, 2026
    Contact us
    We value your privacy and won't share your email with others. We'll only contact you with curated content.