Serving Markdown to AI Agents via the Accept Header
Key point
Introduces a web standard approach where AI agents receive Markdown instead of HTML to improve token efficiency and processing speed.
Details
A method is proposed to utilize the Accept: text/markdown header to strip unnecessary HTML structures and scripts, delivering only content when AI agents crawl websites.
By applying this approach, agents can reduce the burden of DOM parsing and focus on pure text rather than ads or layout elements, thereby improving the signal-to-noise ratio in RAG pipelines. Additionally, the reduced data transmission volume leads to shorter Time to First Token (Latency).
Configuration recipes for various servers and frameworks such as Nginx, Caddy, Cloudflare Workers, Next.js, and Astro are provided, along with a status matrix to check the current support for this header among AI agents.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.