Telegram AI Multi-Format Chatbot Workflow

somdn_product_page

This n8n workflow creates an intelligent Telegram chatbot capable of handling both text and voice messages, transcribing voice inputs into text, and engaging in meaningful conversations using an AI language model.

The workflow begins with listening for incoming Telegram messages, where it detects whether the message is text or voice. For voice messages, it downloads the voice file and transcribes it into text using OpenAI’s transcription capabilities. It then combines all message content into a unified format and passes it to the AI agent, which processes the input using GPT-4 and generates a relevant reply.

Throughout the interaction, the workflow manages conversational context with a window buffer memory, allowing the AI to remember recent exchanges for more coherent dialogues. It also displays a ‘typing…’ action to enhance user experience.

Finally, the chatbot responds to users with the AI-generated answer, formatted in HTML for better readability, and handles unsupported commands gracefully with an error message. The entire process creates a seamless, multi-format conversational experience on Telegram, ideal for customer support, virtual assistants, or interactive bots.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmChatOpenAi, @n8n/n8n-nodes-langchain.memoryBufferWindow, @n8n/n8n-nodes-langchain.openAi, set, stickyNote, switch, telegram, telegramTrigger

Reviews

There are no reviews yet.

Be the first to review “Telegram AI Multi-Format Chatbot Workflow”

Your email address will not be published. Required fields are marked *