DevOps Intelligenza Artificiale Strumenti e Tooling

n8n with LLM: HR Automations with AI (Complete Guide)

AI automations with n8n and local LLMs: HR workflows, email classification, RAG on documents, dynamic forms, and AI agents — all local with Ollama.

Course description

n8n with LLM: build real AI automations, from local to production

This is not a course about clicking n8n nodes — it is a path for building complete AI automation systems that actually work. We use n8n as the orchestrator and Ollama to run language models locally, without expensive external APIs. The through line is a realistic HR system: email classification, application management, smart forms, automatic reports, and a RAG system for querying documents. Each episode adds a piece to the system, and by the end you have something concrete and functional.

What You'll Learn

  • Launch n8n locally with Docker and integrate an LLM via Ollama
  • Build the first AI workflows with Basic LLM Chain: input, output, and structure
  • Simulate an AI HR Manager using advanced prompt engineering
  • Constrain LLM responses to get reliable and predictable output
  • Automate email: reading with IMAP, automatic replies with SMTP, constrained prompts
  • Classify incoming emails with AI using a dual LLM Chain
  • Save structured data with DataTables and automatically export CSV and Excel files
  • Create multi-step dynamic forms with Switch conditional logic and Dropdowns
  • Validate input and handle errors with the IF, SET, and DISPLAY combination
  • Build a RAG knowledge base: retrieval, generation, and text splitting
  • Improve retrieval across multiple documents with a vector store
  • Integrate AI tools into workflows for the first foundations of AI agents

AI Automation Running on Your Machine

Everything runs locally — no data sent to external services, no API call costs. This is the right approach for experimentation, for working with sensitive data, and for truly understanding what happens inside these systems before relying on cloud solutions. The series is continuously updated with increasingly advanced content.

Who This Course Is For

Designed for developers, IT professionals, and automation enthusiasts who want to build concrete AI workflows. Basic knowledge of Docker and REST APIs is required. No prior experience with n8n or LLMs is needed — everything is built from scratch.

Lessons list

I'll show you how to run n8n locally with Docker and integrate a local LLM via Ollama, building a complete AI automation environment from scratch without spending a cent on external APIs.

Guarda lezione

Let's build the first AI workflow in n8n together using the Basic LLM Chain node: I'll show you how to structure input, connect nodes, and define the request flow towards the local language model.

Guarda lezione

Let's go deeper into data handling in n8n AI workflows: I'll show you how to pass variables between nodes, transform the LLM's output, and build more robust pipelines with the Basic LLM Chain.

Guarda lezione

Let's build an n8n workflow that simulates an AI-powered HR Manager: I'll use prompt engineering to assign a role to the model and generate realistic responses in a human resources context.

Guarda lezione

I'll show you how to constrain LLM responses using structured prompts and explicit instructions, avoiding ambiguous or off-topic output and getting predictable, reliable results in n8n workflows.

Guarda lezione

Let's integrate n8n with an email inbox by configuring IMAP: I'll show you how to automatically read incoming emails, pass them to a local LLM via Ollama, and set up the HR email management workflow.

Guarda lezione

Let's add the ability for n8n to automatically reply to emails via SMTP: the reply text is generated in real time by a local LLM model, personalised for each individual message.

Guarda lezione

Let's make the AI-generated email responses more controlled and standardised by using constrained prompts in n8n, ensuring reliable, safe output consistent with company HR policies.

Guarda lezione

Let's see how to use the IF node in n8n to automatically analyse the subject line of incoming emails and route each message to the correct branch in the HR management workflow.

Guarda lezione

Let's build an AI email classifier using a dual Basic LLM Chain in n8n: the model distinguishes job applications, information requests, and other message types to automate the sorting process.

Guarda lezione

Let's improve the AI email classifier by refining prompts and reducing categorisation errors, resulting in a more accurate and reliable n8n workflow for automated HR communication management.

Guarda lezione

Let's introduce DataTables in n8n with Docker: I'll show you how to persistently save structured data generated by AI workflows, organising information for future use.

Guarda lezione

Let's complete the data management flow in n8n by adding automatic export to CSV and Excel, so HR teams receive ready-to-use files without any manual steps.

Guarda lezione

Let's start building dynamic forms in n8n with Text and Dropdown fields: I'll create structured input interfaces to collect user data within HR automation workflows.

Guarda lezione

Let's build an advanced multi-step form in n8n using the Switch node with conditional logic: I'll guide users through different paths based on their answers, with Dropdowns and alternative branches.

Guarda lezione

Let's add user input validation to n8n forms using the IF, SET, and DISPLAY combo: I'll block invalid data, show error messages, and handle edge cases.

Guarda lezione

Let's see how to persistently save data collected via n8n forms to DataTables, using Insert Row for writing and Get for reading and retrieving records.

Guarda lezione

Let's complete the form workflow with automatic sending of a summary email and attached file generation, orchestrating every step in a single n8n flow without manual intervention.

Guarda lezione

Let's introduce the RAG (Retrieval-Augmented Generation) concept and build the first HR knowledge base in n8n, ready to answer questions using company documents as the source.

Guarda lezione

Let's enter the Retrieval phase of the RAG system in n8n: I'll query the vector store, retrieve the most relevant document chunks for each query, and prepare the context for generation.

Guarda lezione

Let's move to the Generation phase of the RAG in n8n: the LLM model builds contextualised and precise responses using documents retrieved from the HR knowledge base as the reference source.

Guarda lezione

Let's integrate the RAG system with the n8n email module: automatic replies are now generated by AI using the company knowledge base as the source, not just the prompt.

Guarda lezione

Let's see how to use the Text Splitter in n8n to divide long documents into chunks optimised for size and overlap — essential for improving the quality of RAG retrieval.

Guarda lezione

Let's go deeper into RAG retrieval across multiple documents in n8n: I'll optimise vector store queries with filters and search parameters to get more precise and contextually relevant results.

Guarda lezione

Let's build the complete RAG pipeline in n8n using the vector store for generation: from the user query to document retrieval, all the way to the final contextualised AI response.

Guarda lezione

In this final lesson, let's integrate external tools into n8n workflows with an LLM, allowing the AI to perform real actions like API calls and web searches — the foundations of AI agents in n8n.

Guarda lezione

We open the NIS2 mini-series by preparing the regulatory documents in n8n to build an AI-queryable knowledge base, the foundation of a RAG system for compliance.

Guarda lezione

We build the NIS2 knowledge base and introduce the retrieval step: you'll see how the system pulls the information relevant to a question out of the documents.

Guarda lezione

We optimise retrieval by splitting the NIS2 documents into chunks with the Text Splitter: well-sized chunks make the AI's answers more precise.

Guarda lezione

We query the NIS2 knowledge base with an LLM, connecting retrieval and generation to get answers that are grounded in the uploaded documents.

Guarda lezione

We close the flow by assembling and testing the complete AI assistant for NIS2 compliance: we ask it questions in natural language and check how accurate its answers are.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 31
  • Duration 5h 30m
  • Difficulty advanced
  • Language it
  • Certificate No

Recently viewed