{
  "schema_version": "1.0.0",
  "id": "rejection-email-draft",
  "title": "Draft a personal rejection when a candidate is rejected",
  "category": "hr-recruiting",
  "difficulty": "intermediate",
  "featured": false,
  "description": "When a Greenhouse candidate is moved to Rejected after an interview, draft a short, specific rejection email for the recruiter to review and send.",
  "tags": [
    "greenhouse",
    "recruiting",
    "gmail",
    "ai-writing",
    "candidate-experience"
  ],
  "apps": [
    "Greenhouse",
    "Filter by Zapier",
    "AI by Zapier",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier",
      "AI 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; the filter keeps rejections after an interview stage.",
    "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": "rejected",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only rejections after an interview",
      "why": "Applicants rejected at review get the standard Greenhouse email. Only people who spoke to the team get a personal note.",
      "conditions": [
        [
          {
            "field": "{{trigger.to_stage}}",
            "operator": "(Text) Exactly matches",
            "value": "Rejected"
          },
          {
            "field": "{{trigger.from_stage}}",
            "operator": "(Text) Contains",
            "value": "Interview"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "write",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Write the rejection",
      "why": "Kind, short, and specific to the role and stage. It never gives a reason, because reasons belong in a conversation, not an automated draft.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "Write a short rejection email (under 120 words) to a candidate who interviewed. Thank them for their time at the named stage, say the team has decided not to move forward for this role, wish them well, and offer to keep their details for future roles. Do not give a reason. Do not invent details about the interview. Return subject and body, signed with the recruiter's first name.",
        "Input data": "Candidate first name: {{trigger.first_name}}\nRole: {{trigger.job_name}}\nLast stage: {{trigger.from_stage}}\nRecruiter: {{trigger.recruiter_name}}",
        "Output fields": "subject, body"
      },
      "outputs": [
        "subject",
        "body"
      ]
    },
    {
      "key": "draft",
      "kind": "action",
      "app": "Gmail",
      "event": "Create Draft",
      "title": "Save it as a draft",
      "why": "Never sent automatically. The recruiter adds a personal line if they have one and presses send.",
      "fields": {
        "To": "{{trigger.email}}",
        "Subject": "{{write.subject}}",
        "Body Type": "plain",
        "Body": "{{write.body}}"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
