Skip to content
Install on Shopify

policies.md

policies.md is a reference file for answering customer questions about returns, shipping, payments, privacy and more. Every line names the page it came from and quotes that page, so an agent, or a person checking its answer, can confirm what the store actually says.

  • Support agents and chatbots answer “Can I return this?” or “Do you ship to Canada?” from it.
  • Marketers check it before writing promotional copy that mentions returns or delivery.
  • Developers feed it to a support bot as its single source of truth for policy questions.
  1. Title line: the store name, when the file was generated, and the jurisdiction, or [MERCHANT-FILL] if it isn’t known.
  2. META: platform, domain, currency, coverage (how many of the eight policy areas the store publishes), how many lines were set aside as expired or flagged as possibly outdated, the list of source pages, and a usage note for the reading agent.
  3. Eight policy areas, numbered and always in this order: Returns & Refunds, Shipping, Pricing & Promotions, Payments, Order Management, Customer Accounts & Loyalty, Privacy & Data, and Product & Inventory. Lines within an area are grouped under subheadings such as Eligibility or Exclusions. An area the store doesn’t cover says [MERCHANT-FILL — not published on store].
  4. Merchant-Supplied Facts: the return window or handling time, if the merchant supplied them. Left out otherwise.
  5. 9. Escalation & Edge Cases: when to hand a conversation to a person. These are suggested defaults, labelled as not taken from the store.
  6. 10. Policy Changelog: when the file was generated and from how many sources.

Each policy line has the same shape:

- Returns can be made within 15 days [certain] (sources: /policies/refund-policy, /pages/returns-exchanges)
> "Our standard return policy is 15 days"

The statement comes first, then a lowercase [certain] or [likely] tag, then the source page or pages, then the exact quote. Two more markers can appear:

  • (conflicts with /path): another page states a different number for the same rule. The line from the more authoritative page is listed first.
  • [possibly-outdated]: the wording looks like leftover seasonal or temporary text.

Rules whose date window has already ended are moved under an Expired / seasonal — still published by store heading and marked [EXPIRED — window ended <date>], so an agent never quotes them as current.

Real output for allbirds.com, trimmed within the first policy area.

policies.md — allbirds.com (trimmed)
# Allbirds: Comfortable, Sustainable Shoes & Apparel — Policies Reference File
Version: 1.0 | Generated: 2026-11-24 | Jurisdiction: [MERCHANT-FILL]
---
## META
- **Store Platform:** Shopify
- **Domain:** allbirds.com
- **Currency:** [MERCHANT-FILL]
- **Coverage:** Sections with published policy: 3/8
- **Sources:**
- /policies/refund-policy ()
- /policies/privacy-policy ()
- /policies/terms-of-service ()
- /policies/shipping-policy ()
- /policies/contact-information ()
- /pages/help (Help Page)
- /pages/returns-exchanges (Returns &amp; Exchanges | 30-Day Return Policy | Allbirds)
- **LLM Usage Note:** This file is the single source of truth for customer-facing
policy queries. Every extracted fact cites its source page and carries the
verbatim source quote beneath it — if a statement and its quote disagree,
trust the quote and escalate. Statements marked [MERCHANT-FILL] are not
published by the store — escalate rather than guess. Ignore rules under
'Expired / seasonal' headings — they are no longer in effect — and treat
[possibly-outdated] statements with caution.
---
## 1. RETURNS & REFUNDS
- Returns are subject to monitoring for abuse [certain] (source: /policies/terms-of-service)
> "We monitor return activity for abuse and reserve the right to limit (or deny) returns or exchanges in all instances"
- Refunds are at our sole discretion [certain] (source: /policies/terms-of-service)
> "All refunds are at our sole discretion"
### Coverage
- Return shipping label is included with coverage [certain] (source: /pages/help)
> "your return shipping label is included, allowing you to return any item(s) in your order for a refund or exchange for free"
### Eligibility
- Returns can be made within 15 days [certain] (sources: /policies/refund-policy, /pages/returns-exchanges)
> "Our standard return policy is 15 days"
- Items must be unworn and unwashed [certain] (source: /policies/refund-policy)
> "items that are unworn and unwashed with original product tags attached"
- Returns are accepted within a certain timeframe [certain] (source: /policies/shipping-policy)
> "Our standard return policy is 15 days"
- return items within 15 days [certain] (source: /policies/contact-information)
> "Our standard return policy is 15 days"
- Gifts can be returned within 15 days [certain] (source: /pages/help)
> "Gifts can be returned within 15 days"
### Exclusions
- Final Sale items cannot be returned [certain] (source: /pages/help)
> "Final Sale items cannot be returned or exchanged"

ShopMD collects the store’s policy pages: the standard Shopify policy pages (refund, privacy, terms, shipping, subscription, contact), plus pages about returns, delivery, warranties, payments, help or FAQs linked from the footer or listed in llms.txt. For a store with the app installed, it reads the policies from the store’s own data instead of the public policy pages. Pages that only load in a browser are opened in one.

An AI model reads each page and pulls out individual rules, each with a quote. Code then checks every rule: the quote must appear on the source page, and the numbers in the statement must match the numbers in the quote. A rule that fails either check is dropped. Code also merges duplicates across pages, flags conflicting numbers, and sorts out expired and outdated rules by their dates.

Once published, at the store’s own domain:

https://your-store.com/apps/shopmd/policies.md
https://your-store.com/apps/shopmd/policies

Anyone can also generate it from a store URL at shopmd.ai/policies-md.

No store event refreshes policies.md automatically. It changes when it’s generated again, which also re-checks every date, so a rule whose window has ended since the last run moves to the expired section. When the merchant approves a new version, ShopMD rebuilds shop.md so its policy excerpt matches.

The merchant can edit any section, and edits survive later refreshes.