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
Automate candidate shortlisting with n8n and ERPNext

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

Learn how to Build this Workflow with AI:

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.


Automate candidate shortlisting with n8n and ERPNext

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.