How to Optimize for Answer Engines (AEO)
In this guide
Every tactic for getting cited by AI assumes three things: that AI systems can reach your pages, read them, and work out who you are. None of those is guaranteed. A surprising number of websites accidentally block AI crawlers, hide their content behind JavaScript that AI cannot run, or load so slowly that AI gives up before reading the page. This guide covers how to optimize for answer engines at the technical level — the foundations that every other AEO tactic stands on.
Do not block AI crawlers in robots.txt
Nothing else in this guide matters if AI crawlers cannot read your pages. Blocked pages cannot be cited, and it often happens by accident — a broad robots.txt rule, a security plugin, or a copied configuration that blocks more than intended. Large-scale analyses have found that a meaningful share of websites block AI bots outright, with the most popular AI crawler among the most blocked.
The trade-offs are worth understanding. Blocking one crawler may keep your content out of a model’s training data, which is a legitimate choice. But blocking a different crawler removes you from the index an AI assistant searches when it answers questions — which is what costs you citations and referral traffic today. Those are separate decisions, and confusing them is the most common mistake in AEO. Check your robots.txt, understand exactly which crawlers each rule affects, and use a crawler access checker to see where you stand.
Do not hide content behind heavy JavaScript
AI crawlers tend to read the raw HTML of a page and mostly do not run JavaScript the way a browser does. If your important content only appears after scripts run — a common pattern with modern JavaScript-heavy sites — the AI may see an empty page. The fix is to make sure your key content is present in the initial HTML: server-rendered pages, or at least the critical text and headings, so any reader — human, search engine or AI — gets the content without executing code.
This is also good for traditional SEO and for users on slow connections, so it is worth doing even if AI citations were not on your mind.
Improve your page speed
Slow pages hurt traditional search rankings, but the penalty seems even larger for answer engines. Some AI systems appear to abandon pages that take longer than a couple of seconds to respond, and page speed seems to help decide whether your content makes it into the model’s context window at all. A page the AI never finishes reading cannot be cited.
Focus on the basics: compress images, remove unnecessary scripts, use caching, and choose a decent host. You do not need a perfect speed score; you need pages that load quickly for a crawler as well as for a visitor.
Optimize for answer engines: make your content easy to cite
Once crawlers can reach and read your pages, make the content itself easy to use. Put a direct answer near the top of each page, use clear headings that mirror the questions people ask, and write in short, quotable paragraphs. Add the facts an AI would want to quote: specific numbers, dates, names and definitions, all accurate and up to date.
Structured data can help search engines understand your content, but be honest about its limits: studies have found little to no effect of schema markup on AI citations specifically. Add it for search, not as an AEO magic trick.
Check what AI actually sees
Do not guess — verify. Use bot analytics to see which AI bots actually visit your site, which pages they fetch, and how often. Use a visibility tool to check which of your pages get cited and which do not. And test your most important pages yourself: ask an AI assistant a question your page answers, and see whether it cites you. If it does not, work backwards: was the page reachable, readable, fast, and does it actually answer the question better than the pages that were cited?
Do not bother with llms.txt
A proposed file called llms.txt is often suggested as an AEO tactic. The evidence says otherwise: no major AI provider has committed to reading it, and a study of more than 137,000 domains found that the overwhelming majority of these files were never fetched at all. Google has said explicitly that machine-readable files like this are not needed to appear in AI search. Skip it and spend the time on the foundations above.
A technical AEO checklist
- Check robots.txt — allow the AI crawlers you want citations from.
- Make sure key content is in the raw HTML, not only after JavaScript runs.
- Speed up your slowest important pages.
- Put direct answers near the top, with clear headings.
- Keep facts, prices and dates accurate and current.
- Check bot analytics monthly to see which AI crawlers visit and what they fetch.
- Test your top pages in AI assistants and note whether you get cited.
Technical AEO is unglamorous work, but it is the difference between a site that AI can use and a site it cannot. No content strategy, however good, can overcome a page the AI never read.
Earn
Zohaib Faisal is the founder and editor of EarnDesk. Based in Lahore, Pakistan, he runs the online store Haseeb Collections and works as a freelancer on Fiverr (virtual assistance, AI content writing, AI prompt engineering and digital marketing). He builds websites — Haseeb Collections, EarnDesk and a temporary-email service — writes SEO-focused content, and has hands-on AdSense experience across his sites. He has earned 15+ professional certificates from Google, IBM, Microsoft, HubSpot, Cisco, the Linux Foundation, Unity, Semrush and Harvard (CS50P), and creates the YouTube channel Clips by Zohaib. On EarnDesk he writes practical, honest guides to help beginners earn online — without hype or "get rich quick" promises.