{
  "schema_version": "1.0.0",
  "id": "greenhouse-phone-screen-invite",
  "title": "Send a phone-screen booking link when the stage changes",
  "category": "hr-recruiting",
  "difficulty": "beginner",
  "featured": false,
  "description": "When a Greenhouse candidate moves to Phone Screen, email them a booking link and leave a note on their profile saying the invite went out.",
  "tags": [
    "greenhouse",
    "gmail",
    "recruiting",
    "scheduling"
  ],
  "apps": [
    "Greenhouse",
    "Filter by Zapier",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 2
  },
  "trigger": {
    "app": "Greenhouse",
    "event": "Candidate Stage Change",
    "kind": "instant",
    "title": "Candidate changed stage",
    "why": "Fires on every stage move for every job.",
    "config": {
      "Job": "(any)"
    },
    "outputs": [
      "candidate_id",
      "application_id",
      "first_name",
      "last_name",
      "email",
      "job_name",
      "from_stage",
      "to_stage",
      "recruiter_name",
      "changed_at"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "screen",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only moves into Phone Screen",
      "why": "Every other stage move stops here.",
      "conditions": [
        [
          {
            "field": "{{trigger.to_stage}}",
            "operator": "(Text) Exactly matches",
            "value": "Phone Screen"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "invite",
      "kind": "action",
      "app": "Gmail",
      "event": "Send Email",
      "title": "Email the booking link",
      "why": "Sent from the recruiter's Gmail so replies come back to a person.",
      "fields": {
        "To": "{{trigger.email}}",
        "Subject": "Next step for the {{trigger.job_name}} role",
        "Body Type": "plain",
        "Body": "Hi {{trigger.first_name}},\n\nThanks for applying for {{trigger.job_name}}. We would like to set up a 20-minute phone call. Please pick a time that suits you here:\nYOUR_BOOKING_LINK\n\nIf none of the times work, just reply to this email.\n\n{{trigger.recruiter_name}}",
        "From Name": "{{trigger.recruiter_name}}"
      },
      "outputs": [
        "id",
        "thread_id"
      ]
    },
    {
      "key": "note",
      "kind": "action",
      "app": "Greenhouse",
      "event": "Add Note to Candidate",
      "title": "Note that the invite went out",
      "why": "The note stops two people from inviting the same candidate.",
      "fields": {
        "Candidate": "{{trigger.candidate_id}}",
        "Note": "Phone screen booking link emailed automatically on {{meta.human_now}}.",
        "Visibility": "Public"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
