# Telegram chatbot for HR & IT support with AI-powered answers from PDF docs
This workflow automates internal employee support for HR and IT queries via Telegram. Using Retrieval-Augmented Generation (RAG) and vector search in PostgreSQL, the bot delivers accurate, context-aware responses based on up-to-date internal documents in PDF format. Ideal for organizations aiming to reduce staff workload and accelerate response times to routine inquiries.
## Who it´s for
- HR specialists automating responses to common employee questions
- IT support teams reducing ticket load through self-service replies
- Large companies with internal policies stored in PDF documents
- Administrators deploying voice-enabled chatbots in messaging apps
- Developers building RAG systems with n8n and PostgreSQL
## What the automation does
- Receives text and voice messages from employees in Telegram
- Transcribes audio using OpenAI Whisper API
- Retrieves relevant information from internal PDFs via RAG pipeline
- Generates precise answers using a LangChain agent and OpenAI models
- Stores chat history in PostgreSQL to maintain conversation context
- Handles unsupported message types (e.g., images) with appropriate feedback
## What´s included
- Ready-to-use n8n workflow with full processing logic
- Trigger logic for incoming Telegram messages
- Integrations with Telegram, OpenAI API, and PostgreSQL
- Vector storage and retrieval structure using pgvector
- Basic setup and adaptation guide
## Requirements for setup
- n8n instance with workflow execution capabilities
- Telegram Bot API access (your own bot token)
- OpenAI account with active API key
- PostgreSQL instance with pgvector extension enabled
- Internal policy documents in PDF format (e.g., employee handbook)
## Benefits and outcomes
- Reduces HR and IT workload through automated responses
- Enables 24/7 access to company knowledge
- Uses a familiar channel (Telegram) to improve user adoption
- Voice message support increases accessibility and convenience
- Fast knowledge updates — reload PDFs and reindex content
- Context preservation ensures coherent multi-turn conversations
- Scalable: one template can power multiple topic-specific bots
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet