Skip to main content

Automate Candidate Screening with LlamaIndex & GPT for Email Responses

Workflow preview

Workflow preview
100%
Automate Candidate Screening with LlamaIndex & GPT for Email Responses preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow — HRMate — streamlines your entire recruitment process by automatically parsing incoming job applications, evaluating candidate fit using AI , and sending personalized acceptance ...

Best for

  • HR automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.code, n8n-nodes-base.noop, n8n-nodes-base.gmailtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Khairul Muhtadin.

Original n8n.io source

1.1 Workflow description

Title
Automate Candidate Screening with LlamaIndex & GPT for Email Responses
Workflow name
Automate Candidate Screening with LlamaIndex & GPT for Email Responses

This n8n workflow — HRMate — streamlines your entire recruitment process by automatically parsing incoming job applications, evaluating candidate fit using AI, and sending personalized acceptance or rejection emails — all without manual intervention.

It triggers on every new email application, extracts candidate info and attachments (PDF resumes), leverages** LlamaIndex AI** for content parsing, then scores candidates against job requirements via OpenAI. Finally, it sends tailored emails and updates candidate status automatically.

💡 Why Use HRMate?

  • Save hours of manual CV screening and email replies
  • Never ghost applicants again — automatic, polite rejections with AI-generated growth suggestions
  • Increase hiring accuracy with AI-assisted candidate scoring
  • Centralize communication with auto-acceptance invites including calendly scheduling links
  • Fully customizable and scalable for multiple job openings

⚡ Who Is This For?

  • HR teams overwhelmed with incoming applications
  • Small businesses wanting professional recruitment automation
  • Recruiters seeking data-driven candidate assessments
  • Companies aiming to improve applicant experience and speed

❓ What Problem Does It Solve?

Screening candidates manually is slow, inconsistent, and often leads to candidates being ignored (ghosted). HRMate Fix automates parsing, evaluation, and personalized email communication, drastically reducing workload and improving candidate engagement.

🔧 What This Workflow Does

  • Trigger: On every new incoming email application via Gmail Trigger (polls every minute)

  • 📎 Attachment Check: Detects and uploads PDF resumes to LlamaIndex AI for parsing

  • 🔍 Parsing: Waits and retrieves clean markdown text of candidate documents

  • 🤖 AI Evaluation: Matches candidate profile against job criteria using GPT-4o-mini, scoring fit from 1 to 100

  • 💌 Email Communication:

    • If score ≥ 80 → sends acceptance email with calendly interview scheduling link
    • If score < 80 → sends rejection email with professional, motivational feedback generated by AI
  • 🗂 Status Update: Marks candidate as accepted/rejected and optionally updates Google Sheets

🔐 Setup Instructions

  1. Import .json workflow into n8n

  2. Add credentials:

    • Gmail OAuth2 (trigger & email sending)
    • LlamaIndex API key (for PDF parsing)
    • OpenAI API key (GPT-4o-mini model for evaluation)
  3. Customize job criteria in "Set Job Criteria Text" node

  4. Update email templates and calendly links as needed

  5. Test workflow with real incoming applications

🧩 Pre-Requirements

  • n8n instance (self-hosted or cloud)
  • Gmail account with API credentials
  • LlamaIndex API access
  • OpenAI API key
  • Google Sheets (optional, for status tracking)

🛠️ Customize It Further

  • Add new job positions by replicating job criteria and subject filters
  • Modify evaluation criteria or prompts in OpenAI node
  • Integrate Slack or other notification nodes
  • Adjust email content and branding for acceptance/rejection messages

🧠 Nodes Used

  • Gmail Trigger
  • HTTP Request (LlamaIndex API)
  • Wait node (poll parsing status)
  • Code node (markdown cleaning)
  • OpenAI GPT-4o-mini node (candidate evaluation)
  • IF nodes (conditional email flow)
  • Gmail node (send acceptance/rejection emails)
  • Set nodes (data preparation & status marking)
  • Google Sheets (optional update)
  • Sticky Notes for documentation

📞 Support

Made by: Khmuhtadin
Tag: youtube, summarizer, telegram, openai
Category: AI Automation, Video Tools Need a custom? Contact Me

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - ☁️ Upload PDF to LlamaIndex

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - ⏳ Check Parsing Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - 🔁 Condition: Was Parsing Successful?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 4 - ⏱ Delay Before Recheck

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - 📥 Get Parsed Markdown Result

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - 🧼 Clean Markdown Text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 8 - Gmail Trigger - Incoming Applications

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1

Block 9 - Set Job Criteria Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Extract Email Body Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Check Subject Validity

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Check If PDF Attachment Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 13 - Prepare Data for OpenAI

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Evaluate Candidate with OpenAI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - Final Decision Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 16 - Send Acceptance

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 1

Block 17 - Send Rejection

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 1

Block 18 - Mark as Accepted

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 19 - Mark as Rejected

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 20 - Update Candidate Status on Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 1

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate Candidate Screening with LlamaIndex & GPT for Email Responses
Complexity advanced
Nodes 30
Categories HR, AI Summarization
Author Khairul Muhtadin
Published 06 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4727/4727.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate Candidate Screening with LlamaIndex & GPT for Email Responses do?

This n8n workflow — HRMate — streamlines your entire recruitment process by automatically parsing incoming job applications, evaluating candidate fit using AI , and sending personalized acceptance ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR, AI Summarization use case.