{
  "name": "Schedule an interview loop",
  "flow": [
    {
      "id": 1,
      "module": "greenhouse:watchCandidateStageChange",
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Trigger when a candidate advances to the on-site / panel stage."
    },
    {
      "id": 2,
      "module": "google-calendar:searchFreeBusy",
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Read free/busy for every interviewer on the role's panel."
    },
    {
      "id": 3,
      "module": "util:setVariables",
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Pick the earliest slots that fit the full panel plus the candidate's stated availability."
    },
    {
      "id": 4,
      "module": "google-calendar:createEvent",
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Book each interview with the candidate and the assigned interviewer; attach the scorecard and resume."
    },
    {
      "id": 5,
      "module": "gmail:sendEmail",
      "metadata": {
        "designer": {
          "x": 1200,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Send the candidate the agenda, interviewer bios, and logistics; send each interviewer their prep packet."
    },
    {
      "id": 6,
      "module": "greenhouse:updateCandidate",
      "metadata": {
        "designer": {
          "x": 1500,
          "y": 0
        }
      },
      "parameters": {},
      "description": "Write the scheduled times back to the candidate and notify the recruiter of anything that could not be booked."
    }
  ],
  "metadata": {
    "generatedBy": "Spion",
    "instance": {
      "name": "Schedule an interview loop",
      "note": "Trigger · Greenhouse, candidate moved to the panel stage."
    }
  }
}
