PICKED FROM N8N.IO · PEOPLE & HR

A Telegram chatbot answers employee HR and IT questions from your own policy documents. Voice messages are transcribed to text first. The assistant searches a Postgres vector store of the documents, writes a short answer with OpenAI, and replies in Telegram. A separate branch loads the policy PDFs into the store.

Template by Felipe Braga · 41.7k views on n8n.io · listed there as “HR & IT helpdesk chatbot with audio transcription”

THE WORKFLOW21 NODES
MWhen clicking‘Test workflow’↯HTTP Request▭Extract from FileVCreate HRPolicies∴Embeddings OpenAIDDefault DataLoaderTRecursiveCharacter Text S…TTelegram Trigger⑂Verify MessageTypeOOpenAITTelegram1TUnsupportedMessage Type✦AI Agent◆OpenAI Chat ModelMPostgres ChatMemoryTAnswer questionswith a vector st…VPostgres PGVectorStore◆OpenAI ChatModel1∴EmbeddingsOpenAI1TTelegram≡Edit Fields
DIFFICULTY
Advanced
NODES
21
USES AI
Yes
PUBLISHED
January 2025

001 / WHAT HAPPENS

  1. 01

    A one-off branch downloads policy PDFs, extracts the text, splits it and stores embeddings in a Postgres PGVector store.

  2. 02

    A staff member sends a text or voice message to the Telegram bot.

  3. 03

    A switch checks the message type; voice goes to OpenAI for transcription and anything else gets an unsupported reply.

  4. 04

    An AI agent with Postgres chat memory searches the policy store and drafts the answer.

  5. 05

    The answer is sent back to the employee in Telegram.

WHO IT SUITS

Suits a business with a staff handbook and a few dozen employees who keep asking the same leave, payroll or IT questions.

CONNECTS

  • Telegram
  • OpenAI
  • PostgreSQL

002 / BEFORE YOU USE IT HERE

  • !Staff questions, voice recordings and policy text are sent to an overseas AI provider, which is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
  • !It needs a Postgres database with the PGVector extension, plus a paid OpenAI API key. The description mentions WhatsApp, but the nodes use Telegram only.
  • !HR answers can be wrong or out of date. Keep policies current and add a line telling staff to confirm anything important with HR.

LOCAL SWAP

Swap Telegram for Slack or Microsoft Teams nodes if that is where your staff chat.

Need n8n and the AI hosted in Australia? →

004 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.

We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.

Book a free call→