Random

Random

Run one of several branches, picked by weight

Fields

FieldTypeRequiredDescription
branchesarray of {id, weight, steps}, 1-20 entriesyesweight must be > 0. Exactly one branch is picked, weighted by weight.

Example

{
  "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
  "type": "random",
  "branches": [
    {
      "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q2",
      "weight": 1,
      "steps": []
    }
  ]
}

Did this page help you?