{"active":false,"connections":{"Append to Sheet":{"main":[[{"index":0,"node":"High Score?","type":"main"}]]},"Download Resume":{"main":[[{"index":0,"node":"Parse Resume with AI","type":"main"}]]},"Gmail Trigger":{"main":[[{"index":0,"node":"Download Resume","type":"main"}]]},"High Score?":{"main":[[{"index":0,"node":"Create Interview Draft","type":"main"}],[]]},"Job Description":{"main":[[{"index":0,"node":"Score Candidate","type":"main"}]]},"Normalize Result":{"main":[[{"index":0,"node":"Append to Sheet","type":"main"}]]},"Parse Resume with AI":{"main":[[{"index":0,"node":"Job Description","type":"main"}]]},"Score Candidate":{"main":[[{"index":0,"node":"Normalize Result","type":"main"}]]}},"meta":{"instanceId":"","templateCredsSetupCompleted":false},"name":"AI Applicant & Resume Screening","nodes":[{"id":"b1c2d3e4-0001-4a5b-8c9d-111111111111","name":"Sticky Note","parameters":{"color":4,"content":"## AI Applicant & Resume Screening\n\n**Setup:**\n1. Create Gmail, OpenAI and Google Sheets credentials in n8n and select them in each node.\n2. In *Gmail Trigger*, add a filter so it only fires on applications (e.g. subject contains \"application\").\n3. In *Job Description*, paste your full job posting into the `jobDescription` value.\n4. Point *Append to Sheet* at your sheet (tab with columns: name, email, score, summary, strengths, risks).\n5. Activate. Every applicant is scored 0-100 and ranked in the sheet.\n\n**Important:** *Create Interview Draft* only saves a Gmail DRAFT for scores >= 80. A human reviews and sends every invite — nothing is emailed automatically.","height":340,"width":460},"position":[160,-120],"type":"n8n-nodes-base.stickyNote","typeVersion":1},{"credentials":{"gmailOAuth2":{"id":"","name":"Gmail OAuth2 API"}},"id":"b1c2d3e4-0002-4a5b-8c9d-222222222222","name":"Gmail Trigger","parameters":{"options":{},"resource":"message"},"position":[240,300],"type":"n8n-nodes-base.gmailTrigger","typeVersion":1.2,"webhookId":"cortexflow-resume-screening"},{"credentials":{"gmailOAuth2":{"id":"","name":"Gmail OAuth2 API"}},"id":"b1c2d3e4-0003-4a5b-8c9d-333333333333","name":"Download Resume","parameters":{"messageId":"={{ $json.id }}","operation":"download","options":{},"resource":"messageAttachment"},"position":[480,300],"type":"n8n-nodes-base.gmail","typeVersion":2.1},{"credentials":{"openAiApi":{"id":"","name":"OpenAI API"}},"id":"b1c2d3e4-0004-4a5b-8c9d-444444444444","name":"Parse Resume with AI","parameters":{"messages":{"options":{},"values":[{"content":"You are a resume parser. Read the resume text and return ONLY valid JSON with these keys: name, email, skills (array of strings), years_experience (number), summary (2-3 sentences). No markdown, no commentary, no extra keys.","role":"system"},{"content":"={{ $json.snippet }}","role":"user"}]},"model":{"__rl":true,"cachedResultName":"gpt-4o-mini","mode":"list","value":"gpt-4o-mini"},"options":{}},"position":[720,300],"type":"n8n-nodes-base.openAi","typeVersion":2.1},{"id":"b1c2d3e4-0005-4a5b-8c9d-555555555555","name":"Job Description","parameters":{"assignments":{"assignments":[{"id":"jd-1","name":"jobDescription","type":"string","value":"PASTE YOUR FULL JOB DESCRIPTION HERE — replace this text with the complete job posting: role title, required skills, years of experience, and nice-to-haves. Every candidate is scored against this text."}]},"includeOtherFields":true,"options":{}},"position":[960,300],"type":"n8n-nodes-base.set","typeVersion":3.4},{"credentials":{"openAiApi":{"id":"","name":"OpenAI API"}},"id":"b1c2d3e4-0006-4a5b-8c9d-666666666666","name":"Score Candidate","parameters":{"messages":{"options":{},"values":[{"content":"You are a hiring screener. Compare the resume data against the job description and return ONLY valid JSON with these keys: name, email, score (integer 0-100 fit for the role), summary (one sentence), strengths (array of short strings), risks (array of short strings). No markdown, no commentary.","role":"system"},{"content":"=Resume data:\n{{ JSON.stringify($json) }}\n\nJob description:\n{{ $json.jobDescription }}","role":"user"}]},"model":{"__rl":true,"cachedResultName":"gpt-4o-mini","mode":"list","value":"gpt-4o-mini"},"options":{}},"position":[1200,300],"type":"n8n-nodes-base.openAi","typeVersion":2.1},{"id":"b1c2d3e4-0007-4a5b-8c9d-777777777777","name":"Normalize Result","parameters":{"assignments":{"assignments":[{"id":"n-1","name":"name","type":"string","value":"={{ $json.name }}"},{"id":"n-2","name":"email","type":"string","value":"={{ $json.email }}"},{"id":"n-3","name":"score","type":"number","value":"={{ $json.score }}"},{"id":"n-4","name":"summary","type":"string","value":"={{ $json.summary }}"},{"id":"n-5","name":"strengths","type":"string","value":"={{ $json.strengths }}"},{"id":"n-6","name":"risks","type":"string","value":"={{ $json.risks }}"}]},"includeOtherFields":false,"options":{}},"position":[1440,300],"type":"n8n-nodes-base.set","typeVersion":3.4},{"credentials":{"googleSheetsOAuth2Api":{"id":"","name":"Google Sheets OAuth2 API"}},"id":"b1c2d3e4-0008-4a5b-8c9d-888888888888","name":"Append to Sheet","parameters":{"columns":{"mappingMode":"defineBelow","matchingColumns":[],"schema":[],"value":{"email":"={{ $json.email }}","name":"={{ $json.name }}","risks":"={{ $json.risks }}","score":"={{ $json.score }}","strengths":"={{ $json.strengths }}","summary":"={{ $json.summary }}"}},"documentId":{"__rl":true,"cachedResultName":"Resume Screening","mode":"list","value":""},"operation":"append","options":{},"resource":"sheetWithinDocument","sheetName":{"__rl":true,"cachedResultName":"Candidates","mode":"list","value":""}},"position":[1680,300],"type":"n8n-nodes-base.googleSheets","typeVersion":4.5},{"id":"b1c2d3e4-0009-4a5b-8c9d-999999999999","name":"High Score?","parameters":{"conditions":{"combinator":"and","conditions":[{"id":"550e8400-e29b-41d4-a716-446655440001","leftValue":"={{ $json.score }}","operator":{"name":"filter.operator.number.largerEquals","operation":"largerEquals","type":"number"},"rightValue":80}],"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose"}},"looseTypeValidation":true,"options":{}},"position":[1920,300],"type":"n8n-nodes-base.if","typeVersion":2.2},{"credentials":{"gmailOAuth2":{"id":"","name":"Gmail OAuth2 API"}},"id":"b1c2d3e4-0010-4a5b-8c9d-101010101010","name":"Create Interview Draft","parameters":{"emailType":"text","message":"=Hi {{ $json.name }},\n\nThank you for applying! We would like to invite you to an interview.\n\nYour screening score: {{ $json.score }}/100.\n\nPlease reply with 2-3 times that work for you this week.\n\nBest regards","operation":"create","options":{},"resource":"draft","subject":"=Interview invitation — {{ $json.name }}"},"position":[2160,300],"type":"n8n-nodes-base.gmail","typeVersion":2.1}],"pinData":{},"settings":{"executionOrder":"v1"},"tags":[{"name":"cortexflow-template"}],"versionId":"cortexflow-ai-resume-screening-v1"}