---
title: CascadeNode schema
description: "One node of a cascade. id and type are always required; the remaining required keys depend on type (see x-required-keys-by-type): | type | required keys |…"
canonical_url: "https://cascades.crscreditapi.com/docs/api/schemas/CascadeNode"
doc_version: "1.0.0"
last_updated: "2026-10-09T18:04:24Z"
source: "public/api-docs/v1/swagger.yaml#/components/schemas/CascadeNode"
---

# CascadeNode

One node of a cascade. `id` and `type` are always required; the
remaining required keys depend on `type` (see `x-required-keys-by-type`):

| type | required keys | purpose |
|---|---|---|
| `ApplicantSource` | — | Entry point; exposes the trigger payload as `context.applicant`. Exactly one per cascade. |
| `BillingProduct` (alias `Product`) | `billing_product_code` | Pulls a report (credit, criminal, eviction, identity, income). |
| `IfElse` (alias `Condition`) | `branches` | Evaluates conditions and routes to `pass_steps`, `human_review_steps` or `fail_steps`. |
| `Wait` | `wait` | Pauses for `wait.duration` × `wait.unit`. |
| `GoTo` | `target_step` | Runtime jump to another node (not a graph edge). |
| `ShowResults` | — | Terminal node that surfaces collected outputs. |
| `Action` | `action_type` | `Approve`, `SendEmail` (reads `email`), `AdverseAction` (reads `adverse_action`), `InternalNotification` (reads `internal_notification`). |

`Product` and `Condition` are legacy aliases the engine still resolves;
new definitions should use `BillingProduct` and `IfElse`. Unknown
keys are tolerated and ignored by the engine.

