Skip to content

Node reference

Decision node: typed judgments with TypeSafe Jev

decision · Updated September 17, 2026

The Decision node sends its state and a set of narrow questions to TypeSafe Jev in one call. Each answer comes back as probabilities with a confidence, not prose, so branching stays predictable.

When to use it

Triage, moderation, sentiment and lead scoring: anywhere an Agent would only classify or rate. Wire the uncertain port to an Agent or a review step for low-confidence cases.

Ports

Inputs
in
Outputs
outuncertainerrorone port per case
Tool
attachable to an agent's tools port

Configuration

Credentialcredential_idrequired
credential
Modelmodel
string · default "jev-latest"
Statestate
template · default "{{ input }}"The facts Jev judges. Text, or JSON with named fields.
Questionsquestionsrequired
list
Branch onroute_mode
none | noul | choice | bands | rules · default "none"
Question to branch onroute_question
string
Yes thresholdthreshold
number · default 0.5
Score bandsbands
listPorts by minimum normalised score (0 to 1); the highest band reached fires.
Rulesrules
listFirst match fires, e.g. answers.urgent.value > 0.8 and composite >= 0.5
Scorecardscorecard
listWeights combining answers into one 0 to 1 composite score.
Minimum confidencemin_confidence
number · default 0Below this, Uncertain fires instead of a branch. 0 turns it off.
Tool descriptiontool_description
string

Output

Always fires out with answers, composite, branch and confidence. With branching on, it also fires one branch port, or uncertain when confidence is below the minimum.

Example

Questions
[
  { "key": "is_bug", "type": "noul", "instructions": "Does the message report a defect?" },
  { "key": "area", "type": "choice", "instructions": "Which area?",
    "criteria": [{ "option": "billing" }, { "option": "technical" }] },
  { "key": "priority", "type": "score", "instructions": "How urgent?",
    "criteria": ["Next week", "Today", "Immediately"] }
]

Good to know

Keep each question to one judgment, and send only the fields it needs. Rules read answers as answers.priority.value >= 1.5.

Build it on the canvas

Create a free account, describe the workflow or wire it yourself, and run it in the browser.