Challenge: draw a nephron with HopGPT
For advanced HopGPT users. One prompt, and the model writes a teaching figure as code.
SVG is a figure written as plain text. The shapes, colors and labels are lines of code, so a language model can write one directly. The result is vector art: it stays sharp at any size, and you can open and edit it in Illustrator, Inkscape or PowerPoint.
How to try it
- Open HopGPT and pick a model. (Any chat model works for this, but this one is a good reason to try HopGPT.)
- Copy the prompt below and paste it in.
- Copy the model’s entire reply, from
<svgto</svg>, into a plain-text editor. On a Mac, open TextEdit and choose Format > Make Plain Text first. On Windows, use Notepad. - Save it as
nephron.svg, then open the saved file in a web browser.
The prompt
Create a clean, simplified, anatomically correct nephron schematic as editable SVG vector art. Prioritize correct connectivity over artistic detail. Show one nephron in this sequence: afferent arteriole → glomerular capillary tuft inside Bowman’s capsule → efferent arteriole → peritubular capillaries/vasa recta; and separately, Bowman’s capsule → proximal convoluted tubule → descending limb of the loop of Henle → hairpin turn → ascending limb → distal convoluted tubule → collecting duct. Connect the tubule continuously in that order with no gaps or crossings that imply incorrect anatomy. Place the glomerulus inside Bowman’s capsule; show the afferent arteriole entering and the efferent arteriole leaving the vascular pole. Show the collecting duct as a separate vertical tube receiving the distal tubule, not as part of the nephron loop. Use a simple textbook schematic, not a realistic anatomical rendering. Label only these structures: glomerulus, Bowman’s capsule, afferent arteriole, efferent arteriole, proximal tubule, descending limb, ascending limb, distal tubule, collecting duct, and peritubular capillaries/vasa recta. Use red for blood vessels, blue for the nephron tubule, yellow for the collecting duct, black labels, white background, and clear leader lines. Return only valid raw SVG code, with no Markdown or explanation. Afterward, instruct the user to copy the complete SVG code into a plain-text editor, save it as nephron.svg, and reopen the saved file in a web browser to view it. This is a schematic teaching figure, not a scale drawing.
My result
This is what HopGPT gave me, using OpenAI GPT 5.6 Terra. It is not perfect, but it shows HopGPT at its current limit for this sort of thing. From here you can tell it to move labels, change fonts, or improve certain parts as needed. The point is not to make a perfect nephron. It is that there are workarounds for some of HopGPT’s harness limitations.