Skip to main content

Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace

Workflow preview

Workflow preview
100%
Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Who is this for? This workflow is ideal for HR teams, startups, and enterprises that want to handle employee interactions through WhatsApp and automate responses using LLM (OpenAI) and intelligent ...

Best for

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

Tools used

n8n-nodes-base.whatsapptrigger, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.openai, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.vectorstoresupabase

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace
Workflow name
Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace

Who is this for? This workflow is ideal for HR teams, startups, and enterprises that want to handle employee interactions through WhatsApp and automate responses using LLM (OpenAI) and intelligent routing.

What problem is this workflow solving? Managing WhatsApp messages manually can be time-consuming and error-prone. This workflow solves that by:

Auto-classifying messages using LLM

Routing them to the right AI-powered agent

Automating leave approvals, attendance, HR FAQs, complaints, and candidate shortlisting

Delivering final responses interactively via WhatsApp

What this workflow does WhatsApp Trigger captures incoming messages

LLM Classification analyzes message intent and outputs category (1–5)

Switch Node routes the message to the correct agent:

1 → Leave Agent

2 → HR FAQ Chatbot

3 → Attendance Agent

4 → Complaint/Request Agent

5 → Shortlisting Agent

Each agent performs specific tasks using tools like:

Google Sheets (fetch dept head emails, JD/applicants, logs)

Google Calendar (schedule meetings)

Vector Search (for policy embeddings)

OpenAI (transcription, classification, chatbot)

Final WhatsApp Response node sends updates and interactive options to the user

Setup Connect WhatsApp API (e.g., via Twilio or WhatsApp Business Cloud API)

Configure OpenAI credentials

Set up Google Sheets with:

Employee data

JD and applicants info

Policy documents (for embedding)

Prepare Google Calendar access

Create a vector store with embedded company policy docs

How to customize this workflow to your needs Update the LLM prompt to suit your company’s categories or expand to more intents

Replace sample sheets with your organization’s actual data

Train your own policy embeddings if needed

Add/modify agents (e.g., Payroll Bot, IT Support Bot) by cloning an existing pattern

Adjust the Switch Node if you add more classifications

With this modular and intelligent setup, you can turn your WhatsApp into a smart HR & operations assistant powered by AI, accessible 24/7.

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 - WhatsApp Trigger

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

Block 2 - Verify Message Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - OpenAI

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

Block 4 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.1

Block 5 - Edit Fields

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

Block 6 - HTTP Request

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

Block 7 - HTTP Request1

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

Block 8 - OpenAI1

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

Block 9 - OpenAI Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Code1

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

Block 11 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 12 - Supabase Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1.2

Block 13 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 14 - Edit Fields1

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

Block 15 - Edit Fields2

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

Block 16 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Gmail

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 18 - Edit Fields3

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

Block 19 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 20 - Personalize email

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

Block 21 - Google Calendar

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.2

Block 22 - Google Sheets2

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

Block 23 - OpenAI Chat Model4

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 24 - Gmail1

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

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

3. Summary Table

Workflow Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace
Complexity advanced
Nodes 65
Categories HR, AI Chatbot
Author Tanay Agarwal
Published 16 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4975/4975.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 Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace do?

Who is this for? This workflow is ideal for HR teams, startups, and enterprises that want to handle employee interactions through WhatsApp and automate responses using LLM (OpenAI) and intelligent ...

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 Chatbot use case.