WS LLMS

WS LLMS is a PrestaShop module that generates an up-to-date llms.txt file for your shop in a few clicks. It combines your Markdown content with selected categories and products, shows a live preview and saves the file directly in the root directory, so AI tools and LLM crawlers can understand your shop and its offer faster.

Product description

WS LLMS is a PrestaShop module that creates and updates the llms.txt file in the root directory of your shop. You prepare the content in the Back Office: a shop description in Markdown, selected categories and products. The module combines them into one file and saves it at yourshop.com/llms.txt.

What is llms.txt

llms.txt is a proposed standard: a Markdown text file in the root directory of a website that briefly describes the site for language models and AI tools. Instead of processing the whole HTML of the shop, a tool can read a short company description and a list of categories and key products with links. It is a proposal, not a binding standard, so not every AI tool uses it.

What goes into the file

  • Your own Markdown content, edited in the built-in SimpleMDE editor. If you leave the field empty, the module inserts the shop name, its meta description and the website address.
  • A „Categories” section with the selected categories. If you select none, the module uses all shop categories.
  • A „Products” section with the selected products, grouped by default category. Each product has its name with a link, a short description, the price, the main image URL and a link to the product page.

Choosing products

You add products to the file with the search box in the module settings: by name, reference or ID. One button adds all products from the selected categories, another clears the list when you want to start over. A table shows the thumbnail, name and price of each selected product.

Preview and generation

Next to the form you see a preview of the file, refreshed whenever the content, categories or products change. „Save” stores the settings only, „Generate” stores the settings and creates or overwrites llms.txt. The file is saved in UTF-8 with a BOM so that accented characters display correctly in text editors.

Automatic refresh

The module includes a command line script, bin/generate-llms.php, which you can run once a day from cron on the shop server. The script generates the file in the context of the shop’s public HTTPS address, so product links match the shop and prices and descriptions in llms.txt keep up with changes in your offer.

Requirements

  • PrestaShop 1.7 or newer.
  • Write permission in the shop root directory, where the module creates llms.txt.
  • For automatic refresh: access to cron and command line PHP on the server.

The Markdown editor ships with the module, so the panel does not load scripts from external servers. Settings are stored in the standard PrestaShop configuration table and removed when the module is uninstalled.

User guide

Installing the module
  1. Log in to the PrestaShop admin panel.
  2. Go to Modules → Module Manager and click „Upload a module”.
  3. Select the module ZIP file and click „Configure” after installation. You can also copy the ws_llms directory to modules/ and install the module from the list.
Configuring and generating the file
  1. In the Markdown field, describe your shop: what you sell, who the offer is for, key information about delivery or contact.
  2. Select categories in the category tree.
  3. Add products with the search box or with the button that adds products from the selected categories.
  4. Check the preview and click „Generate”. The file will be available at yourshop.com/llms.txt.
  5. If you want the file to refresh itself, add a daily cron call to bin/generate-llms.php.