This is an n8n workflow that turns a Telegram bot into an AI assistant. It understands both text messages and voice notes and replies in a conversational way. Voice messages are transcribed to text automatically, and the bot shows a "typing..." indicator while it processes each message.
The workflow starts with a Telegram Trigger that captures incoming messages. Switch nodes route the different input types, and Set nodes handle data processing. A LangChain Agent connected to OpenAI generates the responses, which are sent back to the user in the same Telegram conversation.
Setup requires creating a Telegram bot through @BotFather, configuring Telegram API credentials in n8n, and connecting a speech-to-text service for voice transcription. The workflow then handles the full conversation flow, from input detection to the reply.
- Platform
- n8n workflow
- Inputs
- Text messages and voice notes
- Voice handling
- Automatic transcription to text
- AI engine
- LangChain Agent with OpenAI
- Nodes used
- Telegram Trigger, Switch, Set
- User experience
- "Typing..." indicator while processing
- Requirements
- Telegram bot from @BotFather, Telegram API credentials in n8n, speech-to-text service
- Use cases
- Customer support, personal assistant, educational chatbots, business process automation