Telegram AI Multi-Format Chatbot with GPT-4o and Conversation Memory
detail.loadingPreview
Deploy a sophisticated AI chatbot on Telegram that seamlessly handles both text and voice messages. Powered by GPT-4o, this workflow maintains conversational context and provides intelligent, multi-format responses, enhancing user engagement and operational efficiency.
About This Workflow
Revolutionize your Telegram interactions with this powerful n8n workflow. This chatbot intelligently listens for incoming messages, distinguishing between text and voice. Voice messages are automatically transcribed using OpenAI's capabilities, ensuring no query goes unheard. Utilizing the cutting-edge GPT-4o model and equipped with a window buffer memory, the bot delivers context-aware, human-like responses. It provides immediate feedback with a 'typing' action and ensures robust HTML-formatted replies, even handling potential output errors. Perfect for enhanced customer support, community engagement, or simply a smarter personal assistant.
Key Features
- Multi-Format Input: Processes both text messages and voice notes with integrated transcription.
- Advanced AI Model: Leverages OpenAI's GPT-4o for highly accurate and creative responses.
- Conversational Memory: Maintains context over multiple interactions using a window buffer, ensuring fluid conversations.
- Real-time User Experience: Sends 'typing' actions to Telegram for a more responsive and engaging feel.
- Robust HTML Output: Delivers rich, formatted replies in Telegram, with built-in error correction for HTML content.
- Graceful Error Handling: Provides friendly error messages for unsupported command types.
How To Use
- Set up Telegram Credentials: Configure your Telegram Bot Token in the
Listen for incoming eventsand allTelegramnodes (e.g.,Chat & Sound). - Set up OpenAI Credentials: Provide your OpenAI API key for the
OpenAI Chat ModelandConvert audio to textnodes (e.g.,Ted's Tech Talks OpenAi). - Adjust AI Model & Memory: In
OpenAI Chat Model, you can modify themodel(defaulting togpt-4o) ortemperature. InWindow Buffer Memory, adjustcontextWindowLengthto define how many previous messages the AI remembers. - Customize Reply Messages: Modify the text in
Send final replyto personalize the closing message and chatbot's tone. - Activate Webhook: Ensure the
Listen for incoming eventsTelegram Trigger node's webhook is active to start receiving messages.
Apps Used
Workflow JSON
{
"id": "d7420c3d-b721-4fb8-8f5f-12b4af5c283a",
"name": "Telegram AI Multi-Format Chatbot with GPT-4o and Conversation Memory",
"nodes": 17,
"category": "Operations",
"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: d7420c3d-b721...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
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.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.