{
  "schema_version": "1.0.0",
  "id": "resume-email-score",
  "title": "Parse a resume email and score it",
  "category": "hr-recruiting",
  "difficulty": "advanced",
  "featured": true,
  "description": "Pull the candidate details out of an application email, score the resume against the role rubric in a Python Code step, log it, and flag interview-ready candidates.",
  "tags": [
    "hr",
    "recruiting",
    "resume-screening",
    "python",
    "gmail",
    "google-sheets"
  ],
  "apps": [
    "Gmail",
    "AI by Zapier",
    "Code by Zapier",
    "Google Sheets",
    "Filter by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 5 steps after the trigger",
      "Filter by Zapier",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 3,
    "max": 4
  },
  "trigger": {
    "app": "Gmail",
    "event": "New Labeled Email",
    "kind": "polling",
    "title": "New application under Careers",
    "why": "Fires for each email under the Careers label. A Gmail filter on your careers address applies it.",
    "config": {
      "Label": "Careers"
    },
    "outputs": [
      "message_id",
      "thread_id",
      "from_email",
      "from_name",
      "to",
      "subject",
      "date",
      "body_plain",
      "snippet",
      "labels",
      "attachment_count",
      "attachment_names"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "extract",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Pull the candidate and resume text",
      "why": "Returns the candidate's name, email, the role they applied for, and the resume text as plain text. Applicants who paste their CV into the email or attach a text-based document come through; a scanned image does not.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "This is a job application email. Return candidate_name, candidate_email (the applicant's own address, not a job board relay if a personal one is given), role (the job title they applied for), and resume_text: the full resume content as plain text, including job titles, dates, and skills. If no resume content is present in the email text, return resume_text empty. Do not summarise or rewrite the resume.",
        "Input data": "From: {{trigger.from_name}} <{{trigger.from_email}}>\nSubject: {{trigger.subject}}\nAttachments: {{trigger.attachment_names}}\n\n{{trigger.body_plain}}",
        "Output fields": "candidate_name, candidate_email, role, resume_text"
      },
      "outputs": [
        "candidate_name",
        "candidate_email",
        "role",
        "resume_text"
      ]
    },
    {
      "key": "score",
      "kind": "code",
      "app": "Code by Zapier",
      "event": "Run Python",
      "title": "Score the resume against the rubric",
      "why": "A transparent rubric in Python: 60 points for required skills, 20 for nice-to-haves, 20 for years of experience. Synonyms such as k8s and Kubernetes count, and partial words such as \"Javanese\" do not match \"Java\".",
      "code": {
        "language": "python",
        "module": "score_cv",
        "file": "code/score_cv.py"
      },
      "input_data": {
        "resume_text": "{{extract.resume_text}}",
        "required_skills": "Zapier, HubSpot, Google Sheets",
        "nice_to_have": "JavaScript, Python, Make",
        "min_years": "3",
        "as_of_year": "2026"
      },
      "outputs": [
        "score",
        "recommendation",
        "matched_required",
        "missing_required",
        "matched_nice",
        "years_experience"
      ]
    },
    {
      "key": "log",
      "kind": "action",
      "app": "Google Sheets",
      "event": "Create Spreadsheet Row",
      "title": "Log the candidate",
      "why": "Every applicant is logged with their score and the matched and missing skills, so a human can check the rubric's work.",
      "fields": {
        "Drive": "My Google Drive",
        "Spreadsheet": "Hiring",
        "Worksheet": "Automation specialist",
        "Columns": {
          "received_at": "{{trigger.date}}",
          "name": "{{extract.candidate_name}}",
          "email": "{{extract.candidate_email}}",
          "role": "{{extract.role}}",
          "score": "{{score.score}}",
          "recommendation": "{{score.recommendation}}",
          "matched_required": "{{score.matched_required}}",
          "missing_required": "{{score.missing_required}}",
          "matched_nice": "{{score.matched_nice}}",
          "years": "{{score.years_experience}}",
          "email_link": "https://mail.google.com/mail/u/0/#all/{{trigger.message_id}}"
        }
      },
      "outputs": [
        "id",
        "row_number"
      ]
    },
    {
      "key": "strong",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only interview-ready candidates",
      "why": "Most applicants stop here. \"interview\" means every required skill matched and the score is 75 or more.",
      "conditions": [
        [
          {
            "field": "{{score.recommendation}}",
            "operator": "(Text) Exactly matches",
            "value": "interview"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "flag",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Flag them in #hiring",
      "why": "Strong candidates get a human reply the same day.",
      "fields": {
        "Channel": "#hiring",
        "Message Text": ":star: Strong applicant for {{extract.role}}: *{{extract.candidate_name}}*, score {{score.score}}, about {{score.years_experience}} years. Matched: {{score.matched_required}}; bonus: {{score.matched_nice}}. Row {{log.row_number}}.",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    }
  ]
}
