Agent Draw: An AI Whiteboard That Draws While You Talk

Agent Draw lets an AI agent draw diagrams on a TLDraw whiteboard in real time as you speak.
Agent Draw is a Show HN project that combines voice/text input with a TLDraw-powered canvas, letting an AI agent generate editable flowcharts and diagrams in real time as you talk. This article explores its technical architecture — from function calling and spatial layout challenges to streaming ASR — and the broader trend of AI agents operating vertical software tools.
When AI Meets Whiteboard: The Birth of Agent Draw
In the world of collaboration and creative tools, whiteboards have long been the go-to medium for team brainstorming, teaching, and product design. TLDraw, an open-source, high-performance web whiteboard engine, has already become the infrastructure of choice for many developers building visual applications.
TLDraw Background: TLDraw is an open-source whiteboard engine project initiated by Steve Ruiz in 2021, built on React and released under the MIT license. Its core architecture revolves around a carefully designed "shape model" — every graphical element (rectangles, arrows, text, etc.) is a JavaScript object with a unique ID, type, position, and style attributes, stored in a subscribable reactive state tree. This data-driven philosophy allows external programs to directly read and write canvas state via the Editor API, without simulating mouse clicks. TLDraw's other major highlight is its CRDT (Conflict-free Replicated Data Type) based collaborative editing architecture — a distributed data structure that allows multiple clients to concurrently modify shared state without central arbitration, and automatically merges differences without conflicts once the network is restored. This capability not only natively supports real-time multi-user collaboration, but also reserves technical space for future scenarios where "multiple AI Agents concurrently operate on the same canvas" — multiple agents can draw in different areas simultaneously, while the underlying data structure guarantees eventual consistency. This is a key reason why companies like Vercel and Linear have embedded it into their own products.
Recently, a project called Agent Draw appeared on Hacker News as a "Show HN" post. Its core concept is simple yet imaginative: just speak, and an AI agent will draw on the whiteboard in real time.
Built on top of TLDraw, this project merges voice/text input with the drawing capabilities of generative AI, aiming to redefine how people interact with whiteboards. The product direction it represents — conversation-driven real-time visualization — is one of the hottest areas in AI application development today.
What Agent Draw Actually Does
From "Manual Drawing" to "Spoken Generation"
Traditional whiteboard tools, no matter how feature-rich, still fundamentally rely on users manually dragging, drawing, and arranging elements. Even with a polished tool like TLDraw, creating a flowchart, system architecture diagram, or set of diagrams still requires step-by-step interaction.
Agent Draw wants to break this pattern. It lets an AI agent draw on the canvas in real time as you speak or type. Say "draw a user login flow," and the agent automatically generates the corresponding boxes, arrows, and labels. Add "include a database node," and it incrementally updates the existing diagram. This interaction shifts from "person operating a tool" to "person directing an agent," dramatically lowering the barrier to visual expression.
Why TLDraw as the Foundation
Choosing TLDraw as the technical foundation is a pragmatic decision. TLDraw provides mature canvas rendering, a shape object model, and an Editor API, so developers don't need to build a complex drawing engine from scratch. More importantly, TLDraw's data structure is programmable — every shape, connector, and text element is an independent object that can be created and manipulated via code.
This is crucial for Agent Draw: the AI agent is essentially generating operation instructions for the TLDraw canvas, not generating a static image. This means what the AI draws consists of real, editable whiteboard elements that can be further adjusted — not bitmaps that can't be modified. This is a key distinction from typical text-to-image tools.
It's worth noting that TLDraw's Editor API is highly "transactional" by design — each operation can be atomically committed or rolled back, much like database transactions. This provides natural technical support for an AI Agent to "undo and retry" when results are unsatisfactory, and makes incremental canvas updates an engineeringly feasible path without causing state inconsistencies.
Core Technical Approach
How the Agent "Understands" and "Draws"
Inferring from the product logic, Agent Draw's workflow can be broken down into the following steps:
- Input capture: Capture user intent via speech recognition or text input;
- Intent parsing: Use a large language model to convert natural language into structured drawing instructions;
- Canvas operations: Call TLDraw's API to map instructions to shape creation, positioning, and connector operations;
- Real-time feedback: Incrementally update canvas content as the user continues inputting.
The Technical Paradigm of AI Agents Operating Software Tools: The paradigm of "making AI the operator of tools" is typically implemented through "Tool Use / Function Calling" mechanisms. Major LLM providers like OpenAI and Anthropic have built function calling capabilities directly into their APIs: developers define a set of functions with JSON Schema descriptions (e.g.,
create_shape(type, x, y, width, height)), and the model decides at inference time which function to call and outputs structured parameters. In Agent Draw's specific engineering practice, this means carefully selecting, abstracting, and wrapping TLDraw's many Editor APIs into an LLM-friendly toolset — the granularity design of this toolset is critical: too fine-grained (e.g., exposingset_xandset_yseparately) forces the LLM to make too many function calls to create a single shape, increasing inference rounds and latency; too coarse-grained (e.g.,draw_flowchart) limits flexibility and struggles with personalized requests. This design philosophy directly determines the system's scalability in complex scenarios. Broader AI Agent frameworks (such as LangChain, AutoGen, LlamaIndex) further introduce multi-step planning (ReAct loops), memory management, and multi-agent collaboration mechanisms, enabling agents to handle more complex long-horizon tasks. The fundamental difference between this paradigm and traditional RPA (Robotic Process Automation) is that RPA relies on hardcoded operation sequences, while AI Agents can dynamically plan operation paths based on context, with much stronger generalization capabilities.
The key challenges in this pipeline are real-time performance and spatial layout. Making AI draw in sync with ongoing conversation requires low-latency conversion from speech to instructions. And producing diagrams with sensible, non-overlapping, logically clear layouts requires the agent to have some spatial reasoning ability — which is precisely where current LLMs are relatively weak outside of pure text.
Spatial Reasoning in Large Language Models: LLMs excel at semantic understanding and code generation, but have systematic weaknesses in 2D spatial reasoning. LLM training data is predominantly text-based, lacking sufficient spatial relationship supervision signals, making them error-prone when handling tasks like "node A is 50px to the right of B," let alone maintaining globally aesthetic layouts when content is dynamically appended. The research and industry communities have proposed several mitigation strategies: one is to introduce "layout algorithms" as a post-processing step, letting the LLM only generate topological relationships (who connects to whom) while dedicated graph layout engines like Graphviz or ELK (Eclipse Layout Kernel) — which implement Dagre, Force-Directed, Layered, and other algorithms — handle coordinate computation in milliseconds for tens or hundreds of nodes; another is using few-shot prompting or fine-tuning to teach models specific diagram coordinate patterns; a third uses a "staged generation" strategy, first generating node lists, then edge relationships, then calling layout algorithms. The "real-time streaming layout" challenge Agent Draw faces is a concrete manifestation of this technical bottleneck in an interactive context — each time a user appends a new node, the system needs to find a suitable position for it without significantly moving existing elements, requiring the layout algorithm to have "incremental stability," meaning local changes don't trigger global rearrangement.
The Interaction Challenge of "Drawing While Talking"
The tagline "an agent draws while you talk" captures the product's most appealing feature — and its biggest technical challenge. Human speech is streaming, non-linear, and frequently self-correcting, while canvas layout requires relatively stable global planning. How to start drawing mid-sentence and gracefully adjust existing content as new information arrives is the central challenge that determines the quality of this type of tool.
Streaming Voice Input and Real-Time Processing: The technical foundation for the "draw while you talk" experience is the coordination of low-latency Automatic Speech Recognition (ASR) and streaming LLM inference. Modern ASR systems (such as OpenAI Whisper and streaming versions of Google Speech-to-Text) support Voice Activity Detection (VAD) and Partial Hypothesis output — VAD judges in real time whether the user is speaking, preventing pauses from being misread as sentence endings; the partial hypothesis mechanism allows the ASR system to continuously output real-time transcription results before the user stops speaking, rather than waiting for a complete sentence. Feeding this streaming text into an LLM for intent parsing and then driving canvas updates requires end-to-end latency of just a few hundred milliseconds to give users a sense of synchrony. The industry typically uses an "optimistic update + rollback" strategy to handle semantic uncertainty: make predictive drawings based on partial speech (optimistic update), then smoothly animate to the new state if subsequent input overrides the prediction (graceful rollback), rather than abruptly erasing and redrawing. This strategy essentially decouples the UI's immediate responsiveness from the data's eventual consistency — a pattern widely used in mobile network requests — but in AI-driven streaming generation, implementation difficulty is significantly elevated by LLM output uncertainty, placing high demands on frontend animation orchestration and state management.
When handled well, it can feel almost magical. Handled poorly, it results in constantly rearranging shapes and a chaotic layout. This is why most products in this space remain in the exploration phase.
Application Scenarios and Possibilities
The potential value of AI whiteboard tools like Agent Draw is significant. Typical use cases include:
- Teaching and demonstrations: Teachers narrate concepts while AI draws diagrams and illustrations in real time;
- Product design: Product managers describe requirements while flowcharts and wireframes are generated on the fly;
- Technical explanations: Engineers describe system architecture while AI automatically generates component relationship diagrams;
- Meeting notes: Real-time visualization of discussions as structured charts.
What these scenarios have in common is: the user has a clear structure in mind, but manual drawing is time-consuming. Agent Draw's value lies precisely in dramatically narrowing the gap between "expressing intent" and "visual presentation."
Looking further ahead, as multimodal LLMs (like GPT-4o and Gemini 1.5) progressively gain the ability to understand image content, future AI whiteboard tools may achieve "bidirectional perception" — not only generating graphics from voice, but also reading hand-drawn sketches and converting them into structured, editable elements, further bridging the gap between "free expression" and "precise representation."
Multimodal LLMs and Bidirectional Whiteboard Perception: The core breakthrough of multimodal large language models (such as GPT-4o and Gemini 1.5 Pro) lies in jointly training a visual encoder (typically based on ViT, Vision Transformer) with a language decoder in the same unified attention space, enabling the model to simultaneously process image pixels, handwritten strokes, and natural language in a single inference pass. This capability has direct engineering value for "bidirectional perception" in AI whiteboard tools: the model can directly "read" a user's hand-drawn sketch, extracting topological relationships (which box connects to which), text annotations, and hierarchical structure, then mapping them to TLDraw shape objects via structured output. It's worth noting that handwriting recognition is far more challenging than recognizing printed graphics — strokes are irregular, symbol meanings depend on context (the same circle represents a termination node in a flowchart, but a tuple in a database diagram), and individual user variation is significant. The current mainstream solution is to introduce a "sketch semantic segmentation" preprocessing step, first clustering handwritten strokes into candidate shape regions, then calling a multimodal LLM for semantic annotation, and finally merging them into structured primitives — this three-stage "perception-understanding-structuring" pipeline is becoming the standard technical architecture for next-generation AI whiteboard tools.
A Sober Assessment: Proof of Concept or Mature Product?
As a freshly debuted Show HN project, Agent Draw is more of a proof of concept than a mature product at this stage. Its real-world effectiveness, stability, and quality for complex diagrams still await more extensive user testing and feedback.
From a broader perspective, Agent Draw is a microcosm of the larger trend of "AI Agent + vertical tools." More and more developers are no longer content with AI that only chats — they're experimenting with agents that directly operate specific software tools, whether whiteboards, code editors, spreadsheets, or design software. This paradigm of "making AI the operator of tools" may well become the next major battleground for AI application innovation.
It's worth noting that the maturation of this paradigm also depends on establishing an "evaluation framework" — quantifying how well an AI Agent performs on a specific vertical tool (layout aesthetics, logical accuracy, response latency) will be critical infrastructure for taking this direction from proof of concept to production-ready.
The Challenge of Building AI Agent Evaluation Systems: Evaluating AI Agents in vertical tool scenarios is an open, unstandardized problem. Unlike traditional NLP tasks (such as Q&A or summarization) that can be quantified with metrics like BLEU or ROUGE, the output quality of drawing agents needs to consider multiple dimensions simultaneously: semantic accuracy (does the generated diagram faithfully reflect user intent), layout aesthetics (are nodes overlapping, are edges crossing, is the overall visual balance good), operational efficiency (number of API call rounds and total latency to complete a task), and editability (is the generated result easy for users to further modify). The academic community has proposed two mainstream evaluation frameworks — "Task Success Rate" and "Human Preference Score" — but the former struggles to cover the subjective quality of creative tasks, while the latter is costly and hard to scale. Recent agent benchmarks like WebArena and OSWorld attempt to build end-to-end task evaluation in real software environments, but these cover limited tool categories and often only evaluate "whether the task was completed" rather than "the quality of completion." For products like AI whiteboards where user experience is the core metric, building a comprehensive evaluation benchmark that balances objective measurability with subjective user experience remains a critical infrastructure challenge that must be solved to move this direction from proof of concept to production-grade product.
For developers focused on AI application deployment, Agent Draw offers a valuable product insight: rather than reinventing the wheel from scratch, stand on the shoulders of excellent open-source tools (like TLDraw) and focus innovation on the AI interaction layer. That may be the project's greatest lesson.
Related articles

The Truth Behind Codex 'Build a Website in 5 Minutes': AI Isn't Creating Sites—It's Helping You Copy Them
Exposing the truth behind viral Codex 5-minute website videos: creators aren't building original sites with AI—they're copying shared prompts or scraping others' work. Learn AI coding tools' real limits.

Getting Started with AI Agent Development: A Complete Guide from Concept to Practice
A comprehensive guide to AI Agent architecture and development, covering automated marketing, intelligent customer service, and investment analysis scenarios with single and multi-agent collaboration.

The Truth Behind Codex 'Build a Website in 5 Minutes': AI Isn't Creating Sites — It's Helping You Copy Them
Exposing the truth behind viral Codex 5-minute website videos: creators aren't building original sites with AI — they're copying shared prompts or scraping others' work.