Diagrams and workflows
Sample chain of custody
A chain of custody diagram for a water sample at Ravensworth Analytical, from collection to disposal. Each stage shows a barcoded test tube, each hand-off a signature box, and a temperature log runs along the bottom. Tubes and signature boxes are components, and the arrows are connectors bound to them.
Science · 1920 × 1080, 1 page
How it was made
An AI agent connected to vDesign drafted it from this prompt:
A chain of custody workflow for water samples at Ravensworth Analytical: collection, transport at 2 to 8°C, receipt, logging, analysis, review, storage, disposal. Show who signs at each hand-off.
A first draft is rarely the best one. It was then refined, by asking again and by small edits:
- Gave each signature caption its own two lines, so the names no longer run together.
- Shortened the role names so every hand-off caption fits under its box.
- Centred the stage names and notes under their tubes.
- Made the temperature line show a small rise at receipt, and put the 5.9°C marker on it.
- Made the stage owners match the names on the signature boxes.
Remix it with your assistant
With Claude, ChatGPT or another assistant connected to vDesign, paste this and finish the sentence:
Open the vDesign file at https://getv.design/library/sample-custody-workflow.vd as a new design in vDesign, then change it for me: [say what it is for, and what should be different].
Things to ask for:
- Add what happens if the temperature goes out of range.
- Rename the courier and the reviewer roles.
- Add a retest branch after review.
The source
The design is a .vd file: text that you and any model can read. Sizes and positions are written as relationships, so one change moves everything that depends on it.
Show the .vd source
version 12kind designtitle "Sample chain of custody"$ink = #20232A$paper = #FDFDFD$blue = #5B8DEF$cyan = #1FB5C9$tint = #EDF2FD$mist = #D6F1F5$m = 60$col = 230$x0 = 123$ty = 262font head = Castoro fallback "Georgia, serif" face asset=castoro-400 weight=400 face asset=castoro-400-italic weight=400 italicfont mono = "Victor Mono" fallback "ui-monospace, monospace" face asset=victor-mono-400 weight=400 face asset=victor-mono-600 weight=600asset castoro-400 = font/woff2 hash=sha256-25091256624b43e95adf0f1d397d48ccb17204fd770bf6c63103528e933eede6 bytes=27168 license=OFLasset castoro-400-italic = font/woff2 hash=sha256-81393b87cb723a77e5f1dbd22aa7320526aced46a2f6c03148b74bd059a0fa52 bytes=27972 license=OFLasset victor-mono-400 = font/woff2 hash=sha256-1c96d4706ad792e7740ba352e709380a7328e1d5b853d4d909b771c04be1a94a bytes=15924 license=OFLasset victor-mono-600 = font/woff2 hash=sha256-461562081f29d135cd94b43cccc3a7c6aaadf57b15c99e7b5475bf3e0d457d8e bytes=15748 license=OFLframe page x=0 y=0 w=1920 h=1080 background=paper text title x=$m y=44 w=1800 h=80 font=head size=62 letterSpacing=-1.5 fill=ink "Seven signatures follow a water sample from river to bin" text sub x=$m y=(@title.bottom + 14) w=1800 h=34 font=mono size=22 fill=ink "Ravensworth Analytical handles 300 samples a day. This one is RA-0611-0417, taken on Thursday 11 June." instance t1 component=tube x=$x0 y=$ty instance t2 component=tube x=(@t1.x + $col) y=$ty instance t3 component=tube x=(@t2.x + $col) y=$ty instance t4 component=tube x=(@t3.x + $col) y=$ty instance t5 component=tube x=(@t4.x + $col) y=$ty instance t6 component=tube x=(@t5.x + $col) y=$ty instance t7 component=tube x=(@t6.x + $col) y=$ty instance t8 component=tubee x=(@t7.x + $col) y=$ty instance g1 component=siga x=(@t1.cx + $col / 2 - 58) y=(@t1.cy - 50) connector c1a x1=@t1.right y1=@g1.cy x2=@g1.left y2=@g1.cy stroke=ink strokeWidth=3 connector c1b x1=@g1.right y1=@g1.cy x2=@t2.left y2=@g1.cy stroke=ink strokeWidth=3 end=arrow text g1.cap x=(@g1.cx - 85) y=(@g1.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Sampler\nto courier" instance g2 component=sigb x=(@t2.cx + $col / 2 - 58) y=(@t2.cy - 50) connector c2a x1=@t2.right y1=@g2.cy x2=@g2.left y2=@g2.cy stroke=ink strokeWidth=3 connector c2b x1=@g2.right y1=@g2.cy x2=@t3.left y2=@g2.cy stroke=ink strokeWidth=3 end=arrow text g2.cap x=(@g2.cx - 85) y=(@g2.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Courier\nto reception" instance g3 component=siga x=(@t3.cx + $col / 2 - 58) y=(@t3.cy - 50) connector c3a x1=@t3.right y1=@g3.cy x2=@g3.left y2=@g3.cy stroke=ink strokeWidth=3 connector c3b x1=@g3.right y1=@g3.cy x2=@t4.left y2=@g3.cy stroke=ink strokeWidth=3 end=arrow text g3.cap x=(@g3.cx - 85) y=(@g3.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Reception\nto lab clerk" instance g4 component=sigb x=(@t4.cx + $col / 2 - 58) y=(@t4.cy - 50) connector c4a x1=@t4.right y1=@g4.cy x2=@g4.left y2=@g4.cy stroke=ink strokeWidth=3 connector c4b x1=@g4.right y1=@g4.cy x2=@t5.left y2=@g4.cy stroke=ink strokeWidth=3 end=arrow text g4.cap x=(@g4.cx - 85) y=(@g4.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Lab clerk\nto analyst" instance g5 component=siga x=(@t5.cx + $col / 2 - 58) y=(@t5.cy - 50) connector c5a x1=@t5.right y1=@g5.cy x2=@g5.left y2=@g5.cy stroke=ink strokeWidth=3 connector c5b x1=@g5.right y1=@g5.cy x2=@t6.left y2=@g5.cy stroke=ink strokeWidth=3 end=arrow text g5.cap x=(@g5.cx - 85) y=(@g5.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Analyst\nto reviewer" instance g6 component=sigb x=(@t6.cx + $col / 2 - 58) y=(@t6.cy - 50) connector c6a x1=@t6.right y1=@g6.cy x2=@g6.left y2=@g6.cy stroke=ink strokeWidth=3 connector c6b x1=@g6.right y1=@g6.cy x2=@t7.left y2=@g6.cy stroke=ink strokeWidth=3 end=arrow text g6.cap x=(@g6.cx - 85) y=(@g6.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Reviewer\nto cold store" instance g7 component=siga x=(@t7.cx + $col / 2 - 58) y=(@t7.cy - 50) connector c7a x1=@t7.right y1=@g7.cy x2=@g7.left y2=@g7.cy stroke=ink strokeWidth=3 connector c7b x1=@g7.right y1=@g7.cy x2=@t8.left y2=@g7.cy stroke=ink strokeWidth=3 end=arrow text g7.cap x=(@g7.cx - 85) y=(@g7.bottom + 10) w=170 h=48 font=mono size=18 lineHeight=1.3 align=center fill=ink "Cold store\nto waste team" text s1.n x=(@t1.cx - 105) y=(@t1.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Collection" text s1.w x=@s1.n.x y=(@s1.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Field sampler" text s1.d x=@s1.n.x y=(@s1.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "Sampler seals the bottle and prints its barcode" text s2.n x=(@t2.cx - 105) y=(@t2.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Transport" text s2.w x=@s2.n.x y=(@s2.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Courier" text s2.d x=@s2.n.x y=(@s2.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "A cool box holds it at 2 to 8°C on the road" text s3.n x=(@t3.cx - 105) y=(@t3.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Receipt" text s3.w x=@s3.n.x y=(@s3.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Reception" text s3.d x=@s3.n.x y=(@s3.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "Seal and cool box reading are checked at the door" text s4.n x=(@t4.cx - 105) y=(@t4.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Logging" text s4.w x=@s4.n.x y=(@s4.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Lab clerk" text s4.d x=@s4.n.x y=(@s4.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "The sample enters the system under its barcode" text s5.n x=(@t5.cx - 105) y=(@t5.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Analysis" text s5.w x=@s5.n.x y=(@s5.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Analyst" text s5.d x=@s5.n.x y=(@s5.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "Tests booked for the sample are run" text s6.n x=(@t6.cx - 105) y=(@t6.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Review" text s6.w x=@s6.n.x y=(@s6.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Reviewer" text s6.d x=@s6.n.x y=(@s6.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "A second person checks results against the log" text s7.n x=(@t7.cx - 105) y=(@t7.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Storage" text s7.w x=@s7.n.x y=(@s7.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Cold store" text s7.d x=@s7.n.x y=(@s7.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "Kept at 2 to 8°C for 14 days in case of a retest" text s8.n x=(@t8.cx - 105) y=(@t8.bottom + 30) w=210 h=56 font=head size=44 align=center fill=ink "Disposal" text s8.w x=@s8.n.x y=(@s8.n.bottom + 2) w=210 h=28 font=mono size=20 weight=600 align=center fill=ink "Waste team" text s8.d x=@s8.n.x y=(@s8.w.bottom + 8) w=212 h=130 font=mono size=19 lineHeight=1.4 align=center fill=ink "Autoclaved, binned and signed off in the log" rect log.bg x=0 y=800 w=100% h=280 fill=tint text log.title x=$m y=822 w=1800 h=44 font=head size=34 fill=ink "The logger stayed between 2 and 8°C from the filled bottle to the cold store" rect log.band x=120 y=900 w=1740 h=90 fill=mist connector log.top x1=120 y1=@log.band.top x2=1860 y2=@log.band.top stroke=cyan strokeWidth=2 connector log.bot x1=120 y1=@log.band.bottom x2=1860 y2=@log.band.bottom stroke=cyan strokeWidth=2 text log.hi x=$m y=(@log.band.top - 12) w=52 h=24 font=mono size=16 align=right fill=ink "8°C" text log.lo x=$m y=(@log.band.bottom - 12) w=52 h=24 font=mono size=16 align=right fill=ink "2°C" vector log.line x=120 y=840 w=1740 h=180 view="0 0 1740 180" d="M0 70 L31 79 L62 83 L93 90 L124 94 L155 96 L186 96 L218 99 L249 101 L280 106 L311 105 L342 108 L373 109 L404 110 L435 110 L466 90 L497 87 L528 101 L559 108 L590 112 L621 111 L652 110 L684 109 L715 109 L746 109 L777 113 L808 110 L839 110 L870 111 L901 113 L932 111 L963 113 L994 109 L1025 109 L1056 111 L1088 112 L1119 109 L1150 117 L1181 115 L1212 115 L1243 117 L1274 117 L1305 116 L1336 117 L1367 119 L1398 118 L1429 115 L1460 119 L1491 119 L1522 116 L1554 118 L1585 117 L1616 117 L1647 118 L1678 114 L1709 119 L1740 117" stroke=ink strokeWidth=3 fill=none ellipse log.d1 x=(120 + 497 - 8) y=(840 + 92 - 8) w=16 h=16 fill=blue stroke=ink strokeWidth=2 text log.d1.t x=(@log.d1.right + 12) y=(@log.d1.y - 36) w=330 h=26 font=mono size=18 weight=600 fill=ink "5.9°C at receipt" ellipse log.d2 x=(120 + 1429 - 8) y=(840 + 119 - 8) w=16 h=16 fill=blue stroke=ink strokeWidth=2 text log.d2.t x=(@log.d2.right + 12) y=(@log.d2.y - 36) w=330 h=26 font=mono size=18 weight=600 fill=ink "4.1°C in the cold store" text log.cap x=$m y=1030 w=1800 h=26 font=mono size=16 fill=ink "Logger reading every 15 minutes"frame tube x=0 y=1200 w=64 h=250 background=#00000000 component vector tube.liq x=6 y=100 w=52 h=140 view="0 0 52 140" d="M0 0 H52 V100 C52 150 0 150 0 100 Z" fill=cyan vector tube.glass x=4 y=18 w=56 h=226 view="0 0 56 226" d="M2 0 V170 C2 232 54 232 54 170 V0" fill=none stroke=ink strokeWidth=3 rect tube.cap x=0 y=0 w=64 h=26 fill=blue stroke=ink strokeWidth=3 radius=5 rect tube.lab x=10 y=70 w=44 h=84 fill=paper stroke=ink strokeWidth=2 radius=2 vector tube.bars x=15 y=80 w=34 h=64 view="0 0 34 64" d="M2 0 V64 M7 0 V64 M10 0 V64 M16 0 V64 M19 0 V64 M24 0 V64 M30 0 V64" stroke=ink strokeWidth=2 fill=noneframe tubee x=300 y=1200 w=64 h=250 background=#00000000 component vector tubee.glass x=4 y=18 w=56 h=226 view="0 0 56 226" d="M2 0 V170 C2 232 54 232 54 170 V0" fill=none stroke=ink strokeWidth=3 rect tubee.cap x=0 y=0 w=64 h=26 fill=blue stroke=ink strokeWidth=3 radius=5 rect tubee.lab x=10 y=70 w=44 h=84 fill=paper stroke=ink strokeWidth=2 radius=2 vector tubee.bars x=15 y=80 w=34 h=64 view="0 0 34 64" d="M2 0 V64 M7 0 V64 M10 0 V64 M16 0 V64 M19 0 V64 M24 0 V64 M30 0 V64" stroke=ink strokeWidth=2 fill=noneframe siga x=600 y=1200 w=116 h=100 background=#00000000 component rect siga.r x=0 y=0 w=100% h=100% fill=paper stroke=ink strokeWidth=2 radius=6 text siga.x x=12 y=48 w=24 h=30 font=mono size=20 fill=ink "x" vector siga.sig x=30 y=22 w=76 h=44 view="0 0 76 44" d="M2 36 C10 4 18 4 14 28 C12 40 24 10 30 12 C36 14 26 38 38 28 C46 20 50 14 56 20 C60 26 62 30 74 12" stroke=blue strokeWidth=3 fill=none connector siga.line x1=12 y1=76 x2=104 y2=76 stroke=ink strokeWidth=2frame sigb x=800 y=1200 w=116 h=100 background=#00000000 component rect sigb.r x=0 y=0 w=100% h=100% fill=paper stroke=ink strokeWidth=2 radius=6 text sigb.x x=12 y=48 w=24 h=30 font=mono size=20 fill=ink "x" vector sigb.sig x=30 y=18 w=76 h=48 view="0 0 76 48" d="M2 30 C8 6 20 2 22 20 C24 36 14 40 30 24 C40 14 42 34 52 26 C60 20 64 10 70 14 C72 26 62 40 74 38" stroke=blue strokeWidth=3 fill=none connector sigb.line x1=12 y1=76 x2=104 y2=76 stroke=ink strokeWidth=2