Diagrams your agent can draw
Let your app or agent produce editable hand-drawn diagrams by writing Excalidraw scene JSON, and show them with the open-source editor component.
For your agent: agent.md
Parts
Steps
- Have the model output a list of shapes and arrows, then convert it to Excalidraw elements.
- Render the scene with the Excalidraw React component so people can keep editing it.
- Export PNG or SVG for sharing.
Watch out
- Embed the editor through the npm package; the excalidraw.com terms forbid framing the site itself.