AIFeed

From sketch to publication-ready flowchart: how AI tools can bridge the gap

Summary

Nature, Published online: 25 November 2026; doi:10.1038/d41586-026-03513-1 The use of generative AI is a practical way to translate hand-drawn scientific diagrams into digital formats without handing over total control, explains Ensar Aydemir.

Original text(via Nature)
A view through a clear surface onto which a man in a blue shirt is drawing the boxes and arrows of a flow chart.
A view through a clear surface onto which a man in a blue shirt is drawing the boxes and arrows of a flow chart.

Artificial-intelligence tools can speed up the process of generating publication-ready flowcharts. Credit: -MG-/Getty

When making a scientific diagram, whether I am outlining a clinical study, planning a flowchart or mapping a signalling pathway, I often start in the same way: with a pen and a piece of paper.

Sketching by hand is fast. I can draw a box, cross something out and reorganize a whole idea without thinking about fonts, alignment or software menus. At this stage, my aim is not to make the figure beautiful, it is to work out the logic.

Turning that rough sketch into a clean figure for a manuscript can be surprisingly tedious, however. Text boxes need to line up; arrows need to connect properly; and fonts, spacing and colours must be consistent. A diagram that took five minutes to draw might take an hour or longer to recreate digitally.

Multimodal artificial-intelligence tools can shorten this process. Rather than asking an AI model to create the final scientific image, I use it as a translator. The model reads my sketch, interprets its structure and converts it into editable diagram code that I can open in a vector-based editor, such as Draw.io — a free application for making diagrams.

This distinction matters. I do not want AI to invent a figure for me; I want it to help me to digitize a figure that I have already designed.

Don’t just ask for a picture

One tempting approach is to provide a description to an image-generation model and ask for a polished scientific figure.

For research diagrams, this can create more problems than it solves. Text might be misspelt, arrows misdirected and pathways altered. More importantly, the resulting image is usually flat (that is, the text, images and background are merged together), making it mostly uneditable. For diagrams in research publications, if a reviewer later asks you to alter it, you might have to start from scratch.

A better option is to ask a multimodal language model — for example, Google’s Gemini — to turn your idea into a structured diagram format, such as Draw.io-compatible XML or Mermaid syntax. The output can then be imported into a diagram editor, in which every box, label and connector remains editable.

In this workflow, AI is less an illustrator than a compiler: a programming tool that translates human-readable instructions into code that a computer can run. My sketch is the source, and Draw.io XML is the output.

Start with the logic

Focus first on the structure of your figure. I roughly sketch the important nodes, branches and connections without worrying about visual polish. For a clinical study, these might include eligibility criteria, treatment groups and follow-up visits. For a laboratory workflow, they might represent experimental stages or decision points.

The key is to make the relationships clear. What box comes first? Where does the pathway split? Which arrow connects to which endpoint? If the logic is ambiguous to a human reader, it will be ambiguous to the AI model, too.

Once the sketch is complete, I photograph it, upload the image to a vision-enabled language model and provide a detailed prompt. For instance:

“Recreate the uploaded hand-drawn figure as a clean, editable academic flowchart in Draw.io-compatible XML format. Preserve the original structure as faithfully as possible, including box positions, arrows, dashed connectors, side boxes, branching pattern, and text content. This is a reconstruction task, not a redesign task. Use a plain white background, thin dark slate-grey borders, white box fills, thin connector lines, clean sans-serif text, and no shadows, gradients, or decorative elements. Make it publication-quality while keeping it recognizably the same diagram.”

The instruction “This is a reconstruction task, not a redesign task” is crucial. Scientific diagrams are not the place for creative completion. I want the model to reconstruct my structure, not improve it on my behalf.

Note also that this prompt indicates what the model should not change. I explicitly ask it to preserve wording, branching relationships and directionality. If the diagram contains important numbers, doses or time points, I check each one manually.

Turn the sketch into an editable figure

Enjoying our latest content? Log in or create an account to continue

  • Access the most recent journalism from Nature's award-winning team
  • Explore the latest features & opinion covering groundbreaking research

doi: https://doi.org/10.1038/d41586-026-03513-1

This is an article from the Nature Careers Community, a place for Nature readers to share their professional experiences and advice. Guest posts are encouraged.

Subscribe to Nature Briefing: Careers, an unmissable free weekly round-up of help and advice for working scientists.

