<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yujinze</title>
    <description>The latest articles on DEV Community by yujinze (@tuoxie2046).</description>
    <link>https://dev.to/tuoxie2046</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3863590%2F88582a58-970b-4fc0-b840-0b0215aee570.jpeg</url>
      <title>DEV Community: yujinze</title>
      <link>https://dev.to/tuoxie2046</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tuoxie2046"/>
    <language>en</language>
    <item>
      <title>I Built an AI Agent That Converts Natural Language to Architecture Diagrams — Here's How It Works</title>
      <dc:creator>yujinze</dc:creator>
      <pubDate>Mon, 06 Apr 2026 10:34:23 +0000</pubDate>
      <link>https://dev.to/tuoxie2046/i-built-an-ai-agent-that-converts-natural-language-to-architecture-diagrams-heres-how-it-works-e15</link>
      <guid>https://dev.to/tuoxie2046/i-built-an-ai-agent-that-converts-natural-language-to-architecture-diagrams-heres-how-it-works-e15</guid>
      <description>&lt;p&gt;I've been frustrated with drawing architecture diagrams manually. Every time I need to document a system, I open draw.io and drag boxes for 20 minutes. So I built an AI agent that does it for me — from a text description.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Idea
&lt;/h2&gt;

&lt;p&gt;You type: &lt;em&gt;"AWS architecture with ECS, RDS, ElastiCache, and API Gateway"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You get a complete draw.io diagram, with the right shapes, labels, and layout — in about 30 seconds.&lt;/p&gt;

&lt;p&gt;The agent loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User Request → Plan → Generate draw.io XML → Semantic Verification → Self-Correct (if needed) → Render
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Secret Sauce: Semantic Verification
&lt;/h2&gt;

&lt;p&gt;Most AI diagram tools are black boxes — you don't know if the output actually matches what you asked for. This system &lt;strong&gt;programmatically verifies&lt;/strong&gt; the generated diagram by checking if all requested components are present in the XML output.&lt;/p&gt;

&lt;p&gt;If a component is missing → it self-corrects and regenerates.&lt;/p&gt;

&lt;h2&gt;
  
  
  MCP Integration
&lt;/h2&gt;

&lt;p&gt;The MCP (Model Context Protocol) server is the feature I'm most excited about. It means &lt;strong&gt;Claude Desktop can generate diagrams on demand&lt;/strong&gt;, directly from conversation. No UI needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supported Providers
&lt;/h2&gt;

&lt;p&gt;Works with every major AI provider: OpenAI, Anthropic Claude, Gemini, DeepSeek, Ollama (fully local), AWS Bedrock, Azure OpenAI, and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  34+ Shape Libraries
&lt;/h2&gt;

&lt;p&gt;AWS, GCP, Azure, Kubernetes, UML, BPMN, flowchart primitives — you name it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open Source
&lt;/h2&gt;

&lt;p&gt;Apache 2.0, fully self-hostable. No data leaves your browser (your API calls are between you and the provider).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://genai-drawio-creator.vercel.app" rel="noopener noreferrer"&gt;https://genai-drawio-creator.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/tuoxie2046/GenAI-DrawIO-Creator" rel="noopener noreferrer"&gt;https://github.com/tuoxie2046/GenAI-DrawIO-Creator&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Would love feedback, especially from engineers working on cloud infrastructure!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>drawio</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
