Telegram Audio to Text to AI Assistant
detail.loadingPreview
Transcribes audio messages from Telegram and processes them through an AI assistant.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow automates the process of receiving audio messages via Telegram, transcribing them into text, and then feeding that text to an AI assistant for further processing or response generation. It's designed to leverage the power of AI for understanding and interacting with voice inputs through Telegram.
Key Features
- Receives audio messages from a Telegram bot.
- Transcribes audio to text using OpenAI's Whisper model.
- Processes transcribed text with a configurable AI agent (e.g., Gemini).
- Sends the AI's response back to the user via Telegram.
- Includes a switch node to handle both text and voice inputs.
How To Use
- Set up Telegram Bot: Create a Telegram bot using BotFather and obtain the API token.
- Configure Telegram Trigger: In the
Telegram Triggernode, enter your bot's API token. - Configure Switch Node: Ensure the conditions in the
Switchnode correctly identify text messages ({{ $json.message.text }}) and voice messages ({{ $json.message.voice.file_id }}). - Configure Edit Fields: Update the
Edit Fieldsnode to correctly reference thetextfield from theTelegram Trigger. - Configure Telegram Node (Voice): In the
Telegramnode that handles voice, ensure thefileIdis correctly referenced from the incoming message. - Configure OpenAI Node: Enter your OpenAI API key in the
OpenAInode for audio transcription. - Configure AI Agent Node: Customize the
AI Agentnode'ssystemMessageandtextfields to define the AI's persona, capabilities, and the input it will receive. Ensure thetextfield correctly pulls the transcribed text. - Configure Google Gemini Chat Model: Set the
modelNamein theGoogle Gemini Chat Modelnode to your desired Gemini model. - Configure Telegram Response Node: In the
Telegram1node, ensure thechatIdis correctly pulled from the incoming message and thetextfield references the output from the AI Agent. - (Optional) Configure Calculator: If needed, integrate the
Calculatornode for specific mathematical operations required by your AI agent.
Apps Used
Workflow JSON
{
"id": "4804d352-ca03-4bfa-88c6-539dc7da796a",
"name": "Telegram Audio to Text to AI Assistant",
"nodes": 0,
"category": "Aggregate",
"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: 4804d352-ca03...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Automated Multi-Platform Influencer Discovery & Qualification
This powerful n8n workflow automates the entire process of discovering, scoring, and qualifying ideal influencers across Instagram, TikTok, and YouTube for your marketing campaigns. Streamline your talent acquisition by leveraging custom criteria and a sophisticated scoring algorithm.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
AI-Powered Accounts Receivable Reporting for Sabre EDI
This n8n workflow automates the extraction of Accounts Receivable (AR) data from complex Sabre EDI (Interface User Record) files stored in Google Drive. It leverages an AI agent, powered by OpenAI, to intelligently process financial information and generate structured AR reports. The workflow ensures accuracy by utilizing a Pinecone vector database for contextual understanding of EDI guidelines.
Automate JSON Data Import to Google Sheets
Seamlessly import data from local JSON files directly into Google Sheets. This workflow automates the process of reading structured JSON data and appending it to your chosen spreadsheet, keeping your data up-to-date effortlessly.