# Use HTML as the primary chat language of your LLM's so they can make interactive content — retained record

> Retained reddit record from reddit:LocalLLaMA.

Canonical: https://highsignal.app/data/records/0915c772db8307ad

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:LocalLLaMA)  published 2026-06-01 02:20 ingested 2026-06-01 11:12

[original source ↗](https://www.reddit.com/r/LocalLLaMA/comments/1tter4t/use_html_as_the_primary_chat_language_of_your/)

## extract

<table> <tr><td> <a href="https://www.reddit.com/r/LocalLLaMA/comments/1tter4t/use_html_as_the_primary_chat_language_of_your/"> <img alt="Use HTML as the primary chat language of your LLM's so they can make interactive content" src="https://external-preview.redd.it/MjRtbWtyaHd2azRoMSR0MSiJa20Jn3tDPYzup20RfD-aghf2GQHZP4-S68gr.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=d5c9d22751e59178955a6dbef164ea3046e6d75a" title="Use HTML as the primary chat language of your LLM's so they can make interactive content" /> </a> </td><td> <!-- SC_OFF --><div class="md"><p>A day or two back I posted about how you can use HTML directly as the <a href="https://www.reddit.com/r/LocalLLaMA/comments/1tqt12p/use_html_as_the_primary_chat_language_for_your/">output for your agent's chat</a>. Many people mentioned that there was no point as with mermaid or graphviz agents can already draw diagrams, or that markdown was technically a superset of HTML (not that I've ever actually seen this used anywhere AI agents are concerned). </p> <p>So anyway, here's a follow up post where the LLM is building animated and interactive elements inline with the chat, which I don't think can be done in markdown!<br /> Technically it's very very simple: each of the agent's chat outputs is piped into an iframe on the page, so the code it writes is reasonably sandboxed.</p> <p>This experimentation definitely pushes me towards the philosophy of disposable software. In a few years with faster, more capable models there's no reason not to do this. And even today on my dual 3090 rig with Qwen3.6-27B clocking along at about 70t/s, it's not too bad. </p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/sdfgeoff"> /u/sdfgeoff </a> <br /> <span><a href="https://v.redd.it/c0xw49hwvk4h1">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/LocalLLaMA/comments/1tter4t/use_html_as_the_primary_chat_language_of_your/">[comments]</a></span> </td></tr></table>

## retained text

No document body was retained for this record — only its metadata was stored.
