AI-Powered CV Matcher and Optimization Tool - n8n Workflow

Use this advanced n8n workflow to compare a candidate's CV (PDF) against any online job posting using the Gemini AI model. Get structured fit analysis and optimization tips via email. Easy-to-deploy n8n templates.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Job Seekers: Users who want objective, AI-driven feedback on how well their CV matches a specific job description before applying.
Recruiters and Hiring Managers: Professionals looking for a quick, automated pre-screening tool to score applicant fit.
n8n Automation Specialists: Developers seeking advanced n8n templates integrating webhooks, file handling, web scraping, and generative AI.
Technical Writers: Anyone needing complex, multi-step n8n workflow examples.

Overview

Manual comparison of a candidate’s CV against lengthy job descriptions is tedious and often subjective. This n8n workflow solves this by providing a fully automated, AI-driven pipeline for objective fit assessment. The system starts with an easily embeddable submission form handled by an n8n trigger. Once submitted, the automation extracts the text from the CV (PDF), scrapes the job posting URL, and feeds both documents into a Gemini AI agent. The customized prompt guides the AI to generate a strict, structured analysis, including a fit score, critical gaps, and clear optimization advice. This sophisticated n8n workflow dramatically speeds up the pre-screening process, offering actionable insights instantly.

How it Works

This powerful n8n workflow operates in several critical phases:


  1. Input Trigger: The process begins with the Webhook - CV Optimizer Form n8n trigger node. This node serves a custom HTML form where the user uploads their CV (PDF), inputs the job posting URL, and provides their email address. A response is immediately sent back to the user while the rest of the n8n workflow executes asynchronously.

  2. File and Data Preparation: The Extract CV Text (PDF) n8n node processes the uploaded binary data, extracting raw text from the PDF file. Simultaneously, the Fetch Job Posting HTTP Request node scrapes the HTML content from the provided job URL.

  3. Cleaning and Merging: The Job Text Cleaner n8n node uses custom JavaScript code to sanitize the scraped HTML, removing unnecessary scripts and tags to produce clean jobtext. The Merge CV + Job Data node then combines the CV text and the job text into a single data item for the AI.

  4. Core AI Analysis: The AI CV Analyzer n8n node (LangChain Agent) leverages the Gemini Model - Primary to perform the complex analysis. It uses a detailed system prompt and a strict output schema to compare the CV against the job requirements, assigning a numerical fitscore and a textual recommendation.

  5. Output Validation: The Parse AI JSON Output n8n node ensures the AI's response strictly adheres to the required JSON structure, guaranteeing data reliability.

  6. Final Report: The final step uses the Send report n8n node (Gmail integration) to compile the structured data (title, score, gaps, advice) into a professional, personalized email report and deliver it to the user's submitted email address. This completes the full n8n workflow cycle.

Installation Guide

To deploy this analysis n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and import it directly into your n8n instance via the Workflows menu.

  2. Webhook Setup: Activate the Webhook - CV Optimizer Form n8n trigger node. Copy the generated Webhook URL and update the fetch call URL within the HTML code in the Webhook Response - HTML Form node. This is crucial for the form to submit data correctly to this n8n trigger.

  3. AI Credentials: Configure a Google Gemini/PaLM credential and assign it to the Gemini Model - Primary node and the secondary Gemini Model node if used (though only one is active for the main analysis here). This allows the n8n node to access the LLM.

  4. Email Credentials: Set up or select a Gmail OAuth2 credential and apply it to the Send report n8n node so the workflow can send the final analysis emails.

  5. Testing: Run the n8n workflow manually using the Webhook URL and submit a sample PDF CV and job link to verify the end-to-end execution.

Node Details

Webhook - CV Optimizer Form (n8n trigger): The entry point of this n8n workflow. It receives the multipart/form-data submission containing the CV file, job URL, and candidate email.
Extract CV Text (PDF): A file operation n8n node dedicated to handling PDF files. Its function is to convert the binary cv property into plain, usable text for the AI.
Fetch Job Posting (HTTP Request): This n8n node is configured to dynamically fetch the URL provided in the input form (job_url), initiating the web scraping process.
Job Text Cleaner (Code): A critical custom code n8n node that strips all HTML and styling elements from the fetched job posting response, ensuring the AI receives clean, relevant text input.
AI CV Analyzer (LangChain Agent n8n node): The core intelligence of the n8n workflow. It combines the CV text and job text inputs, using the Gemini model to analyze fit, follow strict output rules, and generate structured JSON results.
Parse AI JSON Output (LangChain Output Parser n8n node): Ensures data quality by validating the AI's output against a predefined schema. It includes auto-fix capability to correct minor formatting errors from the language model.


  • Send report (Gmail n8n node): The final action. It dynamically constructs an email using data derived from the parsed AI output and sends the personalized fit report to the candidate's email address.

Related n8n Workflows

Free

Nodes: 12 Nodes
Updated: December 26 2025
View all
Created by

Featured*