Competing Interests

The author declares no competing interests.

Subjects

  • Machine learning

Latest on:

  • Machine learning
  • Who did figure 3? Why scientists should make experimental contributions visible Career Column 24 NOV 26

Who did figure 3? Why scientists should make experimental contributions visible

Career Column 24 NOV 26

  • It’s our duty to promote ourselves: even to other scientists. Am I wrong? Career Feature 23 NOV 26

It’s our duty to promote ourselves: even to other scientists. Am I wrong?

Career Feature 23 NOV 26

  • Is trust in science falling, or does it just feel that way? Career Feature 23 NOV 26

Is trust in science falling, or does it just feel that way?

Career Feature 23 NOV 26

  • The science on AI consciousness must acknowledge uncertainty Correspondence 24 NOV 26

The science on AI consciousness must acknowledge uncertainty

Correspondence 24 NOV 26

  • Mini microscope captures brain activity while mice are on the go News & Views Forum 24 NOV 26

Mini microscope captures brain activity while mice are on the go

News & Views Forum 24 NOV 26

  • How AI is affecting science careers Career News 20 NOV 26

How AI is affecting science careers

Career News 20 NOV 26

  • Can Beijing scale up its smart-city ambitions? Nature Index 25 NOV 26

Can Beijing scale up its smart-city ambitions?

Nature Index 25 NOV 26

  • China’s AI-powered smart-city model is going global Nature Index 25 NOV 26

China’s AI-powered smart-city model is going global

Nature Index 25 NOV 26

  • ‘If we can solve Riemann, what can’t we do?’: mathematicians shocked and excited by AI breakthroughs News 25 NOV 26

‘If we can solve Riemann, what can’t we do?’: mathematicians shocked and excited by AI breakthroughs

News 25 NOV 26

Jobs

  • Data Analyst Join Human Technopole in Milan as a Data Analyst for PRE-CVD and research how pregnancy complications affect women’s long-term cardiometabolic health. Milan (IT) Human Technopole

Data Analyst

Join Human Technopole in Milan as a Data Analyst for PRE-CVD and research how pregnancy complications affect women’s long-term cardiometabolic health.

Human Technopole

  • Associate or Senior Editor (optical physics), Nature Progress Optics & Photonics Title: Associate or Senior Editor (optical physics), Nature Progress Optics & Photonics Location: Shanghai, Beijing, Nanjing, New Delhi or Pune – h... Shanghai, Beijing, Nanjing, New Delhi or Pune – hybrid working model Springer Nature Ltd

Associate or Senior Editor (optical physics), Nature Progress Optics & Photonics

Title: Associate or Senior Editor (optical physics), Nature Progress Optics & Photonics Location: Shanghai, Beijing, Nanjing, New Delhi or Pune – h...

Shanghai, Beijing, Nanjing, New Delhi or Pune – hybrid working model

Springer Nature Ltd

  • Talent Recruitment Announcement at the College of Artificial Intelligence Join HZAU's global faculty team to advance research with competitive benefits. Wuhan, Hubei (CN) Huazhong Agricultural University (HZAU)

Talent Recruitment Announcement at the College of Artificial Intelligence

Join HZAU's global faculty team to advance research with competitive benefits.

Wuhan, Hubei (CN)

Huazhong Agricultural University (HZAU)

  • Chemistry Faculty Positions at Westlake University Chemistry at the School of Science is committed to fostering inclusive excellence in a variety of research and teaching activities. Hangzhou, Zhejiang (CN) Westlake University

Chemistry Faculty Positions at Westlake University

Chemistry at the School of Science is committed to fostering inclusive excellence in a variety of research and teaching activities.

Hangzhou, Zhejiang (CN)

Westlake University

  • Postdoctoral Positions in Bone, Cartilage, and Stem Cell Biology in Seattle, WA Dr. Christine Hong’s laboratory at the University of Washington, Seattle, WA is recruiting postdoctoral researchers to study TMJ cartilage. Seattle, Washington State University of Washington School of Dentistry

Postdoctoral Positions in Bone, Cartilage, and Stem Cell Biology in Seattle, WA

Dr. Christine Hong’s laboratory at the University of Washington, Seattle, WA is recruiting postdoctoral researchers to study TMJ cartilage.

Seattle, Washington State

University of Washington School of Dentistry

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Nature
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