Defined in [openapi.json](https://cascades.crscreditapi.com/openapi.json#/components/schemas/CascadeNode) ([YAML](https://cascades.crscreditapi.com/openapi.yaml)).

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Unique within the definition, e.g. `step_credit`. Edge keys reference nodes by this value. |
| `type` | string | yes |  One of: `"ApplicantSource"`, `"BillingProduct"`, `"Product"`, `"IfElse"`, `"Condition"`, `"Wait"`, `"GoTo"`, `"ShowResults"`, `"Action"`. |
| `name` | string | no | Human-readable label shown in the builder and in `step_outputs`. |
| `next_step` | array of string | no | Default forward edge — ids of the node(s) to run next. |
| `billing_product_code` | string | no | `BillingProduct` / `Product` only. The product to pull, e.g. `EQF1003` (Equifax credit), `TUC1001` (TransUnion credit), `CIC4002` (criminal), `CIC4003` (eviction). May also be nested as `config.billing_product_code`. |
| `config` | object | no | Optional per-node configuration. `store_result_as` names the key under which a product's output is stored. |
| &nbsp;&nbsp;`store_result_as` | string | no |  |
| &nbsp;&nbsp;`billing_product_code` | string | no | Alternative location for `billing_product_code`. |
| `branches` | object | no | `IfElse` / `Condition` only. Conditions for the `pass` branch and (optionally) the `human_review` branch; anything that matches neither takes `fail_steps`. |
| &nbsp;&nbsp;`pass` | CascadeBranch | no | A branch of an `IfElse` node — one or more condition groups combined with `group_logic`. |
| &nbsp;&nbsp;&nbsp;&nbsp;`group_logic` | string | no | How the condition groups combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;`condition_groups` | array of object | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`logic` | string | no | How the conditions inside this group combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`conditions` | array of CascadeCondition | yes |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`source_node_id` | string | yes | The `id` of the product node whose output is compared. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`field` | string | yes | Exact output field path from that product's schema, e.g. `creditScore.fico9`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`operator` | string | yes |  One of: `"equals"`, `"not_equals"`, `"greater_than"`, `"greater_than_or_equal"`, `"less_than"`, `"less_than_or_equal"`, `"contains"`, `"not_contains"`, `"starts_with"`, `"ends_with"`, `"is_empty"`, `"is_not_empty"`, `"is_true"`, `"is_false"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`value` | one of | no | The comparison value. Required for every operator except the unary ones (`is_empty`, `is_not_empty`, `is_true`, `is_false`), which accept `null` or no `value` at all. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 1` | string, nullable | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 2` | number | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 3` | boolean | no |  |
| &nbsp;&nbsp;`human_review` | CascadeBranch | no | A branch of an `IfElse` node — one or more condition groups combined with `group_logic`. |
| &nbsp;&nbsp;&nbsp;&nbsp;`group_logic` | string | no | How the condition groups combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;`condition_groups` | array of object | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`logic` | string | no | How the conditions inside this group combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`conditions` | array of CascadeCondition | yes |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`source_node_id` | string | yes | The `id` of the product node whose output is compared. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`field` | string | yes | Exact output field path from that product's schema, e.g. `creditScore.fico9`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`operator` | string | yes |  One of: `"equals"`, `"not_equals"`, `"greater_than"`, `"greater_than_or_equal"`, `"less_than"`, `"less_than_or_equal"`, `"contains"`, `"not_contains"`, `"starts_with"`, `"ends_with"`, `"is_empty"`, `"is_not_empty"`, `"is_true"`, `"is_false"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`value` | one of | no | The comparison value. Required for every operator except the unary ones (`is_empty`, `is_not_empty`, `is_true`, `is_false`), which accept `null` or no `value` at all. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 1` | string, nullable | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 2` | number | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 3` | boolean | no |  |
| `pass_steps` | array of string | no | `IfElse` only. Node ids to run when the `pass` branch matches. |
| `human_review_steps` | array of string | no | `IfElse` only. Node ids to run when the `human_review` branch matches; the execution pauses with `needs_human_review: true` until a review decision resumes it. |
| `fail_steps` | array of string | no | `IfElse` only. Node ids to run when no branch matches. |
| `action_type` | string | no | `Action` only. One of: `"Approve"`, `"SendEmail"`, `"AdverseAction"`, `"InternalNotification"`. |
| `email` | object | no | `Action` with `action_type: SendEmail`. Fields support `{{variable}}` interpolation from the execution context. |
| &nbsp;&nbsp;`to` | string | no |  |
| &nbsp;&nbsp;`subject` | string | no |  |
| &nbsp;&nbsp;`body` | string | no |  |
| `adverse_action` | object | no | `Action` with `action_type: AdverseAction`. `send_strategy: draft_first` parks the notice for human review before sending. |
| &nbsp;&nbsp;`recipient` | string | no |  |
| &nbsp;&nbsp;`action_taken` | string | no | The action box ticked on the notice: `denied` (application denied), `revoked` (credit revoked or terms changed unfavorably), `adverse_employment` (adverse employment action) or `other_action`. Cascades the AI designer generates always use `denied`. One of: `"denied"`, `"revoked"`, `"adverse_employment"`, `"other_action"`. |
| &nbsp;&nbsp;`send_strategy` | string | no |  One of: `"draft_first"`, `"auto_send"`. |
| &nbsp;&nbsp;`reason` | string | no |  |
| `internal_notification` | object | no | `Action` with `action_type: InternalNotification`. Operator-facing notification settings. |
| `wait` | object | no | `Wait` only. The delay before the next node runs. |
| &nbsp;&nbsp;`duration` | number | no |  |
| &nbsp;&nbsp;`unit` | string | no |  One of: `"seconds"`, `"minutes"`, `"hours"`, `"days"`, `"weeks"`. |
| `target_step` | string | no | `GoTo` only. The node id to jump to. |

```json
{
  "id": "step_credit",
  "type": "ApplicantSource",
  "name": "Credit report",
  "next_step": [
    "string"
  ],
  "billing_product_code": "EQF1003",
  "config": {
    "store_result_as": "string",
    "billing_product_code": "string"
  },
  "branches": {
    "pass": {
      "group_logic": "and",
      "condition_groups": [
        {
          "logic": "and",
          "conditions": [
            {
              "source_node_id": "step_credit",
              "field": "creditScore.fico9",
              "operator": null,
              "value": 650
            }
          ]
        }
      ]
    },
    "human_review": {
      "group_logic": "and",
      "condition_groups": [
        {
          "logic": "and",
          "conditions": [
            {
              "source_node_id": "step_credit",
              "field": "creditScore.fico9",
              "operator": null,
              "value": 650
            }
          ]
        }
      ]
    }
  },
  "pass_steps": [
    "string"
  ],
  "human_review_steps": [
    "string"
  ],
  "fail_steps": [
    "string"
  ],
  "action_type": "Approve",
  "email": {
    "to": "string",
    "subject": "string",
    "body": "string"
  },
  "adverse_action": {
    "recipient": "{{applicant.email}}",
    "action_taken": "denied",
    "send_strategy": "draft_first",
    "reason": "string"
  },
  "internal_notification": {},
  "wait": {
    "duration": 24,
    "unit": "hours"
  },
  "target_step": "string"
}
```

## Sitemap

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