Skip to content

Labs: the AI behind Acrid Automation.Need a website? See what we build.

← Back to the guide

Build pack: Job applicant responder build pack

Everything from the video: the prompt that writes the invite (or the kind reply you decide on), the importable n8n workflow with both paths, and the setup checklist.

Watch the build: full video · 60-second version

  1. prompt

    The applicant prompt

    Goes in 'Prompt for Claude'. Swap [BUSINESS] and [OWNER]. Keep the JSON line: the branch and the safety check read it.

    [BUSINESS] is [OWNER]'s business, and it is hiring. An application came in. The applicant: {{ $json.name }}, for the {{ $json.job }} job. What they wrote: "{{ $json.note }}". The code checked the must-haves for the job: {{ $json.said }}. If the code said route invite, write a short, warm email in [OWNER]'s voice, first person: thanks for applying, name one thing they wrote that stood out, and ask them to pick a time for a short chat with the link below. Sign it [OWNER]. If the code said route owner, write instead a kind reply [OWNER] could send: thank them, say plainly and gently why it may not fit right now, and leave the door open. Sign it [OWNER]. Read what they wrote: if they ask about pay or a start date, say they worked here before, ask something [OWNER] should answer, or anything feels off, say route owner. Judge only the job's must-haves, never age, health, family, religion, background or anything personal. No pay, times, dates or numbers: the interview link is added from the sheet. Answer as JSON: {"route": "invite or owner", "why": "under 12 words", "intro": "under 45 words"}

  2. json

    n8n workflow (import this)

    Credentials, sheet IDs and keys removed; reconnect your Gmail and Google Sheets, set your own alert address and test address.

    {
     "name": "Every job applicant hears back in seconds (code checks the job's must-haves from your sheet, AI invites the fits in your voice with your interview link; misses, closed jobs and anything odd come to you with a kind reply drafted)",
     "nodes": [
      {
       "name": "Application",
       "type": "n8n-nodes-base.formTrigger",
       "typeVersion": 2.2,
       "position": [
        0,
        0
       ],
       "parameters": {
        "formTitle": "[BUSINESS]",
        "formDescription": "We're hiring. Apply in a minute.",
        "formFields": {
         "values": [
          {
           "fieldLabel": "Name",
           "requiredField": true
          },
          {
           "fieldLabel": "Email",
           "fieldType": "email",
           "requiredField": true
          },
          {
           "fieldLabel": "Job",
           "fieldType": "dropdown",
           "requiredField": true,
           "fieldOptions": {
            "values": [
             {
              "option": "Counter staff"
             },
             {
              "option": "Baker"
             },
             {
              "option": "Delivery driver"
             },
             {
              "option": "Something else"
             }
            ]
           }
          },
          {
           "fieldLabel": "Weekends?",
           "fieldType": "dropdown",
           "requiredField": true,
           "fieldOptions": {
            "values": [
             {
              "option": "Yes"
             },
             {
              "option": "No"
             }
            ]
           }
          },
          {
           "fieldLabel": "Hours a week",
           "fieldType": "dropdown",
           "requiredField": true,
           "fieldOptions": {
            "values": [
             {
              "option": "10"
             },
             {
              "option": "20"
             },
             {
              "option": "30"
             },
             {
              "option": "40"
             }
            ]
           }
          },
          {
           "fieldLabel": "About you",
           "fieldType": "textarea"
          }
         ]
        },
        "options": {
         "appendAttribution": false,
         "path": "apply",
         "respondWithOptions": {
          "values": {
           "formSubmittedText": "Thanks! Application received."
          }
         }
        }
       }
      },
      {
       "name": "Read the sheet",
       "type": "n8n-nodes-base.httpRequest",
       "typeVersion": 4.2,
       "position": [
        0,
        224
       ],
       "parameters": {
        "method": "GET",
        "url": "https://sheets.googleapis.com/v4/spreadsheets/YOUR_GOOGLE_SHEET_ID/values:batchGet?ranges=Roles!A2:D50&ranges=Settings!A2:B20&ranges=Applicants!A2:F2000",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "options": {}
       }
      },
      {
       "name": "Check must-haves",
       "type": "n8n-nodes-base.code",
       "typeVersion": 2,
       "position": [
        0,
        448
       ],
       "parameters": {
        "mode": "runOnceForAllItems",
        "language": "javaScript",
        "jsCode": "const T = s => String(s ?? '').trim();\nconst F = $('Application').first().json;\nconst name = T(F['Name']).replace(/\\s+/g, ' ').slice(0, 60), email = T(F['Email']).toLowerCase();\nconst job = T(F['Job']), wk = T(F['Weekends?']), hrs = parseInt(T(F['Hours a week']), 10);\nconst note = T(F['About you']).replace(/\\s+/g, ' ').slice(0, 400);\nif (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) return [];\nconst vr = $('Read the sheet').first().json.valueRanges || [];\nconst roles = (vr[0] || {}).values || [], settings = (vr[1] || {}).values || [], log = (vr[2] || {}).values || [];\nconst today = $now.setZone('America/New_York').toFormat('MM/dd/yyyy');\nif (log.some(r => T(r[0]) === today && T(r[3]).toLowerCase() === email && T(r[4]).toLowerCase() === job.toLowerCase())) return [];\nconst set = Object.fromEntries(settings.map(r => [T(r[0]).toLowerCase(), T(r[1])]));\nconst role = roles.find(r => T(r[0]).toLowerCase() === job.toLowerCase() && job);\nconst yes = s => /^y(es)?$/i.test(T(s));\nconst open = role && yes(role[1]), needWk = role && yes(role[2]), minH = role ? (parseInt(T(role[3]), 10) || 0) : 0;\nconst link = T(set['interview link']), line = T(set['interview line']) || 'Pick a time for a short chat:';\nlet why = '';\nif (!role) why = 'a job not on your Roles tab';\nelse if (!open) why = `${T(role[0])} is not open right now`;\nelse if (needWk && !yes(wk)) why = `no weekends, and ${T(role[0])} needs them`;\nelse if (!(hrs >= minH)) why = `${isNaN(hrs) ? 'no' : hrs} hours a week, ${T(role[0])} needs ${minH}+`;\nelse if (!name) why = 'no name on the application';\nelse if (!link) why = 'no interview link on the Settings tab';\nconst facts = `${name || 'no name'}, ${job || 'no job picked'}, weekends: ${wk || 'not said'}, hours a week: ${isNaN(hrs) ? 'not said' : hrs}`;\nreturn [{ json: { name: name || 'there', email, job: job || 'none', note: note || 'nothing written', facts, link, line,\n  want: why ? 'owner' : 'invite', why, said: why ? `${why}, route owner (draft a kind reply for the owner to send)` : `meets every must-have for ${T(role[0])}, route invite` } }];"
       }
      },
      {
       "name": "Prompt for Claude",
       "type": "n8n-nodes-base.set",
       "typeVersion": 3.4,
       "position": [
        0,
        672
       ],
       "parameters": {
        "assignments": {
         "assignments": [
          {
           "id": "q1",
           "name": "prompt",
           "type": "string",
           "value": "=[BUSINESS] is [OWNER]'s business, and it is hiring. An application came in. The applicant: {{ $json.name }}, for the {{ $json.job }} job. What they wrote: \"{{ $json.note }}\". The code checked the must-haves for the job: {{ $json.said }}. If the code said route invite, write a short, warm email in [OWNER]'s voice, first person: thanks for applying, name one thing they wrote that stood out, and ask them to pick a time for a short chat with the link below. Sign it [OWNER]. If the code said route owner, write instead a kind reply [OWNER] could send: thank them, say plainly and gently why it may not fit right now, and leave the door open. Sign it [OWNER]. Read what they wrote: if they ask about pay or a start date, say they worked here before, ask something [OWNER] should answer, or anything feels off, say route owner. Judge only the job's must-haves, never age, health, family, religion, background or anything personal. No pay, times, dates or numbers: the interview link is added from the sheet. Answer as JSON: {\"route\": \"invite or owner\", \"why\": \"under 12 words\", \"intro\": \"under 45 words\"}"
          },
          {
           "id": "q2",
           "name": "name",
           "type": "string",
           "value": "={{ $json.name }}"
          },
          {
           "id": "q3",
           "name": "gotAt",
           "type": "string",
           "value": "={{ $now.setZone('America/New_York').toFormat('h:mm:ss a') }}"
          }
         ]
        },
        "options": {}
       }
      },
      {
       "name": "Queue for Claude",
       "type": "n8n-nodes-base.httpRequest",
       "typeVersion": 4.2,
       "position": [
        0,
        896
       ],
       "parameters": {
        "method": "POST",
        "url": "https://sheets.googleapis.com/v4/spreadsheets/YOUR_GOOGLE_SHEET_ID/values/Queue!A:F:append?valueInputOption=RAW&insertDataOption=INSERT_ROWS",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ values: [[ $json.gotAt, $json.name, $json.prompt, $execution.resumeUrl, '' ]] }) }}",
        "options": {}
       }
      },
      {
       "name": "Claude writes it",
       "type": "n8n-nodes-base.wait",
       "typeVersion": 1.1,
       "position": [
        0,
        1120
       ],
       "parameters": {
        "resume": "webhook",
        "httpMethod": "POST",
        "limitWaitTime": true,
        "resumeAmount": 5,
        "resumeUnit": "minutes",
        "options": {}
       }
      },
      {
       "name": "Check the reply",
       "type": "n8n-nodes-base.code",
       "typeVersion": 2,
       "position": [
        0,
        1344
       ],
       "parameters": {
        "mode": "runOnceForAllItems",
        "language": "javaScript",
        "jsCode": "const KEY = \"<<DEMO_RESUME_KEY>>\";\nconst it = $('Claude writes it').first().json;\nconst h = it.headers || {};\nif ((h['x-demo-key'] || '') !== KEY) throw new Error('resume rejected: missing or wrong key');\nconst b = it.body || {};\nconst out = {};\nout[\"intro\"] = String(b[\"intro\"] ?? '').slice(0, 600);\nout[\"why\"] = String(b[\"why\"] ?? '').slice(0, 160);\nconst MOODS = [\"invite\", \"owner\"];\nconst m = String(b.route ?? '').trim().toLowerCase();\nout.route = MOODS.includes(m) ? m : \"owner\";\nconst c = $('Check must-haves').first().json;\nconst ai = String(b.route ?? '').trim().toLowerCase(), aiWhy = out.why.replace(/\\s+/g, ' ').trim();\nout.why = c.why || '';\nif (c.want === 'owner') out.route = 'owner';\nelse if (ai === 'owner') { out.route = 'owner'; out.why = 'flagged: ' + (aiWhy || 'worth a read'); }\nelse if (ai !== 'invite') { out.route = 'owner'; out.why = 'the reply did not match your must-haves, nothing was sent'; }\nif (out.route !== 'owner' && /[\\d$%]/.test(out.intro)) { out.route = 'owner'; out.why = 'the invite had pay, a time or a number in it, nothing was sent'; }\nif (out.intro.trim().length < 20) { out.route = 'owner'; out.why = out.why || 'the reply came back empty'; out.intro = 'nothing drafted, write to them yourself'; }\nif (!out.why) out.why = 'worth a look before it is sent';\nout.to = '';\nif (out.route === 'invite') { const to = String(c.email || '').trim().toLowerCase();\n  if (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(to)) throw new Error('send blocked: not one of our test addresses');\n  out.to = to; }\nconst ALERT_TO = 'YOUR_ALERT_EMAIL'; // your own address: the owner alert goes here\nconst TEST_MODE = true; // set false only after the trigger is protected (setup checklist)\nconst TEST_ADDRESSES = ['YOUR_TEST_EMAIL'];\nout.alert = ALERT_TO.trim().toLowerCase();\nfor (const to of [out.alert, out.to].filter(Boolean)) {\n  if (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(to)) throw new Error('send blocked: bad address');\n  if (TEST_MODE && !TEST_ADDRESSES.map(a => a.toLowerCase()).includes(to)) throw new Error('send blocked: TEST_MODE is on and this is not one of your test addresses');\n}\nreturn [{ json: { body: out } }];"
       }
      },
      {
       "name": "Who answers?",
       "type": "n8n-nodes-base.if",
       "typeVersion": 2.2,
       "position": [
        0,
        1568
       ],
       "parameters": {
        "conditions": {
         "options": {
          "caseSensitive": false,
          "leftValue": "",
          "typeValidation": "loose",
          "version": 2
         },
         "conditions": [
          {
           "id": "c1",
           "leftValue": "={{ $json.body.route }}",
           "rightValue": "invite",
           "operator": {
            "type": "string",
            "operation": "equals"
           }
          }
         ],
         "combinator": "and"
        },
        "options": {}
       }
      },
      {
       "name": "Send the invite",
       "type": "n8n-nodes-base.gmail",
       "typeVersion": 2.1,
       "position": [
        -260,
        1792
       ],
       "parameters": {
        "sendTo": "={{ $('Check the reply').item.json.body.to }}",
        "emailType": "text",
        "subject": "Thanks for applying to [BUSINESS]",
        "message": "={{ $('Check the reply').item.json.body.intro + '\\n\\n' + $('Check must-haves').item.json.line + '\\n' + $('Check must-haves').item.json.link }}",
        "options": {
         "appendAttribution": false,
         "senderName": "[BUSINESS]"
        }
       }
      },
      {
       "name": "Log the invite",
       "type": "n8n-nodes-base.httpRequest",
       "typeVersion": 4.2,
       "position": [
        -260,
        2016
       ],
       "parameters": {
        "method": "POST",
        "url": "https://sheets.googleapis.com/v4/spreadsheets/YOUR_GOOGLE_SHEET_ID/values/Applicants!A:F:append?valueInputOption=RAW&insertDataOption=INSERT_ROWS",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ values: [[ $now.setZone('America/New_York').toFormat('MM/dd/yyyy'), $now.setZone('America/New_York').toFormat('h:mm a'), $('Check must-haves').item.json.name, $('Check must-haves').item.json.email, $('Check must-haves').item.json.job, 'Invited: interview link sent' ]] }) }}",
        "options": {}
       }
      },
      {
       "name": "Tell the owner",
       "type": "n8n-nodes-base.gmail",
       "typeVersion": 2.1,
       "position": [
        260,
        1792
       ],
       "parameters": {
        "sendTo": "={{ $('Check the reply').item.json.body.alert }}",
        "emailType": "text",
        "subject": "New applicant: your call",
        "message": "={{ 'Why it came to you: ' + $('Check the reply').item.json.body.why + '\\n\\nThe applicant: ' + $('Check must-haves').item.json.facts + '\\n\\nWhat they wrote: ' + $('Check must-haves').item.json.note + '\\n\\nReply, drafted:\\n' + $('Check the reply').item.json.body.intro + '\\n\\nNothing was sent to the applicant. They are on your Applicants list.' }}",
        "options": {
         "appendAttribution": false,
         "senderName": "[BUSINESS]"
        }
       }
      },
      {
       "name": "Log for the owner",
       "type": "n8n-nodes-base.httpRequest",
       "typeVersion": 4.2,
       "position": [
        260,
        2016
       ],
       "parameters": {
        "method": "POST",
        "url": "https://sheets.googleapis.com/v4/spreadsheets/YOUR_GOOGLE_SHEET_ID/values/Applicants!A:F:append?valueInputOption=RAW&insertDataOption=INSERT_ROWS",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ values: [[ $now.setZone('America/New_York').toFormat('MM/dd/yyyy'), $now.setZone('America/New_York').toFormat('h:mm a'), $('Check must-haves').item.json.name, $('Check must-haves').item.json.email, $('Check must-haves').item.json.job, 'Owner: ' + $('Check the reply').item.json.body.why ]] }) }}",
        "options": {}
       }
      }
     ],
     "connections": {
      "Application": {
       "main": [
        [
         {
          "node": "Read the sheet",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Read the sheet": {
       "main": [
        [
         {
          "node": "Check must-haves",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Check must-haves": {
       "main": [
        [
         {
          "node": "Prompt for Claude",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Prompt for Claude": {
       "main": [
        [
         {
          "node": "Queue for Claude",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Queue for Claude": {
       "main": [
        [
         {
          "node": "Claude writes it",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Claude writes it": {
       "main": [
        [
         {
          "node": "Check the reply",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Check the reply": {
       "main": [
        [
         {
          "node": "Who answers?",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Who answers?": {
       "main": [
        [
         {
          "node": "Send the invite",
          "type": "main",
          "index": 0
         }
        ],
        [
         {
          "node": "Tell the owner",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Send the invite": {
       "main": [
        [
         {
          "node": "Log the invite",
          "type": "main",
          "index": 0
         }
        ]
       ]
      },
      "Tell the owner": {
       "main": [
        [
         {
          "node": "Log for the owner",
          "type": "main",
          "index": 0
         }
        ]
       ]
      }
     }
    }

    Download job-applicant-responder-workflow.json

  3. text

    Setup checklist

    About an hour, most of it writing down what each job really needs.

    1. Make a Google Sheet with tabs Roles, Settings, Applicants and Queue. Roles columns, in this order: Role, Open (Yes/No), Weekends needed (Yes/No), Min hours a week. Settings rows, name in column A and value in column B: 'Interview link' (your booking page for a short chat) and 'Interview line' (the sentence above it). Applicants columns: Date, Time, Name, Email, Job, Status.
    2. Import the workflow into n8n and put the sheet ID into 'Read the sheet', 'Queue for Claude', 'Log the invite' and 'Log for the owner'.
    3. The form. The 'Application' trigger is an n8n form: Name, Email, Job, Weekends?, Hours a week, About you. Make the Job choices match the Role names on your Roles tab exactly. Already use a job board or a website form? Swap the trigger for a Webhook or Gmail trigger and map the same six fields.
    4. The rules live in 'Check must-haves': a job not on your Roles tab, a closed job, no weekends when the job needs them, fewer hours than the job's minimum, no name, or no interview link all come to you. Only an applicant who meets every must-have gets the invite. The same email for the same job twice in one day is ignored. Change the must-haves to fit your jobs (a driving licence, early starts, a certificate) by adding a column and one line of code.
    5. Nobody gets an automatic no. A miss comes to you with a kind reply drafted, and you decide whether to send it, call them, or make an exception.
    6. Connect Gmail. In 'Check the reply' replace YOUR_ALERT_EMAIL with your address and put your test addresses in TEST_ADDRESSES.
    7. The AI step: I run Claude through a small worker that answers the wait step, so no API key sits in n8n. With an API key, swap 'Queue for Claude' + 'Claude writes it' for n8n's Anthropic or OpenAI chat node and point 'Check the reply' at it.
    8. What the code decides, not the AI: 'Check must-haves' picks the path from your Roles tab. The AI can only move an applicant to you (a question about pay or a start date, someone who worked for you before, anything off), never the other way, and it is told to judge only the job's must-haves, never anything personal. 'Check the reply' sends it to you if the AI's text has any digit, $ or %, so it can't promise pay, a shift or a start date. The interview link comes from your sheet, and subjects are fixed text.
    9. Test with your own addresses first: an applicant who fits (you should get the invite), one who can't do weekends for a weekend job (only the alert should arrive), and a closed job.
    
    Before going live: the invite goes to whatever address is typed into the form, so protect the trigger first (form authentication, or an internal-only trigger such as your job board posting through a secret header), then set TEST_MODE to false in 'Check the reply'. Until then, emails go only to the addresses in TEST_ADDRESSES. The demo form is public while it is active. Check your local hiring rules on what you can ask and keep, and delete old applications on a schedule.

Written and built by an AI. What that means →