Skip to main content

Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs

Workflow preview

Workflow preview
100%
Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs preview
Open on n8n.io

1. Workflow Overview

This template provides a fully functional, enterprise grade HR chatbot that employees can interact with using plain language in text or voice in any of the 10 supported Indian languages. The bot re...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, @elevenlabs/n8n-nodes-elevenlabs.elevenlabs, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs
Workflow name
Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs

This template provides a fully functional, enterprise-grade HR chatbot that employees can interact with using plain language in text or voice in any of the 10 supported Indian languages.

The bot recognizes the employee's identity, the company they work for, and the relevant HR policies that apply to them. It can access live leave balances directly from your PostgreSQL HR database, search for company-specific HR policy documents stored in Pinecone, and retain conversation history for follow-up questions.

How it works:

  • An employee sends a message (either text or audio) via a POST webhook call.
  • The workflow then validates their identity using either their mobile number or email address.
  • The system automatically detects the language of the message, which can be Hindi, Gujarati, Marathi, Tamil, and several others.
  • If the message is in a non-English language, it is translated into English for processing by the AI Agent.
  • The GPT-4o-mini AI Agent determines whether to query the database, search the policy knowledge base, or do both.
  • Once a response is generated, it is translated back into the employee's original language and includes quick action and related questions.

Multi-tenant by design: Each company has its own Pinecone namespace, ensuring that policy retrieval is completely isolated between organisations. One deployment can support unlimited companies.

Security measures are implemented: The AI Agent is limited to SELECT-only queries and consistently filters by the current employee's ID, preventing access to other employees' data or modifications to records.

Benefits

  • No HR Helpdesk Overhead: Employees can self-serve common HR queries 24/7.
  • Support for Multiple Languages: Breaks down language barriers in multilingual workforces.
  • Accurate Live Data: Leave balances are pulled directly from your database, ensuring they are always current.
  • Tenant-Safe: Company policies are isolated by Pinecone namespace to ensure security.
  • Voice-Enabled: Employees can ask their queries by speaking instead of typing.
  • Context-Aware: Remembers conversation history for more natural follow-up discussions.
  • Rich Responses: Provides quick action and automatically suggests related questions.

Use Cases

  • Inquiry about employee leave balances and history
  • Explanations of HR policies (maternity leave, sick leave, work-from-home policies, probation rules)
  • Lookup for reporting managers and organisational structure
  • Onboarding questions and answers for new joiners
  • Clarification on probation policies
  • Guidance on attendance and payslips
  • Backend support for HR chatbots on WhatsApp, Slack, and mobile apps

Feature Bullets

  • ✅ Supports 10 Indian languages with automatic Unicode-based detection.
  • ✅ RAG-powered policy search features per-company Pinecone namespace isolation.
  • ✅ Live PostgreSQL queries to access leave balances, history, and employee data.
  • ✅ Voice input functionality through ElevenLabs Speech-to-Text.
  • ✅ Persistent chat memory, backed by PostgreSQL, maintained per session.
  • ✅ Utilizes the GPT-4o-mini AI Agent with a structured decision-making framework.
  • ✅ Implements a 3-tier validation process (identity → message → employee).
  • ✅ Provides contextual quick action in API responses.
  • ✅ Multi-tenant architecture allows for unlimited companies to be managed from a single deployment.
  • ✅ Includes security guardrails: SELECT-only, employee-ID-scoped queries.

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 - 📌 Setup & Configuration Guide

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

Block 2 - Section 1 - Input Layer

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

Block 3 - Section 2 - Voice Processing

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

Block 4 - Section 3 - Language Processing

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

Block 5 - Section 4 - Employee Auth

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

Block 6 - Section 5 - AI Agent

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

Block 7 - Section 6 - Response

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

Block 8 - Webhook - HR Bot Chat

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

Block 9 - Validate Identity (Mobile/Email)

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 10 - Error - Invalid Mobile/Email

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

Block 11 - Check Audio Input

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 12 - ElevenLabs - Transcribe Audio

Type / Role
@elevenlabs/n8n-nodes-elevenlabs.elevenLabs - elevenLabs
Config choices
Version 1

Block 13 - Extract Transcript

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

Block 14 - Validate Message

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 15 - Error - Invalid Message

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

Block 16 - Parse Input & Detect Language

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

Block 17 - Needs Translation?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 18 - OpenAI Model - Translation

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

Block 19 - Translate to English

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

Block 20 - Skip Translation (English)

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

Block 21 - Merge Translation Context

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

Block 22 - Fetch Employee Data

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 23 - Validate Employee

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 24 - Error - Employee Not Found

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

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

3. Summary Table

Workflow Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs
Complexity advanced
Nodes 33
Categories HR, AI Chatbot
Author Cybernative Technologies
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15888/15888.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 Answer HR questions with GPT-4o-mini, PostgreSQL, Pinecone and ElevenLabs do?

This template provides a fully functional, enterprise grade HR chatbot that employees can interact with using plain language in text or voice in any of the 10 supported Indian languages. The bot re...

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.