HR & IT Helpdesk Chatbot with Audio Transcription
Configured with Agent, Document Default Data Loader, Embeddings Open Ai, Extract From File, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Web / API
- Transform
- Data store
- AI & models
- Files / media
- Routing
- Messaging
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| HTTP Request | Web / API | HTTP Request | See node parameters |
| Extract from File | Transform | Extract From File | |
| Create HR Policies | Data store | Vector Store Pgvector | See node parameters |
| Embeddings OpenAI | AI & models | Embeddings Open Ai | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Recursive Character Text Splitter | Transform | Text Splitter Recursive Character Text Splitter | See node parameters |
| Telegram Trigger | Trigger | Telegram Trigger | See node parameters |
| Verify Message Type | Routing | Switch | See node parameters |
| OpenAI | AI & models | Open Ai | audio / transcribe |
| Telegram1 | Messaging | Telegram | file |
| Unsupported Message Type | Messaging | Telegram | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Postgres Chat Memory | Data store | Memory Postgres Chat | See node parameters |
| Answer questions with a vector store | AI & models | Tool Vector Store | See node parameters |
| Postgres PGVector Store | Data store | Vector Store Pgvector | See node parameters |
| OpenAI Chat Model1 | AI & models | OpenAI Chat Model | See node parameters |
| Embeddings OpenAI1 | AI & models | Embeddings Open Ai | See node parameters |
| Telegram | Messaging | Telegram | See node parameters |
| Edit Fields | Transform | Edit Fields | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
openAiApipostgrestelegramApi
Workflow notes
1. Download & Extract Internal Policy Documents
1. Download & Extract Internal Policy Documents
Read more about the HTTP Request Tool
Begin by importing the PDF documents that contain your internal policies and FAQs—these will become the knowledge base for your Internal Helpdesk Assistant. For example, you can store a company handbook or IT/HR policy PDFs on a shared drive or cloud storage and reference a direct download link here.
In this demonstration, we'll use the HTTP Request node to fetch the PDF file from a given URL and then parse its text contents using the Extract from File node. Once extracted, these text chunks will be used to build the vector store that underpins your helpdesk chatbot’s responses.
2. Create Internal Policy Vector Store
2. Create Internal Policy Vector Store
Read more about the In-Memory Vector Store
Vector stores power the retrieval process by matching a user's natural language questions to relevant chunks of text. We'll transform your extracted internal policy text into vector embeddings and store them in a database-like structure.
We will be using PostgreSQL which has production ready vector support.
How it works
- The text extracted in Step 1 is split into manageable segments (chunks).
- An embedding model transforms these segments into numerical vectors.
- These vectors, along with metadata, are stored in PostgreSQL.
- When users ask a question, their query is embedded and matched to the most relevant vectors, improving the accuracy of the chatbot's response.
3. Handling Messages with Fallback Support
3. Handling Messages with Fallback Support
This workflow processes Telegram messages to handle text and voice inputs, with a fallback for unsupported message types. Here’s how it works:
-
Trigger Node:
- The workflow starts with a Telegram trigger that listens for incoming messages.
-
Message Type Check:
- The workflow verifies the type of message received:
- Text Message: If the message contains
$json.message.text, it is sent directly to the agent. - Voice Message: If the message contains
$json.message.voice, the audio is transcribed into text using a transcription service, and the result is sent to the agent.
- Text Message: If the message contains
- The workflow verifies the type of message received:
-
Fallback Path:
- If the message is neither text nor voice, a fallback response is returned:
"Sorry, I couldn’t process your message. Please try again."
- If the message is neither text nor voice, a fallback response is returned:
-
Unified Output:
- Both text messages and transcribed voice messages are converted into the same format before sending to the agent, ensuring consistency in handling.
Sticky Note3
The setup needs to be run at the start or when data is changed
4. HR & IT AI Agent Provides Helpdesk Support
4. HR & IT AI Agent Provides Helpdesk Support
n8n's AI agents allow you to create intelligent and interactive workflows that can access and retrieve data from internal knowledgebases. In this workflow, the AI agent is configured to provide answers for HR and IT queries by performing Retrieval-Augmented Generation (RAG) on internal documents.
How It Works:
- Internal Knowledgebase Access: A Vector store tool is used to connect the agent to the HR & IT knowledgebase built earlier in the workflow. This enables the agent to fetch accurate and specific answers for employee queries.
- Chat Memory: A Chat memory subnode tracks the conversation, allowing the agent to maintain context across multiple queries from the same user, creating a personalized and cohesive experience.
- Dynamic Query Responses: Whether employees ask about policies, leave balances, or technical troubleshooting, the agent retrieves relevant data from the vector store and crafts a natural language response.
By integrating the AI agent with a vector store and chat memory, this workflow empowers your HR & IT helpdesk chatbot to provide quick, accurate, and conversational support to employees.
PostgrSQL is used for all steps to simplify development in production.
5. Send Message
5. Send Message
The simplest and most important part :)
HR & IT Helpdesk Chatbot with Audio Transcription
HR & IT Helpdesk Chatbot with Audio Transcription
Purpose and structure
This folder contains the HR & IT Helpdesk Chatbot with Audio Transcription workflow. Its executable nodes use agent, documentDefaultDataLoader, embeddingsOpenAi, extractFromFile, httpRequest, lmChatOpenAi, manualTrigger, memoryPostgresChat, openAi, set, switch, telegram, telegramTrigger, textSplitterRecursiveCharacterTextSplitter, toolVectorStore, vectorStorePGVector. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’, Telegram Trigger
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/2038_Telegram_Extractfromfile_Automate_Webhook.json MIT; preserve source notices.