invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Markdown for AI Agents

Every documentation page, data model page and forum reading view of Invantive Cloud Documentation is also available as Markdown. An AI agent or a language model then gets the content of the page without the navigation and the layout around it.

Two Ways to Ask

The Markdown of a page is requested in one of two ways:

  • Append .md to the address of the page, such as /en/docs/invantive-universalsql/invantive-universalsql.md or /en/datamodels/exactonline/ExactOnlineREST.CRM.Accounts.md. This works whatever the request headers say, so a model that cannot set headers can still be pointed at it.
  • Send the header Accept: text/markdown, or prefer text/markdown over text/html with a quality value, to the normal address.

The name of the user agent plays no part. The answer has the content type text/markdown; charset=utf-8.

The following example reads a table of the Exact Online data model as Markdown:

curl -H "Accept: text/markdown" https://documentation.invantive.eu/en/datamodels/exactonline/ExactOnlineREST.CRM.Accounts

What the Markdown Holds

The Markdown of a page starts with a front matter block holding the title, the description, the language and the address of the HTML version under canonical, followed by the content:

  • links to other pages of the site as absolute .md addresses, so an agent can keep reading in Markdown,
  • images as absolute links to the site,
  • on a data model page, the columns as a Markdown table,
  • on a platform page, its tables as links,
  • on the start page of a product, at the end, "All Topics": every page of the product as a nested list of .md links in the structure of its folders, so one page tells an agent where every page of the product is,
  • on a forum page, the question, the accepted answer and the replies, with a link to the topic on the forum.

A page that is not yet translated into the language asked for answers in its source language. A request for Markdown never starts a translation.

The Pages of a Product as Data

The start page of a product also answers its tree of pages as data, at the same address:

  • with Accept: application/json, one JSON document with the product, the number of pages and the nodes of the tree;
  • with Accept: application/x-ndjson, one node per line, the start page first.

A node has its address path without the language, its title in the language asked or, when the translation is not there yet, in English with that language in lang, its parent, its position among the pages of its parent, its depth, its kind (page or folder), the number of pages of a folder, whether it is linked to a page, and updatedUtc. The nodes are listed depth first, so an agent writes the tree by reading them in order.

Headers

Every HTML page names its Markdown version in the header Link with rel="alternate" and type="text/markdown", so an agent that has the HTML finds the Markdown. Search engines index the HTML only: robots.txt asks general crawlers to skip the .md addresses, and the sitemaps do not list them.

llms.txt

The file /llms.txt summarises the site for language models, after llmstxt.org. It is Markdown and holds:

  • what the site contains,
  • how the addresses are built, so an agent can reach any page by its pattern,
  • that every page answers as Markdown,
  • how to search, also as Markdown,
  • links to the start pages of the main products, to the data models and to the forum.

Limits

A Markdown request counts as a page request for the rate limits of the site, the same as an HTML request.

Release Notes