---
title: "Noul"
description: "Judge a yes or no question as a probability."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/typesafe/noul"
---
# Noul

> Judge a yes or no question as a probability.

<block-meta block="Yes" channels="Any" folder="typesafe" group="TypeSafe" groupTo="/build/workflows/blocks/typesafe" icon="i-lucide-toggle-right" pipe="Value" scope="Any" tool="Yes" type="typesafe.noul">



</block-meta>

**Noul** answers a yes or no question. The result is the probability that the answer is yes. Near 1 is a strong yes. Near 0 is a strong no. Near 0.5 means it is unsure. There is no separate confidence field.

Set **Yes at** when a later block should branch on yes or no. The probability stays on the result. **Yes at** adds `yes` (true when the probability is at least that cutoff) and `threshold` (the cutoff). Leave **Yes at** empty to return only the probability.

Phrase the question so a high number means yes. "Does this message ask for a refund?" is clear. "Is this message free of a refund request?" reads backwards in later blocks.

A middle value is uncertainty, not a medium amount. If you need a scale, use [Score](https://docs.vettero.com/build/workflows/blocks/typesafe/score).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Model
      </strong>
    </td>
    
    <td>
      <code>
        jev-latest
      </code>
      
       (default), <code>
        jev-preview
      </code>
      
      , or <code>
        jev-1.13.0
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        State
      </strong>
    </td>
    
    <td>
      The text or JSON to judge
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Instructions
      </strong>
    </td>
    
    <td>
      The yes or no question
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Yes means
      </strong>
    </td>
    
    <td>
      Optional. What counts as yes.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        No means
      </strong>
    </td>
    
    <td>
      Optional. What counts as no.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Yes at
      </strong>
    </td>
    
    <td>
      Optional. A number from 0 to 1. Leave empty to return only the probability.
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the probability returns
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`).

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        noul
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      0 is no, 1 is yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        yes
      </code>
    </td>
    
    <td>
      true or false
    </td>
    
    <td>
      Present when <strong>
        Yes at
      </strong>
      
       is set. True when <code>
        noul
      </code>
      
       is at least that cutoff.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        threshold
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Present when <strong>
        Yes at
      </strong>
      
       is set. The cutoff you entered.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        model
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      The Jev version that answered
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        usage
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      <code>
        input_tokens
      </code>
      
       and <code>
        output_tokens
      </code>
    </td>
  </tr>
</tbody>
</table>

## Use case

- Set **Yes at** to 0.8 and escalate on `yes` when the customer asks for a person.
- Leave **Yes at** empty and send the middle band, for example 0.2 to 0.8, to review instead of acting.


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
