---
title: WorkflowTemplateDetail schema
description: Fields of the WorkflowTemplateDetail object in the Cascades API.
canonical_url: "https://cascades.crscreditapi.com/docs/api/schemas/WorkflowTemplateDetail"
doc_version: "1.0.0"
last_updated: "2026-10-09T18:04:24Z"
source: "public/api-docs/v1/swagger.yaml#/components/schemas/WorkflowTemplateDetail"
---

# WorkflowTemplateDetail

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

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | integer | no |  |
| `object` | string | no |  |
| `name` | string | no |  |
| `description` | string, nullable | no |  |
| `icon` | string, nullable | no |  |
| `color` | string, nullable | no |  |
| `category` | string, nullable | no |  |
| `active` | boolean | no |  |
| `featured` | boolean | no |  |
| `published_at` | string (date-time), nullable | no |  |
| `definition` | array of CascadeNode | no | A cascade's node graph: an ordered array of `CascadeNode` objects. Exactly one `ApplicantSource` node is the entry point; every other node is reached through the edge keys (`next_step`, `pass_steps`, `human_review_steps`, `fail_steps`), each of which is an array of node `id`s that must resolve within the same array. An empty array is accepted on create/update (an empty draft) but cannot be run. |
| &nbsp;&nbsp;`id` | string | yes | Unique within the definition, e.g. `step_credit`. Edge keys reference nodes by this value. |
| &nbsp;&nbsp;`type` | string | yes |  One of: `"ApplicantSource"`, `"BillingProduct"`, `"Product"`, `"IfElse"`, `"Condition"`, `"Wait"`, `"GoTo"`, `"ShowResults"`, `"Action"`. |
| &nbsp;&nbsp;`name` | string | no | Human-readable label shown in the builder and in `step_outputs`. |
| &nbsp;&nbsp;`next_step` | array of string | no | Default forward edge — ids of the node(s) to run next. |
| &nbsp;&nbsp;`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`. |
| &nbsp;&nbsp;`config` | object | no | Optional per-node configuration. `store_result_as` names the key under which a product's output is stored. |
| &nbsp;&nbsp;&nbsp;&nbsp;`store_result_as` | string | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;`billing_product_code` | string | no | Alternative location for `billing_product_code`. |
| &nbsp;&nbsp;`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;&nbsp;&nbsp;`pass` | CascadeBranch | no | A branch of an `IfElse` node — one or more condition groups combined with `group_logic`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`group_logic` | string | no | How the condition groups combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`condition_groups` | array of object | no |  |
| &nbsp;&nbsp;&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;&nbsp;&nbsp;`conditions` | array of CascadeCondition | yes |  |
| &nbsp;&nbsp;&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;&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;&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;&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;&nbsp;&nbsp;`option 1` | string, nullable | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 2` | number | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 3` | boolean | no |  |
| &nbsp;&nbsp;&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;&nbsp;&nbsp;`group_logic` | string | no | How the condition groups combine. Defaults to `and`. One of: `"and"`, `"or"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`condition_groups` | array of object | no |  |
| &nbsp;&nbsp;&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;&nbsp;&nbsp;`conditions` | array of CascadeCondition | yes |  |
| &nbsp;&nbsp;&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;&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;&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;&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;&nbsp;&nbsp;`option 1` | string, nullable | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 2` | number | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`option 3` | boolean | no |  |
| &nbsp;&nbsp;`pass_steps` | array of string | no | `IfElse` only. Node ids to run when the `pass` branch matches. |
| &nbsp;&nbsp;`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. |
| &nbsp;&nbsp;`fail_steps` | array of string | no | `IfElse` only. Node ids to run when no branch matches. |
| &nbsp;&nbsp;`action_type` | string | no | `Action` only. One of: `"Approve"`, `"SendEmail"`, `"AdverseAction"`, `"InternalNotification"`. |
| &nbsp;&nbsp;`email` | object | no | `Action` with `action_type: SendEmail`. Fields support `{{variable}}` interpolation from the execution context. |
| &nbsp;&nbsp;&nbsp;&nbsp;`to` | string | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;`subject` | string | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;`body` | string | no |  |
| &nbsp;&nbsp;`adverse_action` | object | no | `Action` with `action_type: AdverseAction`. `send_strategy: draft_first` parks the notice for human review before sending. |
| &nbsp;&nbsp;&nbsp;&nbsp;`recipient` | string | no |  |
| &nbsp;&nbsp;&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;&nbsp;&nbsp;`send_strategy` | string | no |  One of: `"draft_first"`, `"auto_send"`. |
| &nbsp;&nbsp;&nbsp;&nbsp;`reason` | string | no |  |
| &nbsp;&nbsp;`internal_notification` | object | no | `Action` with `action_type: InternalNotification`. Operator-facing notification settings. |
| &nbsp;&nbsp;`wait` | object | no | `Wait` only. The delay before the next node runs. |
| &nbsp;&nbsp;&nbsp;&nbsp;`duration` | number | no |  |
| &nbsp;&nbsp;&nbsp;&nbsp;`unit` | string | no |  One of: `"seconds"`, `"minutes"`, `"hours"`, `"days"`, `"weeks"`. |
| &nbsp;&nbsp;`target_step` | string | no | `GoTo` only. The node id to jump to. |
| `source_workflow_id` | integer, nullable | no |  |

```json
{
  "id": 1,
  "object": "workflow_template",
  "name": "string",
  "description": "string",
  "icon": "string",
  "color": "string",
  "category": "string",
  "active": true,
  "featured": true,
  "published_at": "2026-05-08T18:41:05Z",
  "definition": [
    {
      "id": "step_applicant",
      "type": "ApplicantSource",
      "name": "Applicant",
      "next_step": [
        "step_credit"
      ]
    },
    {
      "id": "step_credit",
      "type": "BillingProduct",
      "name": "Credit report",
      "billing_product_code": "EQF1003",
      "next_step": [
        "step_score_check"
      ]
    },
    {
      "id": "step_score_check",
      "type": "IfElse",
      "name": "Score at least 650?",
      "branches": {
        "pass": {
          "group_logic": "and",
          "condition_groups": [
            {
              "logic": "and",
              "conditions": [
                {
                  "source_node_id": "step_credit",
                  "field": "creditScore.fico9",
                  "operator": "greater_than_or_equal",
                  "value": 650
                }
              ]
            }
          ]
        }
      },
      "pass_steps": [
        "step_approve"
      ],
      "fail_steps": [
        "step_adverse_action"
      ]
    },
    {
      "id": "step_approve",
      "type": "Action",
      "name": "Approve",
      "action_type": "Approve"
    },
    {
      "id": "step_adverse_action",
      "type": "Action",
      "name": "Adverse action",
      "action_type": "AdverseAction",
      "adverse_action": {
        "recipient": "{{applicant.email}}",
        "action_taken": "denied",
        "send_strategy": "draft_first",
        "reason": "Credit score below the minimum required for this property."
      }
    }
  ],
  "source_workflow_id": 1
}
```

## Sitemap

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