[
    {
      "getCurrentTime": {
        "call": "http.get",
        "args": {
          "url": "https://us-central1-workflowsample.cloudfunctions.net/datetime"
        },
        "result": "currentTime"
      }
    },
    {
      "conditionalSwitch": {
        "switch": [
          {
            "condition": "${currentTime.body.dayOfTheWeek == \"Friday\"}",
            "next": "friday"
          },
          {
            "condition": "${currentTime.body.dayOfTheWeek == \"Saturday\" OR currentTime.body.dayOfTheWeek == \"Sunday\"}",
            "next": "weekend"
          },
          {
            "condition": "${currentTime.body.dayOfTheWeek != \"Friday\" AND currentTime.body.dayOfTheWeek != \"Saturday\" AND currentTime.body.dayOfTheWeek != \"Sunday\"}",
            "next": "workWeek"
          }
        ],
        "next": "unknown"
      }
    },
    {
      "friday": {
        "return": "It's Friday! Almost the weekend!"
      }
    },
    {
      "weekend": {
        "return": "It's the weekend!"
      }
    },
    {
      "workWeek": {
        "return": "It's the work week."
      }
    },
    {
      "unknown": {
        "return": "I don't know, maybe there is an error."
      }
    }
]