{
 "id": "jobapplicantscre",
 "name": "AutomateRecipes \u2013 job-applicant-screen",
 "nodes": [
  {
   "parameters": {},
   "name": "Manual Trigger",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "id": "b78dcaa3-8e07-47a9-b8e5-5c6c097e774a"
  },
  {
   "parameters": {
    "jsCode": "return [{json:{name:'Layla',email:'layla@test.test',cvText:'3 years barista, food safety certificate, English/Arabic'}}];"
   },
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "name": "S1",
   "position": [
    220,
    0
   ],
   "id": "b0880b7b-d9b4-41d7-910e-3edae1b57513"
  },
  {
   "parameters": {
    "jsCode": "return $input.all().map(i=>({json:{...i.json,service:'openai/v1/chat/completions',payload:{model:'gpt-4o-mini',messages:[{role:'user',content:'Summarize experience vs requirements (barista, food safety): '+i.json.cvText}]}}}));"
   },
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "name": "AIPREP",
   "position": [
    440,
    0
   ],
   "id": "085a3a48-33a2-4b22-9c83-6e523bf9fc6b"
  },
  {
   "parameters": {
    "method": "POST",
    "url": "=http://127.0.0.1:9000/{{ $json.service }}",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json.payload) }}",
    "options": {}
   },
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "name": "S3 POST mock (AI)",
   "position": [
    660,
    0
   ],
   "id": "5eab1a25-97b0-4c52-8ff7-6bfcc725149c"
  },
  {
   "parameters": {
    "jsCode": "const src=$('AIPREP').all();return $input.all().map((r,i)=>({json:{...src[i].json,ai:r.json.choices[0].message.content}}));"
   },
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "name": "S4",
   "position": [
    880,
    0
   ],
   "id": "da34af41-4a1e-4382-809a-3b9ae20cef90"
  },
  {
   "parameters": {
    "jsCode": "return $input.all().map(i=>({json:{service:'sheets/append',payload:{name:i.json.name,email:i.json.email,summary:i.json.ai}}}));"
   },
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "name": "S5",
   "position": [
    1100,
    0
   ],
   "id": "a449c7b9-381d-4266-9549-3a3c16b97a6d"
  },
  {
   "parameters": {
    "method": "POST",
    "url": "=http://127.0.0.1:9000/{{ $json.service }}",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json.payload) }}",
    "options": {}
   },
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "name": "S6 POST mock (send)",
   "position": [
    1320,
    0
   ],
   "id": "99b9d50c-61c1-4dfa-84a2-9f1a0fbe649f"
  }
 ],
 "connections": {
  "Manual Trigger": {
   "main": [
    [
     {
      "node": "S1",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S1": {
   "main": [
    [
     {
      "node": "AIPREP",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "AIPREP": {
   "main": [
    [
     {
      "node": "S3 POST mock (AI)",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S3 POST mock (AI)": {
   "main": [
    [
     {
      "node": "S4",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S4": {
   "main": [
    [
     {
      "node": "S5",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "S5": {
   "main": [
    [
     {
      "node": "S6 POST mock (send)",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {},
 "active": false,
 "pinData": {},
 "meta": {
  "note": "Tested on n8n 1.70.3 with local mocks for: n8n Form Trigger + Extract from File (CV text supplied directly), OpenAI, Google Sheets. Replace 'POST mock'/'GET mock' HTTP nodes with the real app nodes + credentials before production."
 }
}