Key takeaways
- AI tools for technical SEO are most useful as drafters: robots.txt rules, redirect maps, structured data, regular expressions and spreadsheet formulas.
- Every draft gets tested before it goes live, with Google’s own tools or on a staging copy. A plausible rule can still be wrong.
- Google resolves robots.txt conflicts with the least restrictive rule and treats paths as case-sensitive. AI drafts often miss both.
- No tool can predict rankings from technical data with a known accuracy. I removed those claims from this article.
- Keep client logs and personal data out of public AI tools unless your agreement and privacy rules allow it.
I use AI tools for technical SEO every week, but mostly for one job: drafting the small pieces of code and logic that technical work is full of. A robots.txt rule, a redirect map, a JSON-LD block, a regular expression to sort a crawl export. The tool writes a first version in seconds. I then test it, because the first version is wrong often enough to matter. That habit is a big part of how I approach technical SEO consulting.
This is a narrower angle than my article on where AI helps in a technical SEO audit, which covers classifying URLs, summarising logs and writing fix tickets. Here I stay with drafting rules and code, and the tests each draft needs.
I first published this article in 2025 and have rewritten it, removing statistics, prediction-accuracy figures and success stories I could not trace to any source.
Where AI tools fit in technical SEO work
Technical SEO has a lot of small, precise text: rules, patterns, mappings and markup. A language model is good at producing text in a format it has seen many times. It is not good at knowing your server, your CMS or what Google will do with a rule it has never tested.
So I split the work in two:
- Drafting, where AI saves time: syntax, boilerplate, first versions of mappings, explaining an unfamiliar config file.
- Deciding and testing, which stays with me: whether the rule is right for this site, and proof that it behaves as intended.
The old version of this post said machine learning could “predict ranking volatility with 78% accuracy” from technical data. I know of no source for that and I do not believe any tool can promise it. AI can help you see what changed. It cannot tell you in advance what Google will do with it.
Drafting robots.txt rules with AI tools for technical SEO
Asking an assistant to “block the filter URLs but keep the category pages crawlable” gets you a tidy-looking set of rules in seconds. Before I use them, I check them against Google’s robots.txt specification, because a few details trip up drafts:
- “In case of conflicting rules, including those with wildcards, Google uses the least restrictive rule.” A draft that relies on a Disallow beating an Allow may not do what you expect.
- Google supports two wildcards: “* designates 0 or more instances of any valid character” and “$ designates the end of the URL.”
- Paths are “case-sensitive”, so /Products/ and /products/ are different rules.
- Google applies a 500 KiB limit, and “Content which is after the maximum file size is ignored.”
Then I test. I take a list of real URLs from the site (pages that must stay crawlable and pages that should be blocked) and check each one against the new rules before release. After release, the robots.txt report in Search Console “shows which robots.txt files Google found for the top 20 hosts on your site”, when they were last crawled and any errors. Google also says that to check whether a URL is blocked, “you can test the availability of the URL with the URL inspection tool.”
Redirect maps and server rules
Redirect maps after a migration are a good AI task. Give the tool a list of old URLs and a list of new URLs, and it can suggest matches far faster than doing it by hand. It can also turn the final map into Apache or NGINX rules.
The suggestions need checking, row by row for important pages and by sample for the rest. Matching by similar words in the URL often sends a page to the wrong target. Google’s guide to redirects and Google Search gives the rules I hold drafts to:
- “use a permanent server-side redirect whenever possible” for pages that have moved for good;
- with a permanent redirect, “the indexing pipeline uses the redirect as a signal that the redirect target should be canonical”; a temporary one does not;
- “Only use JavaScript redirects if you can’t do server-side or meta refresh redirects,” because Google “might never see it if rendering of the content failed.”
On a staging copy I request a sample of old URLs and check three things: the status code, the final URL, and the number of hops. Loops and chains show up quickly that way. A rule file the assistant wrote can also contain a pattern broader than you meant, so I always test URLs that should not redirect too.
Structured data drafts
AI tools write JSON-LD well, and Google says “In general, Google recommends using JSON-LD for structured data if your site’s setup allows it.” The risks are in the content, not the syntax.
Google’s introduction to structured data says “don’t add structured data about information that is not visible to the user, even if the information is accurate,” and to check markup “using the Rich Results Test during development.” Assistants like to fill every property they know, so I delete anything the page does not show, such as review ratings that are not on the page or opening hours copied from somewhere else. Then I run the Rich Results Test on the staging URL.
Regular expressions and spreadsheet formulas
This is where AI saves me the most time with the least risk. Typical requests:
- a regular expression that groups crawl export URLs into page types;
- a pattern that pulls parameter URLs out of a log file sample;
- a spreadsheet formula that flags redirect chains in a list of status codes;
- a pattern for filtering queries or pages in a report.
The test is simple. Run the pattern on a sample where you already know the right answer, including a few awkward URLs with capitals, trailing slashes and encoded characters. If the counts do not match what you expect, ask the tool to explain the pattern piece by piece. That explanation usually shows where it went wrong.
What I do not hand to an AI tool
Some jobs stay with a person, whatever the tool can do:
| Task | Use AI to draft? | How it is checked |
|---|---|---|
| robots.txt rules | Yes | Real URL list, robots.txt report, URL Inspection |
| Redirect map and server rules | Yes, with review | Staging test of status, target and hops |
| JSON-LD markup | Yes | Visible content check, Rich Results Test |
| Regex and formulas | Yes | Sample with known answers |
| Which pages to noindex or remove | No | A person decides with traffic and business data |
| Ranking or traffic forecasts | No | No tool can promise these |
Two more limits. First, data. Server logs can contain IP addresses and other personal data, and client exports are confidential. Check your agreement and privacy rules before pasting them into any public AI tool. Second, content. If you use AI to write the words on pages, Google’s guidance on generative AI content says “It is critical to manually factcheck and review all AI-generated content for accuracy and trustworthiness before publishing,” and warns that generating many pages without adding value for users may violate its spam policy on scaled content abuse.
An AI tool can write a rule in ten seconds, and it can be wrong in ten seconds too, so the test is the part I never skip.
A test-before-ship routine
- Describe the goal in plain words, with real examples of URLs or pages.
- Ask the AI tool for a draft and an explanation of each line.
- Check the draft against Google’s documentation for that file or markup.
- Test on a sample with known answers, or on staging.
- Release, then confirm in Search Console: URL Inspection, the robots.txt report or the Rich Results Test.
- Keep the old version so you can roll back.
For bigger automated changes, I wrote separately about which technical SEO fixes a machine can make safely.
FAQ
Can AI tools run a full technical SEO audit on their own?
Not reliably. They can draft rules, sort data and explain code, but they do not know your server or how Google treats your site. Use them to speed up drafting and keep the decisions and tests with a person.
Is it safe to let an AI tool write my robots.txt?
It is safe to let it draft one. Check the draft against Google’s rules, test it against a list of real URLs, and confirm in Search Console after release. A single wrong rule can block pages you need.
Can AI predict how a technical fix will affect rankings?
No tool can promise that. Measure before and after with the same keywords and the same reports instead.
Should I paste server logs into an AI chat tool?
Only if your agreement and privacy rules allow it. Logs can contain personal data such as IP addresses. Removing or masking those fields first is the safer habit.