explaingit

abhiinnovates/whatsapp-hr-assistant

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 3/5LicenseSetup · hard

TLDR

A WhatsApp chatbot that answers HR policy questions from documents, looks up live leave balances, and sends salary slip PDFs, with OTP identity verification before sharing any personal data.

Mindmap

mindmap
  root((WhatsApp HR Assistant))
    What employees can do
      Ask policy questions
      Check leave balance
      Get salary slip PDF
    Security
      OTP verification
      30-min session cache
    Architecture
      Twilio WhatsApp webhook
      Groq intent routing
      FAISS vector store
    Tech stack
      FastAPI
      LangChain
      Groq LLM
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Let employees ask 'How many paid leaves do I have left?' on WhatsApp and get a live answer pulled from the HR system.

USE CASE 2

Generate and send a salary slip PDF to an employee over WhatsApp after they verify their identity with a one-time code.

USE CASE 3

Answer 'What is the maternity leave policy?' from uploaded HR policy documents with a grounded answer and source reference.

USE CASE 4

Swap the mock HR system for Zoho People or another real backend by implementing four functions against the real API.

What is it built with?

PythonFastAPILangChainFAISSGroqTwiliofpdf2

How does it compare?

abhiinnovates/whatsapp-hr-assistanta-bissell/unleash-liteaganmar/pixel-fixer
Stars111
LanguagePythonPythonPython
Setup difficultyhardhardeasy
Complexity3/54/51/5
Audiencedeveloperresearcherdesigner

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Groq and Twilio API keys, a public HTTPS URL for Twilio webhooks (e.g. ngrok), and a one-time document ingestion step before first use.

MIT license, use freely in personal or commercial projects.

In plain English

WhatsApp HR Assistant is a chatbot that lets employees ask HR questions and retrieve personal data through a regular WhatsApp conversation. Employees can ask about leave policies, check how many leave days they have remaining, or request a salary slip PDF, all without logging into a separate HR portal. The assistant connects to WhatsApp via Twilio and uses a fast, free language model from Groq. The assistant handles three types of requests: HR policy questions, live employee data lookups, and salary slip generation. For policy questions, it searches a vector database built from your uploaded HR documents and returns an answer with source references, so it only tells employees what your documents actually say. For personal data like leave balances and salary slips, it calls a connected HR system, then generates and sends the response back on WhatsApp. Before sharing any personal information, the assistant verifies identity using a one-time code. When an employee asks for their leave balance or salary slip, the bot sends a six-digit code to their registered work email. Once the employee types the code back in the WhatsApp chat, the original question is answered automatically. A verified session lasts 30 minutes so employees are not re-prompted for every message in that window. The HR system integration uses a mock module by default, which makes it possible to run the whole project locally without a real HR backend. The mock exposes a small interface for employee lookup, leave balances, and salary structure. The README explains how to replace those functions with calls to a real service such as Zoho People. Setup requires API keys from Groq and Twilio, a public URL (such as an ngrok tunnel) so Twilio can reach the local server, and a one-time step to ingest your HR documents into the FAISS vector store. The project includes test scripts to simulate WhatsApp messages locally without actually sending them.

Copy-paste prompts

Prompt 1
Walk me through setting up the WhatsApp HR Assistant: getting a Groq API key, configuring a Twilio WhatsApp sandbox, running ngrok, and ingesting HR policy documents into FAISS.
Prompt 2
How does the OTP verification flow work in this project? Walk through what happens from the employee's first sensitive request to receiving the verified answer.
Prompt 3
I want to replace the mock HRMS in this project with Zoho People. What are the four functions I need to implement and what data shape does each one return?
Prompt 4
How does the orchestrator decide whether an incoming WhatsApp message is a policy question, a leave balance lookup, or a salary slip request?

Frequently asked questions

What is whatsapp-hr-assistant?

A WhatsApp chatbot that answers HR policy questions from documents, looks up live leave balances, and sends salary slip PDFs, with OTP identity verification before sharing any personal data.

What language is whatsapp-hr-assistant written in?

Mainly Python. The stack also includes Python, FastAPI, LangChain.

What license does whatsapp-hr-assistant use?

MIT license, use freely in personal or commercial projects.

How hard is whatsapp-hr-assistant to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is whatsapp-hr-assistant for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub abhiinnovates on gitmyhub

Verify against the repo before relying on details.