Automating Candidate Shortlisting with n8n & ERPNext Integration

This workflow automates candidate shortlisting by integrating ERPNext with n8n and AI agents, eliminating manual resume reviews. It uses smart AI scoring to accept or reject applicants, saving hours in recruitment processes.
erpNext
agent
httpRequest
+9
Workflow Identifier: 1059
NODES in Use: Sticky Note, Code, Set, ERPNext, If, Switch, HTTP Request, Extract From File, Langchain Agent, Microsoft Outlook, WhatsApp, Webhook

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow watches new job applications in ERPNext. It checks if each application has a resume and relates to a job opening. If yes, it downloads the PDF resume, changes it to text, and uses Google Gemini AI to score the candidate’s fit. Then, it updates the candidate’s record in ERPNext and sends notifications by email or WhatsApp based on the score.

This stops the manual work of sorting resumes and speeds up hiring decisions. It helps avoid mistakes and keeps candidates informed on time.


Who Should Use This Workflow

This is good for HR or recruitment teams using ERPNext who want less manual work. Anyone who wants quick and fair candidate review can try this. Basic n8n knowledge and accounts with ERPNext, Google Gemini AI, Outlook, and WhatsApp Business API are needed.


Tools and Services Used

  • ERPNext API: Work with Job Applicant and Job Opening data.
  • n8n Automation Platform: Run and manage the workflow.
  • Google Gemini Langchain: AI scoring and analysis of resumes.
  • Microsoft Outlook: Send email notifications.
  • WhatsApp Business Cloud API: Send WhatsApp messages.

Beginner Step-by-Step: How to Use This Workflow in n8n

Download and Import

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor where you want to add the workflow.
  3. Use “Import from File” option and select the downloaded workflow file.

Configure Credentials and Settings

  1. Add credentials for ERPNext API, Google Gemini API, Microsoft Outlook, and WhatsApp Business Cloud if not already saved.
  2. Update any IDs, email addresses, WhatsApp phone numbers, or ERPNext document names inside nodes if default ones do not match your setup.
  3. Check the Code Node named Convert to Fields contains the correct regex and fields as explained.
  4. Ensure the webhook URL is pinned and correctly set in ERPNext Webhook settings for new job applications.

Test and Activate

  1. Run one test by creating a sample application in ERPNext that triggers the webhook.
  2. Watch n8n for successful execution and results updating ERPNext and sending notifications.
  3. Fix any errors shown like authorization or missing fields.
  4. When test works fine, activate the workflow to run always for live data.
  5. Optionally, consider self-host n8n for better privacy and control.

Inputs, Processing, and Outputs

Inputs

  • New job applicant data via ERPNext webhook.
  • Attached resume file link (PDF only supported).
  • Job opening reference from applicant data.

Processing Steps

  • Check if resume link is valid and job opening is specified.
  • Download PDF resume and extract text.
  • Fetch job description from ERPNext.
  • Send resume text and job description to Google Gemini AI for scoring.
  • Extract structured AI fields using JavaScript code node.
  • Update candidate record in ERPNext with AI analysis.
  • Decide candidate status based on AI score threshold (80).
  • Send notification to candidate by email or WhatsApp.

Outputs

  • ERPNext job applicant records updated with fit level, score, rating, and justification.
  • Candidate status changed to Accepted, Rejected, or Hold automatically.
  • Candidate receives communication about application outcome on email or WhatsApp.

Edge Cases and Error Handling

  • No resume or invalid link causes automatic rejection or hold.
  • Unsupported file types skip conversion and reject application.
  • Download failures from inaccessible resume URLs trigger errors.
  • AI output parsing fails if format changes, needing code update.
  • ERPNext API errors mean rechecking credentials and permissions.
  • Notification sending fails if Outlook or WhatsApp credentials are invalid.

Customization Ideas

  • Add support for DOC or JPG resumes with OCR nodes.
  • Change AI score threshold in the decision node to fit your policy.
  • Add SMS or Slack notifications in addition to current options.
  • Adjust AI prompt in Google Gemini node for specific roles or languages.
  • Add more fields mapping or candidate profile enrichment from AI.

Code Example to Parse AI Output

This JavaScript code extracts four fields from AI text output to store in ERPNext:

// Input text from the AI output
const textOutput = $json.output || '';

function extractFields(text) {
  const fields = {};
  const fitLevelMatch = text.match(/FitLevel:\s*(.+)\n/);
  const scoreMatch = text.match(/Score:\s*(\d+)\n/);
  const ratingMatch = text.match(/Rating:\s*(\d+)\n/);
  const justificationMatch = text.match(/Justification:\s*([\s\S]+)/);
  fields.fit_level = fitLevelMatch ? fitLevelMatch[1].trim() : null;
  fields.score = scoreMatch ? scoreMatch[1].trim() : null;
  fields.applicant_rating = ratingMatch ? ratingMatch[1].trim() : null;
  fields.justification_by_ai = justificationMatch ? justificationMatch[1].trim() : null;
  return fields;
}

return { json: extractFields(textOutput) };

Summary

✓ Saves hours by automating resume screening.

✓ Improves candidate evaluation speed and fairness.

✓ Updates ERPNext records automatically with AI scores.

✓ Sends timely notifications to candidates.

✓ Easy to configure and extend for more formats and notifications.


Frequently Asked Questions

Download the workflow file using the Download button. In the n8n editor, use Import from File and select the downloaded workflow. Configure credentials and settings, then test and activate.
This workflow uses Google Gemini Langchain API for AI scoring of resumes against job descriptions.
The workflow marks the applicant as rejected or put on hold automatically if there is no valid resume link.
Notifications are sent by Microsoft Outlook email or WhatsApp Business Cloud API based on the updated candidate status.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free