This is a neat idea. Might even make sense in cases where you actually want the AI bots hitting your site (we want it for our ecom platform, for example) - just serve Markdown content optimized for AI.
Be careful not to do this with Googlebot, though. Google would consider this "cloaking" and could ban your entire domain for it.
Be careful not to do this with Googlebot, though. Google would consider this "cloaking" and could ban your entire domain for it.