{
  "kind": "open-flow-workflow",
  "version": 1,
  "name": "Assess ticket urgency",
  "content": {
    "modelVersion": 14,
    "document": {
      "bindings": {},
      "graph": {
        "nodes": {
          "start": {
            "name": "Start",
            "kind": "start",
            "inputDefs": []
          },
          "classify": {
            "inputs": {
              "target": {
                "kind": "value",
                "value": {
                  "subject": "Checkout is unavailable",
                  "message": "Every payment has failed for the last ten minutes."
                }
              }
            },
            "name": "Assess urgency",
            "kind": "task",
            "task": {
              "inputs": [
                {
                  "description": "Text, object, or array to evaluate across all questions.",
                  "jsonSchema": {
                    "type": [
                      "string",
                      "object",
                      "array"
                    ]
                  },
                  "nullable": false,
                  "handle": "target"
                }
              ],
              "outputs": [
                {
                  "jsonSchema": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "noul"
                      },
                      "noul": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "type",
                      "noul"
                    ]
                  },
                  "nullable": false,
                  "handle": "urgent"
                }
              ],
              "name": "Assess urgency",
              "executor": {
                "kind": "decision",
                "questions": [
                  {
                    "name": "urgent",
                    "instructions": "Does the ticket describe a service outage?",
                    "type": "noul",
                    "criteria": {
                      "true": "A service cannot be used",
                      "false": "A general question or feature request"
                    }
                  }
                ]
              }
            }
          }
        },
        "edges": [
          {
            "source": "start",
            "target": "classify"
          }
        ]
      }
    },
    "modules": {}
  },
  "presentation": {
    "designer": {
      "version": 1,
      "flow": {
        "nodes": {
          "start": {
            "x": 0,
            "y": 0
          },
          "classify": {
            "x": 340,
            "y": 0
          }
        }
      }
    }
  }
}
