The HR Helpdesk Chatbot on Telegram I Build for Indian Small Businesses Without an HR Team

The HR Helpdesk Chatbot on Telegram I Build for Indian Small Businesses Without an HR Team

The HR Helpdesk Chatbot on Telegram I Build for Indian Small Businesses Without an HR Team

“Sir, how many casual leaves do I have left?” “When will salary come this month?” “Office Wi-Fi password kya hai?” If you run a company of 25 people in India, you have answered these on WhatsApp or Telegram more times than you can count, often late at night. There is no HR desk, so the founder becomes the HR desk. That is the problem my HR helpdesk chatbot on Telegram solves.

I built it with my team for Indian startups and small businesses with 10 to 50 staff and no one in HR. Employees message a Telegram bot in text or send a voice note in Hindi, English or their own language. The bot turns voice into text, searches your own policy PDFs stored in a Postgres database, and replies with the exact rule from your policy, not a guess from the internet. Below, I explain what it answers, every node on the path, why the order matters, what breaks, how to set it up, and how my team delivers it.

Why small Indian teams ask HR questions on Telegram and voice notes

Small Indian companies do not run on HR portals. They run on chat. Offer letters go out as PDFs on WhatsApp, attendance is marked in a group, and leave requests arrive as a message to the owner. Nobody opens a portal with a login they forgot two months ago. Staff open the app they already use a hundred times a day.

Voice matters just as much. A field sales executive riding between shops will not type a long question. A warehouse supervisor may be more comfortable speaking Telugu or Hindi than writing English. For them, voice note support is not a nice extra. It is the only way they will actually use a bot.

I chose Telegram over WhatsApp for this build for practical reasons. Telegram bots are free to create, the Bot API has no per-message fee, and most automation platforms have a ready Telegram trigger. WhatsApp can be done too through the official Business API, but it needs a verified business account and approved message templates, which slows down a first version. Many teams start on Telegram and move later if they need to.

There is a cost to doing nothing, too. Every repeated question pulls the founder away from sales, hiring or product. Staff also feel awkward asking the boss the same thing twice, so some simply guess, and guesses about leave or reimbursement cause arguments later. An HR helpdesk chatbot on Telegram gives everyone the same written answer at any hour, which quietly removes a lot of small friction in a growing team.

What my HR helpdesk chatbot on Telegram answers

What the HR helpdesk chatbot on Telegram answers, such as leave policy questions through voice note support, as an HR chatbot for employees and IT support bot

Before building, I ask the owner to list the questions they get most. The answers must already exist in writing somewhere, because the bot only repeats what your documents say. This is a typical question bank for an HR chatbot for employees in a small Indian company.

Staff asksAnswered fromBot can answer?
How many casual or sick leaves do I get in a year?Leave policy PDFYes, the rule itself
How many leaves do I have left?Your attendance or HR softwareOnly if connected; otherwise it says who to ask
When is salary credited?Payroll policyYes
Is Diwali a holiday? What is the holiday list?Holiday calendar PDFYes
How do I claim travel expenses?Reimbursement policyYes, with the steps
What is the notice period?HR policy or offer letter templateYes, the general rule
My laptop is not charging. What do I do?IT support guideYes, first steps and who to contact
What is the office Wi-Fi password?IT guideOnly if you choose to include it
Can I get a salary advance?Advance policy, if you have oneYes, or it routes to the owner

Notice the difference between a rule and a personal record. The HR helpdesk chatbot on Telegram answers rules from policy PDFs out of the box. Personal numbers, like your leave balance, need a link to the system that holds them, which I treat as a separate second step with its own privacy checks.

A good test before building: if a new joiner could find the answer by reading your documents carefully, the bot can find it too. If the answer only lives in the founder’s head, the first job is to write it down. That writing exercise alone often clears up confusion inside the team, even before any HR chatbot for employees goes live.

From voice note to answer: the node path

From voice note to answer: the node path of an HR helpdesk chatbot on Telegram with voice note support, an HR chatbot for employees and a pgvector knowledge base

There are six main nodes. A Telegram “get file” step sits inside the voice branch to download the recording, but the logic stays a simple line with one fork at the start.

#NodeJobNextIf it breaks
1Telegram TriggerReceives each staff message, text or voiceSwitchMessages arrive but nobody answers
2Switch: text or voice?Checks if the message has a voice fileTranscription or AI AgentVoice notes are ignored
3OpenAI audio transcriptionConverts the downloaded voice note into textAI AgentVoice questions fail; text still works
4AI Agent (LangChain)Reads the question and decides what to searchPostgres vector storeAnswers become generic, not from your policy
5Postgres pgvector plus embeddingsFinds the closest policy paragraphsBack to the AI AgentBot guesses leave rules
6Telegram: send messageSends the answer to the same employeeEndAnswer is ready, but never delivered

