Shopify stores can useDocumentation Index
Fetch the complete documentation index at: https://docs.uselayers.com/llms.txt
Use this file to discover all available pages before exploring further.
llms.txt to give AI agents clear instructions about how to browse and understand the storefront. If your store uses Layers search or collection discovery, add Agentic Feedback instructions so agents can report specific search and discovery issues back to Layers.
The instructions tell agents when to submit feedback, where to send it through the Layers app proxy, and what details to include.
Prerequisites
- The Layers app is installed on your Shopify store.
- Your storefront can serve an
llms.txtfile. - Your Layers app proxy is available at
/apps/layers. - You can edit the contents of your store’s
llms.txtfile.
Add the Agentic Feedback instructions
Add this block to your store’sllms.txt file:
{mystore.com} with your storefront domain, such as outdoor-example.myshopify.com or www.outdoor-example.com.
What agents should send
Agents should only submit feedback when they find a specific issue with search or discovery results. Useful feedback explains the shopper intent and the mismatch the agent observed. Good feedback examples:- “The shopper searched for dress boots, but the top results were mostly hiking boots.”
- “The collection page showed sold-out products before available products for the selected size.”
- “The search results for waterproof jackets included several products that are not water resistant.”
How the app proxy works
Agents send feedback to your Shopify storefront domain, not to the Layers API host. Shopify forwards the request through the Layers app proxy. The instruction block should tell agents to include the storefront path they evaluated and the specific feedback they want to report. The path should start with/ and include the query string when it matters, such as /search?q=boots&sort=relevance.
Verify the setup
After you updatellms.txt, visit your storefront’s file in a browser:
Troubleshooting
The instructions do not appear in llms.txt
Check that you edited the active storefront llms.txt source. If your store uses a theme template or app to manage llms.txt, update the version that Shopify serves at the storefront root.
The agent receives a 403 response
Make sure the agent uses your storefront domain and the/apps/layers/agentic-feedback path. Do not point the agent to the Layers API host.
The feedback is not useful
Tighten the instruction so the agent only submits feedback with a clear observed issue. Ask it to include the original path, the shopper intent, and the specific mismatch in the results.Next steps
- Use Execute Search to test search paths that agents may evaluate.
- Review AI enablement for other ways AI tools can work with Layers documentation.