# Human review flow

> A one-page flowchart, 1920 × 1080, for a lender's credit AI: it drafts a decision, three rules route cases to a person or straight through, and every decision is logged. The steps are one component and the rule chips another, so changing a label, a count or a rule is one text edit.

- The design, as a .vd file: https://getv.design/library/human-review-flow.vd
- Its page: https://getv.design/library/human-review-flow

## How it was made

Drafted from this prompt:

> A flowchart for Marrow Street Lending's credit AI: it drafts a decision, rules decide if it goes straight through or to a person, a person reviews, and the final decision is logged. Show three rules that force human review.

Then refined:

- Shortened the step names so each fits on one line.
- Made the step boxes taller with larger text.
- Made the counts beside the review box larger.

## Make it yours

- "Make a human in the loop workflow for our claims team."
- "Change the three rules to ones that fit our business."
- "Add the number of cases that go each way to every step."

## The source

```vd
version 12
kind design
title "Human review flow"
$ink = #20201E
$paper = #F7F4EA
$green = #1F4D3A
$red = #C0392B
$wash = #C0392B12
$m = 96
$nw = 268
$gap = 96

font display = "GFS Didot"
  fallback "Georgia, serif"
  face asset=gfs-didot-400 weight=400

font body = "IBM Plex Sans Condensed"
  fallback "system-ui, sans-serif"
  face asset=ibm-plex-sans-condensed-400 weight=400
  face asset=ibm-plex-sans-condensed-600 weight=600

asset gfs-didot-400 = font/woff2 hash=sha256-f1748a5240008ec0964d1b001b64bc81b9abb171311110d558ef4b7acf508823 bytes=14540 license=OFL
asset ibm-plex-sans-condensed-400 = font/woff2 hash=sha256-456bf5cda9c0b1f1ead43f01b80df5ba5af7cb41d7cbc0543091537c39fb4c89 bytes=19796 license=OFL
asset ibm-plex-sans-condensed-600 = font/woff2 hash=sha256-3d72a0923c5830358b0a8e25b258aecadbecbf542b6ee9a25f387803e37d56b9 bytes=19816 license=OFL

frame flow x=0 y=0 w=1920 h=1080 background=paper
  text flow.title x=$m y=64 w=1180 h=164 font=display size=70 lineHeight=1.1 fill=ink
    "The AI drafts every credit decision. A person checks "
    "138 of 400." fill=red
  text flow.sub x=$m y=248 w=1060 h=80 font=body size=28 lineHeight=1.3 fill=ink
    "Marrow Street Lending, 400 loan applications a month. Three rules decide which drafts go to a person before anything is sent."
  connector flow.key.red x1=1440 y1=112 x2=1520 y2=112 stroke=red strokeWidth=4 dash="1 9" cap=round
  text flow.key.redlabel x=1544 y=94 w=280 h=36 font=body size=26 fill=ink
    "A person must check"
  connector flow.key.green x1=1440 y1=164 x2=1520 y2=164 stroke=green strokeWidth=4
  text flow.key.greenlabel x=1544 y=146 w=280 h=36 font=body size=26 fill=ink
    "Goes straight through"

  rect flow.lane x=$m y=748 w=(100% - $m * 2) h=252 radius=20 fill=wash stroke=red strokeWidth=4 dash="1 11" cap=round
  text flow.lane.count x=(@flow.lane.x + 28) y=(@flow.lane.y + 22) w=380 h=140 font=display size=124 lineHeight=1.1 fill=red
    "138"
  text flow.lane.note x=(@flow.lane.x + 28) y=(@flow.lane.y + 164) w=380 h=70 font=body size=28 lineHeight=1.25 fill=ink
    "of 400 cases a month wait for a person, about 35 percent"

  instance n.app component=node x=$m y=376
    override node.title
      "Application in"
    override node.sub
      "400 a month, with documents"
  instance n.draft component=node x=(@n.app.right + $gap) y=@n.app.y
    override node.box fill=green
    override node.title fill=paper
      "AI drafts"
    override node.sub fill=paper
      "Approve or decline, with reasons"
  instance n.rules component=node x=(@n.draft.right + $gap) y=@n.app.y
    override node.box stroke=ink
    override node.title fill=ink
      "Rules check"
    override node.sub
      "Any one of three rules is enough"
  instance n.sent component=node x=(@n.rules.right + $gap) y=@n.app.y
    override node.title
      "Decision sent"
    override node.sub
      "262 cases where no rule applied"
  instance n.log component=node x=(@n.sent.right + $gap) y=@n.app.y
    override node.box fill=ink stroke=ink
    override node.title fill=paper
      "Decision logged"
    override node.sub fill=paper
      "All 400, each with its rule and reviewer"

  connector flow.a1 x1=@n.app.right y1=@n.app.cy x2=@n.draft.left y2=@n.draft.cy stroke=green strokeWidth=4 end=arrow
  connector flow.a2 x1=@n.draft.right y1=@n.draft.cy x2=@n.rules.left y2=@n.rules.cy stroke=green strokeWidth=4 end=arrow
  connector flow.a3 x1=@n.rules.right y1=@n.rules.cy x2=@n.sent.left y2=@n.sent.cy stroke=green strokeWidth=4 end=arrow
  connector flow.a4 x1=@n.sent.right y1=@n.sent.cy x2=@n.log.left y2=@n.log.cy stroke=green strokeWidth=4 end=arrow

  instance r.value component=chip x=(@n.rules.cx - 450) y=595
    override chip.rule
      "Over £50,000"
    override chip.count
      "58 cases"
  instance r.first component=chip x=(@n.rules.cx - 140) y=595
    override chip.rule
      "First time borrower"
    override chip.count
      "49 cases"
  instance r.decline component=chip x=(@n.rules.cx + 170) y=595
    override chip.rule
      "AI draft is a decline"
    override chip.count
      "31 cases"

  instance n.review component=person x=(@r.value.x + 40) y=815
  connector flow.b1 x1=@n.rules.cx y1=@n.rules.bottom x2=@r.value.cx y2=@r.value.top stroke=red strokeWidth=4 dash="1 9" cap=round route=elbow end=arrow
  connector flow.b2 x1=@n.rules.cx y1=@n.rules.bottom x2=@r.first.cx y2=@r.first.top stroke=red strokeWidth=4 dash="1 9" cap=round end=arrow
  connector flow.b3 x1=@n.rules.cx y1=@n.rules.bottom x2=@r.decline.cx y2=@r.decline.top stroke=red strokeWidth=4 dash="1 9" cap=round route=elbow end=arrow
  connector flow.c1 x1=@r.value.cx y1=@r.value.bottom x2=@r.value.cx y2=@n.review.top stroke=red strokeWidth=4 dash="1 9" cap=round end=arrow
  connector flow.c2 x1=@r.first.cx y1=@r.first.bottom x2=@r.first.cx y2=@n.review.top stroke=red strokeWidth=4 dash="1 9" cap=round end=arrow
  connector flow.c3 x1=@r.decline.cx y1=@r.decline.bottom x2=@r.decline.cx y2=@n.review.top stroke=red strokeWidth=4 dash="1 9" cap=round end=arrow
  connector flow.d x1=@n.review.right y1=@n.review.cy x2=@n.log.cx y2=@n.log.bottom stroke=red strokeWidth=4 dash="1 9" cap=round route=elbow end=arrow
  text flow.out1 x=(@n.review.right + 30) y=(@n.review.cy - 44) w=240 h=34 font=body size=28 weight=600 fill=ink
    "116 confirmed"
  text flow.out2 x=(@n.review.right + 30) y=(@n.review.cy + 14) w=240 h=34 font=body size=28 weight=600 fill=red
    "22 changed"

frame node x=0 y=1300 w=$nw h=150 component
  rect node.box x=0 y=0 w=$nw h=150 fill=paper stroke=green strokeWidth=3 radius=6
  text node.title x=20 y=14 w=($nw - 40) h=40 font=body size=32 weight=600 fill=green
    "Step"
  text node.sub x=20 y=62 w=($nw - 40) h=74 font=body size=26 lineHeight=1.2 fill=ink
    "What happens"

frame chip x=400 y=1300 w=290 h=96 component
  rect chip.box x=0 y=0 w=290 h=96 fill=paper stroke=red strokeWidth=3 radius=6
  text chip.rule x=18 y=12 w=254 h=38 font=body size=29 weight=600 fill=ink
    "Rule"
  text chip.count x=18 y=52 w=254 h=34 font=body size=26 fill=red
    "0 cases"

frame person x=800 y=1300 w=800 h=130 component
  rect person.box x=0 y=0 w=800 h=130 fill=paper stroke=red strokeWidth=3 radius=6
  text person.title x=24 y=14 w=752 h=50 font=display size=38 fill=red
    "A credit officer reviews"
  text person.sub x=24 y=64 w=752 h=56 font=body size=26 lineHeight=1.2 fill=ink
    "Reads the draft and the applicant's file, then confirms it or changes it."
```