The audio transcription step only runs for voice notes. Text messages skip it and go straight to the agent. Both paths meet at the same AI Agent, which is why the knowledge base and the rules only have to be maintained in one place.

I also give the agent a short memory keyed to each employee’s chat, so a follow-up like “and for sick leave?” makes sense without repeating the whole question.

Here is how one real-style question travels. A store supervisor holds the mic and says in Hindi, “Kal Holi hai, kya office band rahega?” The trigger receives a voice message. The Switch sees the voice file and sends it down the voice branch, where the file is downloaded and transcribed into text. The AI Agent reads the text, searches the knowledge base for the holiday calendar, finds the line listing Holi, and writes a short reply: “Yes, Holi is a paid holiday this year as per the 2026 holiday list.” Telegram sends that reply to the supervisor within seconds. No one in management had to pick up the phone.

The same path handles a typed question in English with one step fewer. That consistency is what makes an HR helpdesk chatbot on Telegram easy to trust: every answer comes from the same place, whichever way the question was asked.

Building the pgvector knowledge base from policy PDFs

The pgvector knowledge base is a normal Postgres database with the pgvector extension switched on. Each policy PDF is cut into small chunks, each chunk is turned into an embedding, and the embeddings are stored so the bot can find the paragraph closest in meaning to a question.

  1. Create a Postgres database. Supabase, Neon or your own server all work.
  2. Enable the extension with the command below.
  3. Build a small separate workflow: read the policy PDF, extract the text, split it into chunks of a few hundred words, create embeddings and insert them with the Postgres PGVector Vector Store node.
  4. Run it once per policy PDF, and again whenever a policy changes.
-- run once in your Postgres database
CREATE EXTENSION IF NOT EXISTS vector;

n8n creates the table it needs on first insert. I keep one collection per company, with the PDF name saved on each chunk, so the bot can say which policy an answer came from.

Chunk size matters. Chunks that are too long mix several rules together and confuse the search. Chunks that are too short lose the context, such as which kind of leave a number belongs to. A few hundred words with a small overlap between chunks works well for typical Indian HR policies.

Why audio transcription comes before the agent

Some people ask why I do not send the voice note straight to an AI model that understands audio. The reason is control. When audio transcription happens first, the rest of the workflow only ever deals with text. The same agent, the same prompt and the same pgvector search work for every question, whichever way it arrived.

Text is also easy to check. If an employee complains that the bot gave a wrong answer, I can see the transcribed question in the n8n execution log and know immediately whether the problem was the audio or the policy search. With audio going straight into a model, that debugging becomes guesswork.

Finally, transcription quality varies by language and background noise. By keeping it as its own step, I can swap the transcription model later without touching the agent. Hindi and English transcribe well. Regional languages like Telugu and Tamil usually work, but noisy voice notes from a shop floor may need the bot to reply with “I heard this, is that right?” before answering.

This is also why voice note support costs very little extra to run. Transcribing a short voice note is a small request, and the answer is produced by the same agent that handles text. You are not paying for two separate bots.

When a node fails: silent bot, wrong policy, bad audio

These are the failures that come up most with an HR bot or an IT support bot, and how I fix each one.

ProblemWhy it happensWhat to do
Bot never repliesWorkflow not active, or webhook not registeredActivate the workflow and send the bot /start again
Bot silent in the staff groupTelegram privacy mode stops bots reading all group messagesMention the bot in the group, or change privacy mode through BotFather
Voice note gives an errorFile not downloaded before transcriptionAdd or fix the Telegram “get file” step in the voice branch
Transcript is nonsenseHeavy background noise or a very short clipAsk staff to record closer to the phone; bot confirms what it heard
Answer is correct but from an old policyOld PDF chunks still in the databaseDelete the old document’s chunks before loading the new version
Bot invents a ruleSearch found nothing and the agent filled the gapTell the agent to reply “I could not find this in the policy” instead
Anyone on Telegram can use the botNo access checkAllow only a list of staff Telegram IDs

The last row matters more than it looks. A Telegram bot is public by default, so an access list is the first thing I add, before any policy is loaded.

When the HR helpdesk chatbot on Telegram stops answering, check the n8n executions list first. A red execution shows exactly which node failed and why. Most issues are an expired key or a policy file that was replaced without reloading the knowledge base.

Step-by-step setup

  1. Collect every policy PDF: leave, payroll, holidays, reimbursements, IT guide. Make sure each one is the current version.
  2. Create a Telegram bot through BotFather and note the token.
  3. Get an OpenAI API key for transcription, the chat model and embeddings.
  4. Set up Postgres with pgvector and add its credentials in the workflow platform.
  5. Build the loader workflow and load each policy PDF into the knowledge base.
  6. Build the chat workflow: Telegram Trigger, Switch, get file plus transcription, AI Agent with the vector store tool and memory, Telegram reply.
  7. Add the staff ID check right after the trigger.
  8. Write the agent’s instructions: answer only from the policy, name the source, stay short, and give the owner’s contact when unsure.
  9. Test with 20 real questions, typed and spoken, before announcing it to staff.

Keep the Telegram token and OpenAI key inside the platform’s credential store. Never paste them into a policy PDF or a shared sheet.

For hosting, a cloud-hosted setup is the easiest start. If you want the data to stay on a server you control, self-hosting with Postgres on the same machine works well and keeps policy text inside your own setup. Either way, check current pricing for the platform and OpenAI on their websites, as it changes often.

Writing policy pages the bot can read

A bot is only as clear as the documents behind it. Most small companies have policies written as long paragraphs copied from somewhere else. A little cleanup makes a big difference to how well the pgvector knowledge base finds the right answer.

DoDon’t
One topic per heading: “Casual leave”, “Sick leave”One long paragraph covering five kinds of leave
Write numbers plainly: “12 casual leaves per calendar year”“As per company norms”
Use text-based PDFs or Word filesScanned photos of printed pages
Put the date and version on each policyKeep three versions with the same file name
Name the person to contact for exceptionsLeave exceptions unexplained

IT support bot jobs vs human-only jobs

The same setup doubles as an IT support bot. Still, some things should never be handed to a bot. This is how I split the work.

  • Good jobs for the bot: Wi-Fi and printer steps, how to reset an email password through the self-service page, VPN setup guide, which software is allowed, how to raise a hardware request.
  • Human-only jobs: salary disputes, harassment complaints, resignations, medical leave with personal details, disciplinary matters, anything involving another employee’s data.

For the human-only list, the bot does one thing: it tells the employee, kindly, who to talk to and how. I would rather it hand over too early than try to handle a sensitive complaint.

One more rule I follow: the bot never pretends to be a person. Its first message says it is an automated assistant that answers from company policy, and it shares the owner’s or manager’s contact for anything it cannot answer.

How my team delivers the HR helpdesk chatbot on Telegram

When you hire my team for this, most of the effort goes into your documents, not the nodes. Timelines depend on how many policies you have and how ready they are, and I confirm them after a first look.

The chatbot in this article is one working example. For your business, my team can build the same HR helpdesk on whichever automation platform you already use or prefer, or on a custom setup around your own systems.

StageMy team’s workYour part
Policy reviewReads your policies, marks gaps and contradictionsSend all current policy PDFs
CleanupSuggests edits so each rule is clear and findableApprove or correct the edits
Build and loadSets up the bot, database and workflows; loads the policiesShare the list of staff Telegram IDs
Staff testRuns the HR helpdesk chatbot on Telegram with three or four staff firstPick testers who will ask real questions
LaunchAnnounces the bot with a short how-to messageTell your team it is official
HandoverShows you how to add or replace a policy PDFOne short call

After launch, the owner’s job shrinks to updating a policy when it changes. The bot handles the repeat questions.

When your policies change, for example a new leave rule from April, you replace the PDF and run the loader again. The HR helpdesk chatbot on Telegram starts answering from the new rule in minutes, and the old version stops appearing because its chunks are removed first.

Versions I build for clinics, retail chains and coaching centres

The core stays the same across sectors, but the questions and the documents change. These are the variations of the HR chatbot for employees that suit Indian businesses best.

BusinessTypical staffWhat the bot coversExtra care
Clinics and diagnostic labsNurses, front desk, technicians on shiftsShift swap rules, uniform policy, sample handling SOPsKeep all patient data out of the knowledge base
Retail chainsStore staff across citiesStore opening checklist, returns policy, incentive rulesVoice notes in local languages are common
Coaching centresFaculty and counsellorsClass schedule rules, leave in exam season, fee refund policySeparate staff policies from student-facing ones
Small factoriesSupervisors and workersSafety rules, overtime policy, PF and ESI basicsShort voice answers work better than long text

In each case, voice note support matters most for staff who spend their day on their feet. An HR chatbot for employees that only accepts typed English would simply not be used on a shop floor or in a clinic corridor.

Want this for your staff? Email me

Tell me roughly how many people work with you and which questions eat most of your time. I will tell you honestly whether a bot helps or whether a simple pinned FAQ would do. Keep these ready for the first call:

  • Your team size and the languages your staff speak
  • The policy documents you already have, even rough ones
  • Whether you want voice note support from day one

My email is contact@upcomingtools.com. Send your phone number in the email and I will call you. You can also leave a message on the contact page, or first learn more about me and my team. Because this bot handles employee questions, please go through the privacy policy; I design every build keeping India’s Digital Personal Data Protection Act, 2023 in mind and keep personal records out of the knowledge base. Paid work is covered by the refund policy.

Tags
Share Article:

Radha Krishna

Leave a Comment

UpcomingTools logo - Nation First, Build The Best, Pass The Test