Using an ai.txt file in your website's root folder is beneficial because it guides AI systems on how to interact with your site, similar to robots.txt for web crawlers. This helps protect privacy, manage server load, ensure ethical AI use, and demonstrate transparency and accountability, fostering trust with users and AI developers.

About ai.txt

Please find a thorough description of the purpose of the ai.txt file in this blog post by Spawning. Note that "Spawning views ai.txt not as a unilateral standard, but rather as a simple and useful way to declare permissions for text and data mining."

How to use?

  • Installation: Start by installing the module via Composer. Then, enable the module.
  • Configuration: Go to Administration > Configuration > Search and metadata > ai.txt and configure the ai.txt file content. You may choose to generate the file with predefined extensions or set the content manually.
  • Path: Navigate to the file via the /ai.txt path.
  • More: See the readme for advanced configurations.

Related modules

This module is a fork of RobotsTxt. Please send your appreciation to the maintainers there.

If you are starting your journey with Artificial Intelligence in Drupal, we recommend exploring the AI (Artificial Intelligence) module as a great place to begin.

Supporting organizations: 
Sponsoring contribution time

Project information

Releases