Build HR & IT Helpdesk Chatbot with Audio Transcription & RAG
detail.loadingPreview
Automate your HR & IT support with an n8n chatbot. Transcribe voice messages, retrieve policies via RAG from PostgreSQL, and get instant answers.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This n8n workflow automates HR and IT helpdesk support by creating an intelligent chatbot powered by AI and Retrieval-Augmented Generation (RAG). It begins by ingesting internal policy documents (PDFs) and transforming them into a searchable vector store in PostgreSQL. When a user interacts via Telegram, the workflow handles both text and transcribed audio messages. Voice messages are transcribed using OpenAI's Whisper, and both text and transcribed audio are fed into an AI agent. This agent leverages the PostgreSQL vector store to retrieve relevant policy information and generate accurate, context-aware responses, ensuring employees get instant support.
Key components include:
- Document Ingestion: HTTP Request node to fetch policy PDFs, followed by Extract from File node.
- Vector Store Creation: OpenAI Embeddings and a Recursive Character Text Splitter are used to prepare data for storage in a PostgreSQL vector store (PGVector).
- Telegram Integration: A Telegram Trigger listens for messages, and a Switch node differentiates between text and voice inputs.
- Audio Transcription: OpenAI node for transcribing voice messages to text.
- AI Agent & RAG: An n8n AI Agent node uses OpenAI Chat Model and a PGVector store tool for retrieval, with Postgres Chat Memory for conversation context.
Key Features
- Real-time audio transcription for voice queries.
- Knowledge base creation from internal policy documents (PDFs).
- Retrieval-Augmented Generation (RAG) for accurate AI responses.
- Seamless Telegram integration for user interaction.
- Persistent chat memory for context-aware conversations.
- Scalable solution leveraging PostgreSQL for vector storage.
How To Use
- Configure Document Ingestion: Use the HTTP Request node to specify the URL of your internal policy documents (e.g., employee handbooks, HR policies in PDF format).
- Extract Text: Connect the HTTP Request node to the Extract from File node to parse the text content from the PDFs.
- Set up Vector Store:
- Configure Embeddings OpenAI with your OpenAI API key.
- Use the Default Data Loader to process the extracted text.
- Employ the Recursive Character Text Splitter to segment the text.
- Set up Create HR Policies (Vector Store PGVector) with your PostgreSQL credentials to store the embeddings.
- Configure Telegram Trigger: Set up your Telegram bot using the Telegram Trigger node with your bot token.
- Implement Message Handling: Use the Verify Message Type (Switch) node to route text messages or voice messages.
- Process Voice Messages: For voice messages, use the Telegram (get file) node to download the audio, then the OpenAI (transcribe) node with your OpenAI API key to convert audio to text.
- Build AI Agent:
- Configure the AI Agent node with your OpenAI API key and a system message (e.g., "You are a helpful assistant for HR and employee policies").
- Connect OpenAI Chat Model for language generation and Postgres Chat Memory for conversation history.
- Set up Answer questions with a vector store (Tool Vector Store) pointing to your PGVector store.
- Send Responses: Use the Telegram node to send the AI-generated answer back to the user.
Credentials Required: OpenAI API Key, PostgreSQL credentials.
Apps Used
Workflow JSON
{
"id": "585b2a3c-d1b3-4f8b-b525-4816f00a1166",
"name": "Build HR & IT Helpdesk Chatbot with Audio Transcription & RAG",
"nodes": 0,
"category": "AI & LLM",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 585b2a3c-d1b3...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Integrations
- Telegram + Telegram Trigger(362 workflows)
- Schedule Trigger + Telegram(152 workflows)
- Google Sheets + Telegram(118 workflows)
- Split Out + Telegram(76 workflows)
- Google Sheets + Telegram Trigger(73 workflows)
- Google Drive + Telegram(64 workflows)
- Gmail + Telegram(63 workflows)
- Execute Workflow Trigger + Telegram(58 workflows)
- Convert To File + Telegram(49 workflows)
- Split Out + Telegram Trigger(32 workflows)
Related Workflows
Discover more workflows you might like
AI Crypto Analyst: CoinMarketCap Data & Telegram Insights Bot
Unlock real-time crypto market intelligence with an AI agent that analyzes CoinMarketCap data and delivers insights via Telegram. Integrates CEX & DEX data.
Build a Telegram AI Chatbot with Multi-Format Input & OpenAI
Create a powerful Telegram AI chatbot that handles text & voice messages. Leverages OpenAI GPT-4o and Langchain for intelligent responses. Automate conversations effortlessly.
Dynamically Generate HTML Pages with OpenAI Structured Output & Tailwind
Instantly create custom HTML pages using OpenAI's structured output and Tailwind CSS. Ideal for developers and growth hackers seeking rapid UI generation.
Auto-Generate Images with OpenAI Prompt & Size Controls
Instantly create unique images from text prompts using OpenAI. This workflow automates image generation with custom size options. Save time & boost creativity.
Build a Business WhatsApp AI RAG Chatbot with OpenAI & Qdrant
Automate customer service with a WhatsApp AI RAG chatbot. Integrates OpenAI, Qdrant, and Google Drive for intelligent responses. Save hours weekly!
Build an AI Travel Assistant with Google Drive & OpenAI
Create a custom OpenAI AI Assistant that leverages your Google Drive documents for travel planning. Automate travel advice and responses.