Skip to main content

How to customize the agent instructions

The files served at /llms.txt and /agents.md tell AI agents how to work with your store. They are rendered from a Liquid template that you can tailor per store view. This guide shows how to override the built-in default and preview the result.

1. Open the template setting

  • Go to Stores -> Configuration -> Mirasvit Extensions -> Agentic Commerce.
  • Expand the Agent Instructions Template group.

The LLMs Template field is pre-filled with the built-in default template.


2. Edit the template

Edit the Liquid content directly in the field. The most common variables are:

  • {{ agentic.info }} — the protocol block describing the store's agent endpoints.
  • {{ store.name }} and {{ store.url }} — store name and base URL.
  • {{ categories.all }} — the store's categories.
  • {{ cms_pages }} — CMS pages.
  • {{ policies }} — the policy pages you select below.
  • {{ products.featured }} — products flagged with the Include in Agent Instructions attribute.

For every variable, including the fields available on each list item, see Agent instructions variables.

warning

The template must be valid Liquid. If it cannot be parsed, the extension rejects the save and keeps the previous version, so a broken template never reaches /llms.txt.


3. Add policy pages

  • In the Policy Pages field, select the CMS pages (for example, Shipping, Returns, Privacy Policy) you want exposed through the {{ policies }} variable.
  • Leave it blank to omit the policies section entirely.

4. Preview before saving

  • Click Preview (the Preview field below the template) to render the template against the currently selected store view.
  • Adjust the template until the output reads the way you want.

5. Save

  • Click Save Config to store your changes. This creates a store-scoped override — different store views can have different instructions.
  • To revert to the built-in default, clear the LLMs Template field and save again.
tip

Clear the Magento cache after saving so the new instructions are served right away.