← All N8N workflows
AI & researchAgentDocument Default Data LoaderEmbeddings Open AiExtract From FileHTTP Request

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.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerWeb / APIHTTP RequestHTTP RequestTransformExtract from FileExtract From FileData storeCreate HR PoliciesVector Store PgvectorAI & modelsEmbeddings OpenAIEmbeddings Open AiFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformRecursive CharacterText SplitterText Splitter Recursive …TriggerTelegram TriggerTelegram TriggerRoutingVerify Message TypeSwitchAI & modelsOpenAIOpen AiMessagingTelegram1TelegramMessagingUnsupported MessageTypeTelegramAI & modelsAI AgentAgentAI & modelsOpenAI Chat ModelOpenAI Chat ModelData storePostgres Chat MemoryMemory Postgres ChatAI & modelsAnswer questions with avector storeTool Vector StoreData storePostgres PGVector StoreVector Store PgvectorAI & modelsOpenAI Chat Model1OpenAI Chat ModelAI & modelsEmbeddings OpenAI1Embeddings Open AiMessagingTelegramTelegramTransformEdit FieldsEdit Fields

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
HTTP RequestWeb / APIHTTP RequestSee node parameters
Extract from FileTransformExtract From Filepdf
Create HR PoliciesData storeVector Store PgvectorSee node parameters
Embeddings OpenAIAI & modelsEmbeddings Open AiSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
Telegram TriggerTriggerTelegram TriggerSee node parameters
Verify Message TypeRoutingSwitchSee node parameters
OpenAIAI & modelsOpen Aiaudio / transcribe
Telegram1MessagingTelegramfile
Unsupported Message TypeMessagingTelegramSee node parameters
AI AgentAI & modelsAgentSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Postgres Chat MemoryData storeMemory Postgres ChatSee node parameters
Answer questions with a vector storeAI & modelsTool Vector StoreSee node parameters
Postgres PGVector StoreData storeVector Store PgvectorSee node parameters
OpenAI Chat Model1AI & modelsOpenAI Chat ModelSee node parameters
Embeddings OpenAI1AI & modelsEmbeddings Open AiSee node parameters
TelegramMessagingTelegramSee node parameters
Edit FieldsTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • openAiApi
  • postgres
  • telegramApi

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.

Example Employee Handbook with Policies

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

  1. The text extracted in Step 1 is split into manageable segments (chunks).
  2. An embedding model transforms these segments into numerical vectors.
  3. These vectors, along with metadata, are stored in PostgreSQL.
  4. 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:

  1. Trigger Node:

    • The workflow starts with a Telegram trigger that listens for incoming messages.
  2. 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.
  3. 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."
  4. 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.

More in AI & research