AI Document Format (xinfer-doc)
Upload a markdown file to AI Documents and, if it starts with the
xinfer-doc frontmatter below, the AI uses your title, keywords, and source
link instead of guessing them. This gives you precise control over how the AI
finds and cites the entry.
Format
---
type: xinfer-doc # required — marks this as a structured doc
title: How to reset your password # the title the AI uses
keywords: [reset password, forgot password] # phrases customers might ask
url: https://yourstore.com/help/password # optional link the AI can cite
---
Write the answer here in normal markdown. Explain the steps a customer should
take. This body is what the AI reads and quotes from.
- type (required): must be exactly
xinfer-doc. - title (optional): used as the entry's title. If omitted, the AI generates one.
- keywords (optional): a list of phrases customers might use — improves retrieval. If omitted, the AI generates keywords.
- url (optional): a link to the source page. Must be
http(s)(or a path on your own site). If omitted, the AI links to the uploaded file.
One file = one topic. Upload separate files for separate topics.
Have your AI write it for you
Paste this to any AI assistant:
Write a markdown file in the "xinfer-doc" format documenting <your topic> for our customers. Start with YAML frontmatter containing
type: xinfer-doc, atitle, akeywordslist of phrases customers might ask, and an optionalurl. Then write the answer in plain markdown. Output only the file.