Skip to content
Free scan
Answers

How do I write an agents.md file for my store?Replace Shopify's default with a short file in your own words: what you sell, who it's for, shipping and returns in plain language, links to your policies, and how an agent should handle a buyer's authorization. Keep Shopify's shopping endpoints discoverable through the theme, never typed in by hand.

  1. 1.In your theme, add or edit templates/agents.md.liquid. Shopify serves it at /agents.md.
  2. 2.Open with one paragraph: what the store sells and who it's for.
  3. 3.Add shipping times, costs and your returns window as plain sentences an agent can quote.
  4. 4.Link your refund, shipping, privacy and terms pages.
  5. 5.Say how an agent should treat a buyer: what it may do on the buyer's behalf, and when it must hand back to the buyer.
  6. 6.Keep the UCP and MCP endpoints coming from the theme's agents object, so they stay right when Shopify changes them.
  7. 7.Run it through the validator, then check the live file loads at yourstore.com/agents.md.

Short beats long. An agent reads it on every visit, so every line should be a fact about your store, not a slogan.

If you're asking about the AGENTS.md file for coding agents in a code repository, that's a different file with a different job.

Free: scan your store and get a first draft of your agents.md.