Advanced AI Telegram Chatbot with Multi-Format Support
detail.loadingPreview
Empower your Telegram with an intelligent, multi-format AI chatbot. This workflow leverages OpenAI's GPT-4o to understand both text and voice messages, providing sophisticated responses and maintaining conversation context.
About This Workflow
This n8n workflow orchestrates a powerful AI chatbot for Telegram, capable of handling both text and voice inputs seamlessly. It begins by listening for incoming messages, then intelligently processes the content, whether it's plain text or a voice note. For voice messages, the workflow converts them into transcribable text using OpenAI. The core AI processing is handled by GPT-4o, which also utilizes window buffer memory to retain conversation context for more coherent interactions. Finally, the AI's response is cleaned and sent back to the user via Telegram, supporting HTML formatting for richer output. It also includes error handling for unsupported commands and a typing indicator for a better user experience.
Key Features
- Multi-Format Input: Accepts and understands both text and voice messages.
- Advanced AI Understanding: Utilizes OpenAI's GPT-4o for intelligent text generation and comprehension.
- Contextual Memory: Maintains conversation history using Window Buffer Memory for more natural dialogues.
- Voice-to-Text Transcription: Seamlessly converts voice messages into text for AI processing.
- Robust Error Handling: Provides helpful feedback for unsupported message types.
How To Use
- Configure Telegram Trigger: Set up the 'Listen for incoming events' node with your Telegram Bot Token.
- Set up OpenAI Credentials: Provide your OpenAI API key in the 'OpenAI Chat Model' and 'Convert audio to text' nodes.
- Define AI Model and Memory: Configure the 'OpenAI Chat Model' with your desired GPT model (e.g., gpt-4o) and adjust temperature/frequency penalty. Set up 'Window Buffer Memory' with an appropriate session key and context window length.
- Message Processing Logic: The 'Combine content and set properties' node extracts and categorizes incoming messages. Ensure the 'Download voice file' and 'Convert audio to text' nodes are correctly linked for voice inputs.
- AI Interaction: Route the processed message to the 'OpenAI Chat Model' for AI generation.
- Send Responses: Use the 'Correct errors' node to format the AI output and the 'Send final reply' node to deliver it back to the user in Telegram with HTML parsing enabled.
Apps Used
Workflow JSON
{
"id": "d277f907-4694-4716-8b31-81fd1b64edcb",
"name": "Advanced AI Telegram Chatbot with Multi-Format Support",
"nodes": 19,
"category": "Marketing",
"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: d277f907-4694...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
Automate LinkedIn Content Promotion for Your Ghost Blog with AI
Effortlessly promote your latest Ghost blog posts on LinkedIn. This workflow leverages AI to generate engaging, professional LinkedIn messages based on your article content and saves them, along with article metadata, directly to a Google Sheet.