Skip to content
Weave templates

Decision Tree

Branching decision tree with terminal action nodes.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"q1","type":"diamond","label":"Is customer\npremium?","x":280,"y":40 },
    { "id":"q2","type":"diamond","label":"> 1 year\ntenure?","x":80,"y":200 },
    { "id":"q3","type":"diamond","label":"Recent contact?","x":480,"y":200 },
    { "id":"a1","type":"terminator","label":"Auto-approve","x":40,"y":360,"fill":"#dcfce7" },
    { "id":"a2","type":"terminator","label":"Manual review","x":260,"y":360,"fill":"#fef3c7" },
    { "id":"a3","type":"terminator","label":"Fast-track","x":480,"y":360,"fill":"#dcfce7" },
    { "id":"a4","type":"terminator","label":"Standard queue","x":700,"y":360 }
  ],
  "edges": [
    { "id":"a","source":"q1","target":"q2","label":"no" },
    { "id":"b","source":"q1","target":"q3","label":"yes" },
    { "id":"c","source":"q2","target":"a1","label":"yes" },
    { "id":"d","source":"q2","target":"a2","label":"no" },
    { "id":"e","source":"q3","target":"a3","label":"yes" },
    { "id":"f","source":"q3","target":"a4","label":"no" }
  ]
}