Short answer
In robots.txt for AI you must distinguish search crawlers, which let you appear in answers, from training crawlers, which use your content to improve models. For a small or mid-sized business looking for customers, the usual choice is to allow the search ones (such as OAI-SearchBot and PerplexityBot) and decide separately about training.
This guide on robots.txt for AI is part of Appear in ChatGPT, Gemini and Perplexity (AEO), where we organize the whole topic into 10 answers that link to each other.
What robots.txt is and why it matters for AI
The robots.txt file lives at the root of your domain (your-domain.com/robots.txt) and tells crawlers which parts of your site they may visit. Serious crawlers check it before entering. With the arrival of AI assistants, that file went from being a technical detail to a business decision: it determines who can read you and for what.
The main agents
Each provider documents its agents separately. The essentials:
- OAI-SearchBot (OpenAI): to show sites in ChatGPT searches.
- GPTBot (OpenAI): related to model training.
- ChatGPT-User: acts at a person’s request. OpenAI indicates that robots.txt may not apply.
- PerplexityBot: to link sites in Perplexity. It respects robots.txt.
- Perplexity-User: a person’s request. It generally ignores robots.txt.
- Google-Extended: controls use in Gemini. According to Google, it does not affect Search.

An example configuration for a small or mid-sized business
If you want to appear in answers and have no problem with the rest, your file can be very simple: allow everything and add the sitemap line. If you prefer not to allow training, you can add a specific rule for GPTBot without touching OAI-SearchBot. The important thing is not to write a general rule that blocks all agents by accident.
Before publishing changes, check that your site remains accessible to Googlebot: it is the foundation of SEO and of Google’s AI features.
Beyond robots.txt
Robots.txt is a request, not a technical barrier. To truly block or to allow without friction, you also have to check the firewall and the CDN, which can challenge legitimate crawlers. If you use a service like Cloudflare, review its bot rules. If you want to see the effect in how to appear in ChatGPT or in Perplexityapply the changes and wait at least a day before testing.
How to check that it came out right
After editing the file, open it in the browser and read it as a crawler would: top to bottom, without skipping rules. Check that the sitemap is declared, that there is no general “Disallow: /” and that the per-agent rules do not contradict each other. In Search Console you can check whether Google can access your important pages. Note the date of the change: if your visits from assistants vary, you will know when it started.
When blocking makes sense
Blocking makes sense if you publish paid content, material with third-party rights or data you do not want reused. For a commercial website whose goal is to be found, a total block almost always costs you opportunities. Decide calmly and leave the decision in writing so you do not reverse it by accident.
Robots.txt for AI: summary and next step
To put robots.txt for AI into practice, choose a single service page, apply what you saw in this guide and note how it was before. Within a month, compare results and adjust. If you prefer that we do it for you, at Cuva Lab we deliver websites in 48 hours with this technical and content foundation.
Frequently asked questions about robots.txt for AI
Should I block all AI bots?
Only if you have clear reasons. Blocking the search ones reduces your chance of appearing in answers.
How long does a change take to apply?
OpenAI indicates it may take around 24 hours in its search systems. Other providers do not publish fixed timelines.
Does robots.txt protect private content?
No. It is a public request. Private content must be protected with restricted access, not with robots.txt.









